dahdi-linux icon indicating copy to clipboard operation
dahdi-linux copied to clipboard

Please add support back for older card models (tested with AEX410.

Open PanosPetrou opened this issue 8 months ago • 4 comments

Hello, I have an older analog card, an AEX410. DAHDI doesn't recognize this card anymore out of the box, but this can be easily fixed as follows:

Edit the file: drivers/dahdi/wctdm24xxp/base.c

Find: static DEFINE_PCI_DEVICE_TABLE(wctdm_pci_tbl) = { { 0xd161, 0x2400, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wctdm2400 }, { 0xd161, 0x8003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcaex2400 }, { 0xd161, 0x8007, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcha80000 }, { 0xd161, 0x8008, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wchb80000 }, { 0 } };

Replace with: static DEFINE_PCI_DEVICE_TABLE(wctdm_pci_tbl) = { { 0xd161, 0x2400, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wctdm2400 }, { 0xd161, 0x8002, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcaex800 }, { 0xd161, 0x8003, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcaex2400 }, { 0xd161, 0x8005, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wctdm410 }, { 0xd161, 0x8006, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcaex410 }, { 0xd161, 0x8007, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wcha80000 }, { 0xd161, 0x8008, PCI_ANY_ID, PCI_ANY_ID, 0, 0, (unsigned long) &wchb80000 }, { 0 } };

make make install

Done! I'm using the AEX410 card without issues on Fedora 42 with kernel 6.14 and Asterisk 18. I think support for older models should be included back.

PanosPetrou avatar May 02 '25 01:05 PanosPetrou

Probably will happen in the repo eventually, but unlikely to be anytime soon - in the meantime, you can get support for all of the older cards using PhreakScript: https://github.com/InterLinked1/phreakscript

Just make sure you pass the --dahdi and --drivers options.

InterLinked1 avatar May 02 '25 14:05 InterLinked1

Thanks for the script link. I tried to use some script a while back (not sure if it's that one or not) but because my system is a bit custom, it had some issues, so I did it manually (I'm using Fedora 42, Asterisk from fedora repository, DAHDI from source, FreePBX 17 from source).

However, just curious, why its unlikely to be included in the repo anytime soon? Is the development of DAHDI not very active anymore?

PanosPetrou avatar May 02 '25 18:05 PanosPetrou

Thanks for the script link. I tried to use some script a while back (not sure if it's that one or not) but because my system is a bit custom, it had some issues, so I did it manually (I'm using Fedora 42, Asterisk from fedora repository, DAHDI from source, FreePBX 17 from source).

However, just curious, why its unlikely to be included in the repo anytime soon? Is the development of DAHDI not very active anymore?

This project is highly neglected by the official maintainers, and has been for about the past 6 or 7 years now. I am the only one that actively does anything DAHDI-related on a regular basis, and I don't work for Sangoma so I can't make any changes here. I do submit changes here too, so I'll continue pushing for their inclusion, but as of now there are unfortunately several major outstanding issues on the current master branch. However, I do keep PhreakScript up to date for DAHDI stuff with the old drivers included, and I myself use some of them.

If you do have an issue with PhreakScript, please report it to me (in that repo, not this one), and I will take a look and see if I can fix it. Fedora 42 should be a supported configuration and that is tested in the CI. You should be able to install both Asterisk and even the FreePBX GUI with an additional option - though you may want to test that on a separate system to make sure it installs the way you anticipated.

InterLinked1 avatar May 02 '25 19:05 InterLinked1

I see, thanks for the clarification.

PanosPetrou avatar May 02 '25 19:05 PanosPetrou