rendered paste body>> /etc/zaptel.conf
#TDM22B - 2 FXO , 2 FXS
fxoks=1-2
fxsks=3-4
#TDM31B (Asterisk Dev Kit) - 1 FXO , 1 FXS
fxoks=5
fxoks=6
fxoks=7
fxsks=8
# T110P PRI configuration - 30 channels
span=1,1,0,esf,b8zs
bchan=9-38
dchan=39
>> /etc/asterisk/zapata.conf
[channels]
; connect analog phones/trunk lines to FXS
; Remember the below channels are FXS's and thats why we use FXO
; signalling
signalling=fxo_ks
;group=1
context=default
channel=> 1
signalling=fxo_ks
group=1
context=default
channel=> 2
signalling=fxo_ks
group=1
context=default
channel=> 5
signalling=fxo_ks
group=1
context=default
channel=> 6
signalling=fxo_ks
group=1
context=default
channel=> 7
; connect extensions/telephones to FXO
; Remember the below channels are FXO's and thats why we use FXS
; signalling below
signalling=fxs_ks
callerid=asreceived
context=pdr_mainmenu
channel=> 3
signalling=fxs_ks
group=2
callerid=8937
context=default
channel=> 4
signalling=fxs_ks
group=2
callerid=8938
context=default
channel=> 8
; T110P - PRI Configuration
switchtype=national
context=di_mainmenu
signalling=pri_cpe
group=3
channel => 9-38
>> Below is my module load order and the error i get when i ran the command.
modprobe zaptel; modprobe wcfxo; modprobe wcfxs; modprobe wcte11xp
[root@ip-pbx network-scripts]# modprobe zaptel; modprobe wcfxo; modprobe wcfxs; modprobe wcte11xp
Notice: Configuration file is /etc/zaptel.conf
line 168: Unable to open master device '/dev/zap/ctl'
ZT_SPANCONFIG failed on span 1: Invalid argument (22)
FATAL: Error running install command for wcfxs
ZT_SPANCONFIG failed on span 1: Invalid argument (22)
FATAL: Error running install command for wct1xxp
If i run the same command again the error vanishes.
[root@ip-pbx network-scripts]# modprobe zaptel; modprobe wcfxo; modprobe wcfxs; modprobe wcte11xp
>> /var/log/messages
Dec 10 16:33:32 ip-pbx kernel: Zapata Telephony Interface Registered on major 196
Dec 10 16:33:32 ip-pbx kernel: ACPI: PCI interrupt 0000:03:01.0[A] -> GSI 48 (level, low) -> IRQ 193
Dec 10 16:33:32 ip-pbx kernel: Freshmaker version: 73
Dec 10 16:33:32 ip-pbx kernel: Freshmaker passed register test
Dec 10 16:33:33 ip-pbx kernel: Module 0: Installed -- AUTO FXS/DPO
Dec 10 16:33:34 ip-pbx kernel: Module 1: Installed -- AUTO FXS/DPO
Dec 10 16:33:34 ip-pbx kernel: Module 2: Installed -- AUTO FXO (FCC mode)
Dec 10 16:33:34 ip-pbx kernel: Module 3: Installed -- AUTO FXO (FCC mode)
Dec 10 16:33:34 ip-pbx kernel: Found a Wildcard TDM: Wildcard TDM400P REV I (4 modules)
Dec 10 16:33:34 ip-pbx kernel: ACPI: PCI interrupt 0000:04:02.0[A] -> GSI 19 (level, low) -> IRQ 201
Dec 10 16:33:34 ip-pbx kernel: Freshmaker version: 73
Dec 10 16:33:34 ip-pbx kernel: Freshmaker passed register test
Dec 10 16:33:36 ip-pbx kernel: Module 0: Installed -- AUTO FXS/DPO
Dec 10 16:33:37 ip-pbx kernel: Module 1: Installed -- AUTO FXS/DPO
Dec 10 16:33:38 ip-pbx kernel: Module 2: Installed -- AUTO FXS/DPO
Dec 10 16:33:38 ip-pbx kernel: Module 3: Installed -- AUTO FXO (FCC mode)
Dec 10 16:33:38 ip-pbx kernel: Found a Wildcard TDM: Wildcard TDM400P REV I (4 modules)
Dec 10 16:33:38 ip-pbx kernel: ACPI: PCI interrupt 0000:02:02.0[A] -> GSI 28 (level, low) -> IRQ 185
Dec 10 16:33:38 ip-pbx kernel: Controller version: 24
Dec 10 16:33:38 ip-pbx kernel: FALC version: 00000000
Dec 10 16:33:38 ip-pbx kernel: TE110P: Setting up global serial parameters for T1 FALC V1.2
Dec 10 16:33:38 ip-pbx kernel: TE110P: Successfully initialized serial bus for card
Dec 10 16:33:38 ip-pbx kernel: Found a Wildcard: Digium Wildcard TE110P T1/E1
>> Output of ztcfg -vvv
[root@ip-pbx network-scripts]# ztcfg -vvv
Zaptel Configuration
======================
SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: FXO Kewlstart (Default) (Slaves: 01)
Channel 02: FXO Kewlstart (Default) (Slaves: 02)
Channel 03: FXS Kewlstart (Default) (Slaves: 03)
Channel 04: FXS Kewlstart (Default) (Slaves: 04)
Channel 05: FXO Kewlstart (Default) (Slaves: 05)
Channel 06: FXO Kewlstart (Default) (Slaves: 06)
Channel 07: FXO Kewlstart (Default) (Slaves: 07)
Channel 08: FXS Kewlstart (Default) (Slaves: 08)
Channel 09: Individual Clear channel (Default) (Slaves: 09)
Channel 10: Individual Clear channel (Default) (Slaves: 10)
Channel 11: Individual Clear channel (Default) (Slaves: 11)
Channel 12: Individual Clear channel (Default) (Slaves: 12)
Channel 13: Individual Clear channel (Default) (Slaves: 13)
Channel 14: Individual Clear channel (Default) (Slaves: 14)
Channel 15: Individual Clear channel (Default) (Slaves: 15)
Channel 16: Individual Clear channel (Default) (Slaves: 16)
Channel 17: Individual Clear channel (Default) (Slaves: 17)
Channel 18: Individual Clear channel (Default) (Slaves: 18)
Channel 19: Individual Clear channel (Default) (Slaves: 19)
Channel 20: Individual Clear channel (Default) (Slaves: 20)
Channel 21: Individual Clear channel (Default) (Slaves: 21)
Channel 22: Individual Clear channel (Default) (Slaves: 22)
Channel 23: Individual Clear channel (Default) (Slaves: 23)
Channel 24: Individual Clear channel (Default) (Slaves: 24)
Channel 25: Individual Clear channel (Default) (Slaves: 25)
Channel 26: Individual Clear channel (Default) (Slaves: 26)
Channel 27: Individual Clear channel (Default) (Slaves: 27)
Channel 28: Individual Clear channel (Default) (Slaves: 28)
Channel 29: Individual Clear channel (Default) (Slaves: 29)
Channel 30: Individual Clear channel (Default) (Slaves: 30)
Channel 31: Individual Clear channel (Default) (Slaves: 31)
Channel 32: Individual Clear channel (Default) (Slaves: 32)
Channel 33: Individual Clear channel (Default) (Slaves: 33)
Channel 34: Individual Clear channel (Default) (Slaves: 34)
Channel 35: Individual Clear channel (Default) (Slaves: 35)
Channel 36: Individual Clear channel (Default) (Slaves: 36)
Channel 37: Individual Clear channel (Default) (Slaves: 37)
Channel 38: Individual Clear channel (Default) (Slaves: 38)
Channel 39: D-channel (Default) (Slaves: 39)
39 channels configured.
ZT_SPANCONFIG failed on span 1: Invalid argument (22)
>> Error when starting asterisk..
== Parsing '/etc/asterisk/zapata.conf': Found
Dec 10 16:34:27 WARNING[11730]: chan_zap.c:778 zt_open: Unable to specify channel 1: No such device or address
Dec 10 16:34:27 ERROR[11730]: chan_zap.c:6248 mkintf: Unable to open channel 1: No such device or address
here = 0, tmp->channel = 1, channel = 1
Dec 10 16:34:27 ERROR[11730]: chan_zap.c:9200 setup_zap: Unable to register channel '1'
Dec 10 16:34:27 WARNING[11730]: loader.c:345 ast_load_resource: chan_zap.so: load_module failed, returning -1
== Unregistered channel type 'Tor'
== Unregistered channel type 'Zap'
Dec 10 16:34:27 WARNING[11730]: loader.c:440 load_modules: Loading module chan_zap.so failed!