Hi,
About a year ago I did some updates to FreePbx-11 with Asterisk-13. and in the process, DAHDI broke. It doest not work and in FreePBX portal says that DAHDI is not running…
lsmod | grep dahdi
return and blank prompt.
I left it alone back then, but now I am curious again if I can fix. I have an FXO/FXS card in the server and have a POTS line, I can plug in it for a FAX. If anyone can point me to a solution, that would be a great help. Thanks,
What make and model of card?
It is an older Digium 1A4A00F card with 4 S110 FXS modules.
xrobau
(Rob Thomas)
June 2, 2016, 5:07am
4
You might want to run ‘lspci’ and see if the card is actually being detected by the machine. This could be a hardware issue.
Hmmm, well as you know with 4 x FXS there will be no connecting to a POTS line without an FXO port.
Have you also tried running ‘dahdi_genconf -v’ ?
1 Like
I do have 4 FXO modules as well. I have now 2 and 2. I will try the Lspci see if machine sees them, but it did see them before. Besides, things like meetme do not work either which makes me believe that DAHDI software is dead.
astbox
(Ast Box)
June 2, 2016, 4:25pm
7
Run the following commands
lspci
dahdi_genconf -vvv
dahdi_cfg -vvv
and post here.
astbox
(Ast Box)
June 2, 2016, 6:25pm
11
I think there is something not right with the log from dahd_cfg -vvv output. Care to run again the command and post the log again?
cynjut
(Dave Burgess)
June 2, 2016, 9:31pm
13
The error message points at two possible causes:
Your system isn’t installing the device driver for your DAHDI card.
The ownership of /etc/dahdi/ctl is borked and you need to fix it.
From the lspci command you ran earlier, it looks to me like your card isn’t being recognized and isn’t getting the drivers loaded.
Thanks for this help.
I did not have ctl directory in the /dev/dahdi
I have added it and chown asterisk on that
I see now more meaningful output of your commands
[[email protected] ~]# dahdi_genconf -vvv
Default parameters from /etc/dahdi/genconf_parameters
Generating /etc/dahdi/assigned-spans.conf
Generating /etc/dahdi/system.conf
Generating /etc/asterisk/dahdi-channels.conf
[[email protected] ~]# dahdi_cfg -vvv
DAHDI Tools Version - 2.10.0.1
DAHDI Version: 2.10.0.1
Echo Canceller(s):
Configuration
Channel map:
Channel 01: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 02)
Channel 03: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 04)
Channel 05: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 05)
Channel 06: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 06)
Channel 07: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 07)
Channel 08: FXS Kewlstart (Default) (Echo Canceler: oslec) (Slaves: 08)
8 channels to configure.
Setting echocan for channel 1 to oslec
Setting echocan for channel 2 to oslec
Setting echocan for channel 3 to oslec
Setting echocan for channel 4 to oslec
Setting echocan for channel 5 to oslec
Setting echocan for channel 6 to oslec
Setting echocan for channel 7 to oslec
Setting echocan for channel 8 to oslec
Now Asterisk would not start
fwconsole -vvv start
gives me this
[Whoops\Exception\ErrorException]
filetype(): Lstat failed for /var/log/asterisk/fail2ban.1
You didn’t mention if this is a Distro install or not. If it is, I suggest you bring the whole system current http://wiki.freepbx.org/display/PPS/FreePBX-Distro-10.13.66
or start at an earlier version and bring it up.
Or just do a yum update fail2ban and fwcosole chown and see if that brings it around.
It is the most current FreePBX Asterisk. and I have run yum remove fail2ban and yum install fail2ban with no effect. Still can not load
xrobau
(Rob Thomas)
June 3, 2016, 12:01am
18
Look at that file. It may be large. Delete it if it is
rm -f /var/log/asterisk/fail2ban.1
1 Like
xrobau
(Rob Thomas)
June 3, 2016, 12:12am
20
Was the file large? Or did you just randomly delete it?
What’s the status of that new file?