I had a problem with one of the PBX In A Flash updates. The X100P card was not answering and I could not make out going calls. When I logged in to the machine, the Demon Status told me that Zaptel was offline.
lszaptel and zaptel_hardware was gone so I couldn't check the hardware. genzaptelconf giving me:
Generating '/etc/zaptel.conf and /etc/asterisk/zapata-channels.conf'
Reconfiguring identified channels
Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl'
1 error(s) detected
Checking channels configured in Asterisk:
No such command 'zap show channels' (type 'help zap show' for other possible commands)
So I decided to do a reinstall Zaptel by compiling it.
cd /usr/src/zaptel
make clean
./configure
make
make install
make conf
Next was to run genzaptelconf -dsv
Next checked to see if it saw the Z100P card using lszaptel and zaptel_hardware
root@pbx:~ $ lszaptel
### Span 1: WCFXO/0 "Generic Clone Board 1" (MASTER)
1 FXO FXSKS (In use) (battery)
root@pbx:~ $ zaptel_hardware
pci:0000:02:0a.0 wcfxo+ e159:0001 Wildcard X101P clone
There was a problem with answering the phone line from the initial install. Someone on the forums said, in the file /etc/asterisk/zaptel-channels.conf a line needs to be changed from:
context=from-pstn
to
context=from-zaptel
The last thing to do is to restart Amportal.
amportal stop
service zaptel restart
amportal start