Sangoma A102 T1/E1 card & Asterisk-1.4.12.1

Hi Guys,

I am having issues getting my E1 to work on a Sangoma A102 T1/E1 card. Th same E1 was pulled out from an Avaya G3si and is working perfectly before taking to the A102. I have everything setup and configured. I got green lights on each port of the card, and also got the primary D-Channel on span 1 and 2 up respectively. But I can’t either call out or get calls to come in.

When I tried calling in, nothing happens (not even a log), and when I also tried calling out, I got “session progress” on my X-lite and nothing happens.

here is my zaptel.conf (my telco uses no crc)

loadzone=us
defaultzone=us

#Sangoma A102 port 1 [slot:5 bus:4 span: 1]
span=1,1,0,ccs,hdb3
bchan=1-15,17-31
dchan=16

#Sangoma A102 port 2 [slot:5 bus:4 span: 2]
span=2,1,0,ccs,hdb3
bchan=32-46,48-62
dchan=47

zapata.conf

[trunkgroups]

[channels]
context=from-pstn
usecallerid=yes
pridialplan=unknown
prilocaldialplan=unknown
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
busydetect=yes
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1

immediate=no

#include zapata-auto.conf
#include zapata_additional.conf

zapata-auto.conf
callerid=asreceived

;Sangoma A102 port 1 [slot:5 bus:4 span: 1]
switchtype=euroisdn
context=from-zaptel
group=0
signalling=pri_cpe
channel => 1-15,17-31

;Sangoma A102 port 2 [slot:5 bus:4 span: 2]
switchtype=euroisdn
context=from-zaptel
group=0
signalling=pri_cpe
channel => 32-46,48-62

I got the following Log whenever I tried calling out;

[Oct 17 22:51:13] VERBOSE[3321] logger.c: == Primary D-Channel on span 1 up
[Oct 17 22:51:14] VERBOSE[3321] logger.c: == Primary D-Channel on span 1 up
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [908033189788@from-internal:1] Macro(“SIP/1000-b77025d0”, “dialout-trunk|2|08033189788||”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:1] Set(“SIP/1000-b77025d0”, “DIAL_TRUNK=2”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:2] Set(“SIP/1000-b77025d0”, “DIAL_NUMBER=08033189788”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:3] Set(“SIP/1000-b77025d0”, “ROUTE_PASSWD=”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:4] GotoIf(“SIP/1000-b77025d0”, “1?noauth”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Goto (macro-dialout-trunk,s,6)
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:6] GotoIf(“SIP/1000-b77025d0”, “0?disabletrunk|1”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:7] Set(“SIP/1000-b77025d0”, “_NODEST=”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:8] Set(“SIP/1000-b77025d0”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:9] Set(“SIP/1000-b77025d0”, “GROUP()=OUT_2”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:10] Macro(“SIP/1000-b77025d0”, “user-callerid|SKIPTTL”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:1] NoOp(“SIP/1000-b77025d0”, “user-callerid: device 1000”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Noop
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:2] Set(“SIP/1000-b77025d0”, “AMPUSER=1000”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:3] GotoIf(“SIP/1000-b77025d0”, “0?report”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:4] GotoIf(“SIP/1000-b77025d0”, “0?start”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:5] Set(“SIP/1000-b77025d0”, “REALCALLERIDNUM=1000”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:6] NoOp(“SIP/1000-b77025d0”, “REALCALLERIDNUM is 1000”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: NoOp
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:7] Set(“SIP/1000-b77025d0”, “AMPUSER=1000”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:8] Set(“SIP/1000-b77025d0”, “AMPUSERCIDNAME=Agent 1”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:9] GotoIf(“SIP/1000-b77025d0”, “0?report”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:10] Set(“SIP/1000-b77025d0”, “AMPUSERCID=1000”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:11] Set(“SIP/1000-b77025d0”, “CALLERID(all)=“Agent 1” <1000>”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:12] Set(“SIP/1000-b77025d0”, “REALCALLERIDNUM=1000”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:13] NoOp(“SIP/1000-b77025d0”, “TTL: ARG1: SKIPTTL”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Noop
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:14] GotoIf(“SIP/1000-b77025d0”, “1?continue”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Goto (macro-user-callerid,s,23)
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-user-callerid:23] NoOp(“SIP/1000-b77025d0”, “Using CallerID “Agent 1” <1000>”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: NoOp
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Macro
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:11] Macro(“SIP/1000-b77025d0”, “record-enable|1000|OUT”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-record-enable:1] GotoIf(“SIP/1000-b77025d0”, “0?2:4”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Goto (macro-record-enable,s,4)
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-record-enable:4] AGI(“SIP/1000-b77025d0”, “recordingcheck|20071017-225114|1192657874.6”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
[Oct 17 22:51:14] VERBOSE[4745] logger.c: recordingcheck|20071017-225114|1192657874.6: Outbound recording not enabled
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – AGI Script recordingcheck completed, returning 0
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: AGI
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-record-enable:5] NoOp(“SIP/1000-b77025d0”, “No recording needed”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Noop
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Macro
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:12] GotoIf(“SIP/1000-b77025d0”, “0?skipoutcid”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:13] Set(“SIP/1000-b77025d0”, “DIAL_TRUNK_OPTIONS=”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:14] Macro(“SIP/1000-b77025d0”, “outbound-callerid|2”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-outbound-callerid:1] GotoIf(“SIP/1000-b77025d0”, “1?start”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Goto (macro-outbound-callerid,s,3)
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-outbound-callerid:3] NoOp(“SIP/1000-b77025d0”, “REALCALLERIDNUM is 1000”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: NoOp
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-outbound-callerid:4] GotoIf(“SIP/1000-b77025d0”, “1?normcid”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Goto (macro-outbound-callerid,s,9)
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-outbound-callerid:9] Set(“SIP/1000-b77025d0”, “USEROUTCID=Multi-Choice Nigeria”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] DEBUG[4745] db.c: Unable to find key ‘1000/emergency_cid’ in family ‘DEVICE’
[Oct 17 22:51:14] DEBUG[4745] func_db.c: DB: DEVICE/1000/emergency_cid not found in database.
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-outbound-callerid:10] Set(“SIP/1000-b77025d0”, “EMERGENCYCID=”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-outbound-callerid:11] Set(“SIP/1000-b77025d0”, “TRUNKOUTCID=”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-outbound-callerid:12] GotoIf(“SIP/1000-b77025d0”, “1?trunkcid”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Goto (macro-outbound-callerid,s,16)
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-outbound-callerid:16] GotoIf(“SIP/1000-b77025d0”, “1?usercid”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Goto (macro-outbound-callerid,s,18)
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-outbound-callerid:18] GotoIf(“SIP/1000-b77025d0”, “0?report”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-outbound-callerid:19] Set(“SIP/1000-b77025d0”, “CALLERID(all)=Multi-Choice Nigeria”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-outbound-callerid:20] GotoIf(“SIP/1000-b77025d0”, “1?report:hidecid”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Goto (macro-outbound-callerid,s,22)
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-outbound-callerid:22] NoOp(“SIP/1000-b77025d0”, “CallerID set to “Multi-Choice Nigeria” <>”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: NoOp
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Macro
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:15] GotoIf(“SIP/1000-b77025d0”, “0?nomax”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:16] GotoIf(“SIP/1000-b77025d0”, “0?chanfull”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:17] AGI(“SIP/1000-b77025d0”, “fixlocalprefix”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – AGI Script fixlocalprefix completed, returning 0
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: AGI
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:18] Set(“SIP/1000-b77025d0”, “OUTNUM=08033189788”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:19] Set(“SIP/1000-b77025d0”, “custom=ZAP/1”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: Set
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:20] GotoIf(“SIP/1000-b77025d0”, “1?gocall”) in new stack
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Goto (macro-dialout-trunk,s,22)
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:22] GotoIf(“SIP/1000-b77025d0”, “0?customtrunk”) in new stack
[Oct 17 22:51:14] DEBUG[4745] app_macro.c: Executed application: GotoIf
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Executing [s@macro-dialout-trunk:23] Dial(“SIP/1000-b77025d0”, “ZAP/1/08033189788|300|”) in new stack
[Oct 17 22:51:14] DEBUG[4745] dsp.c: dsp busy pattern set to 0,0
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Requested transfer capability: 0x00 - SPEECH
[Oct 17 22:51:14] VERBOSE[4745] logger.c: – Called 1/08033189788
[Oct 17 22:51:14] NOTICE[4745] rtp.c: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 10.17.114.142
[Oct 17 22:51:15] VERBOSE[3321] logger.c: == Primary D-Channel on span 1 up
[Oct 17 22:51:16] VERBOSE[3321] logger.c: == Primary D-Channel on span 1 up
[Oct 17 22:51:17] VERBOSE[3321] logger.c: == Primary D-Channel on span 1 up
[Oct 17 22:51:18] VERBOSE[3321] logger.c: == Primary D-Channel on span 1 up
[Oct 17 22:51:19] VERBOSE[3321] logger.c: == Primary D-Channel on span 1 up
[Oct 17 22:51:20] VERBOSE[3321] logger.c: == Primary D-Channel on span 1 up
[Oct 17 22:51:21] VERBOSE[3321] logger.c: == Primary D-Channel on span 1 up
[Oct 17 22:51:21] DEBUG[4745] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/1-1
[Oct 17 22:51:21] DEBUG[4745] chan_zap.c: Not yet hungup… Calling hangup once with icause, and clearing call
[Oct 17 22:51:21] DEBUG[4745] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/1-1
[Oct 17 22:51:21] VERBOSE[4745] logger.c: – Hungup ‘Zap/1-1’
[Oct 17 22:51:21] NOTICE[4745] cdr.c: CDR on channel ‘Zap/1-1’ not posted