Asterisk not recoginzing 'pri_cpe' in zapata.conf


#1

I have an E1 card installed with Asterisk v1.2.9.1 and Zaptel 1.2.6 and when I try to start it I get:

[quote=“Full Log”]Jun 9 12:04:17 VERBOSE[12237] logger.c: == Parsing ‘/etc/asterisk/zapata.conf’: Found
Jun 9 12:04:17 ERROR[12237] chan_zap.c: Unknown signalling method 'pri_cpe’
Jun 9 12:04:17 ERROR[12237] chan_zap.c: Signalling must be specified before any channels are.
Jun 9 12:04:17 WARNING[12237] loader.c: chan_zap.so: load_module failed, returning -1
Jun 9 12:04:17 WARNING[12237] loader.c: Loading module chan_zap.so failed![/quote]

[quote="/etc/asterisk/zapata.conf"][channels]
language=en
context=from-pstn
signalling=pri_cpe ; pri_cpe = PRI slave ; pri_net = PRI master
switchtype=Euroisdn
;signalling=fxo_ls
;signalling=pri_cpe
;signalling=fxs_ks
;rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
callerid=asreceived

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
;echotraining=800
rxgain=0.0
txgain=0.0
;callgroup=1
;pickupgroup=1
immediate=no

group=0
channel=>1-15,17-30[/quote]

Looks right to me. Also had a look at /usr/src/asterisk/channels/cha_zap.c and it would appear that both pri_cpe and pri_net are in there. Everything below that from Zaptel down to the card is working properly.

Ideas?

[quote=“ztcfg -vvv”][code]Zaptel Configuration

SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1)

Channel map:

Channel 01: Clear channel (Default) (Slaves: 01)
Channel 02: Clear channel (Default) (Slaves: 02)
Channel 03: Clear channel (Default) (Slaves: 03)
Channel 04: Clear channel (Default) (Slaves: 04)
Channel 05: Clear channel (Default) (Slaves: 05)
Channel 06: Clear channel (Default) (Slaves: 06)
Channel 07: Clear channel (Default) (Slaves: 07)
Channel 08: Clear channel (Default) (Slaves: 08)
Channel 09: Clear channel (Default) (Slaves: 09)
Channel 10: Clear channel (Default) (Slaves: 10)
Channel 11: Clear channel (Default) (Slaves: 11)
Channel 12: Clear channel (Default) (Slaves: 12)
Channel 13: Clear channel (Default) (Slaves: 13)
Channel 14: Clear channel (Default) (Slaves: 14)
Channel 15: Clear channel (Default) (Slaves: 15)
Channel 16: D-channel (Default) (Slaves: 16)
Channel 17: Clear channel (Default) (Slaves: 17)
Channel 18: Clear channel (Default) (Slaves: 18)
Channel 19: Clear channel (Default) (Slaves: 19)
Channel 20: Clear channel (Default) (Slaves: 20)
Channel 21: Clear channel (Default) (Slaves: 21)
Channel 22: Clear channel (Default) (Slaves: 22)
Channel 23: Clear channel (Default) (Slaves: 23)
Channel 24: Clear channel (Default) (Slaves: 24)
Channel 25: Clear channel (Default) (Slaves: 25)
Channel 26: Clear channel (Default) (Slaves: 26)
Channel 27: Clear channel (Default) (Slaves: 27)
Channel 28: Clear channel (Default) (Slaves: 28)
Channel 29: Clear channel (Default) (Slaves: 29)
Channel 30: Clear channel (Default) (Slaves: 30)

30 channels configured.[/code][/quote]


#2

These commands do not appear available in my CLI:

pri debug span: Enables PRI debugging on a span

pri intense debug span: Enables REALLY INTENSE PRI debugging

pri no debug span: Disables PRI debugging on a span

Is there something special I need to do besides compile/install libpri for it to be available? Or?


#3

Figured it out, I had not compiled in the correct order, so the #ifdef in the source code was not being triggered as it was not seeing the appropriate libpri library. Recompiled and sorted.