<pre>Hi Folks,<br>I'm have Asterisk version 1.2.1 with a A101 PRI card. I'm working with the<br>CLEC to bring up the PRI and inbound calls are hanging up at his end after<br>a few seconds. I ran PRI debug but it only gives me minimal insight.
<br>" Ext: 1 Cause: Unknown (16), class = Normal Event (1)"<br><br>He ran a trace and the only difference he is seeing is a<br>"ISDN interface explicitly identified" (set to 1) coming from me. <br><br>I am able to make outbound calls.
<br><br>I didn't see anything on the web for this and so I thought someone on the list might<br>be able to help me out.<br><br>-Joe <br>CentOS release 4.2 (Final)<br>Linux asterisk1.local 2.6.9-22.ELsmp<br><br>WANPIPE Release:
2.3.2-7<br>A101 PRI card<br>Here's the Zaptel.conf file<br>------------------------------------
loadzone = us<br>defaultzone = us<br><br>#span definitions<br>span = 1,1,0,esf,b8zs<br>bchan = 1-23<br>dchan = 24<br><br><br><br>Here's the Zapata files<br>------------------------------------<br>[channels]<br><br>zcontext = from-pstn
<br>switchtype = national<br>pridialplan = national<br>signalling = pri_net<br>group = 0<br>channel => 1-23<br><br><br>wanpipe1.conf<br>[devices]<br>wanpipe1 = WAN_AFT, Comment<br><br>[interfaces]<br>w1g1 = wanpipe1, , TDM_VOICE, Comment
<br><br>[wanpipe1]<br>CARD_TYPE = AFT<br>S514CPU = A<br>CommPort = PRI<br>AUTO_PCISLOT = NO<br>PCISLOT = 5<br>PCIBUS = 2<br>FE_MEDIA = T1<br>FE_LCODE = B8ZS<br>FE_FRAME = ESF
<br>FE_LINE = 1<br>TE_CLOCK = NORMAL<br>ACTIVE_CH = ALL<br>TE_HIGHIMPEDANCE = NO<br>LBO = 0DB<br>INTERFACE = V35<br>CLOCKING = EXTERNAL<br>BaudRate = 0<br>MTU = 1500
<br>UDPPORT = 9000<br>TTL = 255<br>IGNORE_FRONT_END = NO<br><br>[w1g1]<br>PROTOCOL = HDLC<br>HDLC_STREAMING = YES<br>ACTIVE_CH = ALL<br>IDLE_FLAG = 0x7E<br>MTU = 1500<br>
MRU = 1500<br>TDMV_SPAN = 1<br>TDMV_ECHO_OFF = NO<br>MULTICAST = NO<br>TRUE_ENCODING_TYPE = NO<br><br>asterisk1*CLI> pri show span 1<br>asterisk1*CLI><br>Primary D-channel: 24<br>Status: Provisioned, Up, Active
<br>Switchtype: National ISDN<br>Type: CPE<br>Window Length: 0/7<br>Sentrej: 0<br>SolicitFbit: 0<br>Retrans: 0<br>Busy: 0<br>Overlap Dial: 0<br>T200 Timer: 1000<br>T203 Timer: 10000<br>T305 Timer: 30000<br>T308 Timer: 4000
<br>T313 Timer: 4000<br>N200 Counter: 3<br><br><br>Here's the asterisk console output when I dial in<br>--------------------------<br>logger.c: < Protocol Discriminator: Q.931 (8) len=56<br>logger.c: < Call Ref: len= 2 (reference 59/0x3B) (Originator)
<br>logger.c: < Message type: SETUP (5)<br><br>logger.c: < Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer capability: 3.1kHz audio (16)<br>logger.c: < Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
<br>logger.c: < Ext: 1 User information layer 1: u-Law (34)<br><br>logger.c: < Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Preferred Dchan: 0<br>logger.c: < ChanSel: Reserved
<br>logger.c: < Ext: 1 Coding: 0 Number Specified Channel Type: 3<br>logger.c: < Ext: 1 Channel: 1 ]<br><br>logger.c: < Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the remote user (4)
<br>logger.c: < Ext: 1 Progress Description: Calling equipment is non-ISDN. (3) ]<br><br>logger.c: < Calling Number (len=14) [ Ext: 0 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (
E.164/E.163) (1)<br>logger.c: < Presentation: Presentation allowed of network provided number (3) '6177339999' ]<br><br>logger.c: < Called Number (len= 7) [ Ext: 1 TON: National Number (2) NPI: ISDN/Telephony Numbering Plan (
E.164/E.163) (1) '5200' ]<br>logger.c: -- Making new call for cr 59<br>logger.c: -- Processing Q.931 Call Setup<br>logger.c: -- Processing IE 4 (cs0, Bearer Capability)<br>logger.c: -- Processing IE 24 (cs0, Channel Identification)
<br>logger.c: -- Processing IE 28 (cs0, Facility)<br>logger.c: Handle Q.932 ROSE Invoke component<br>logger.c: -- Processing IE 30 (cs0, Progress Indicator)<br>logger.c: -- Processing IE 108 (cs0, Calling Party Number)<br>
logger.c: -- Processing IE 112 (cs0, Called Party Number)<br>logger.c: > Protocol Discriminator: Q.931 (8) len=11<br>logger.c: > Call Ref: len= 2 (reference 59/0x3B) (Terminator)<br>logger.c: > Message type: CALL PROCEEDING (2)
<br><br>logger.c: > Channel ID (len= 6) [ Ext: 1 IntID: Explicit, PRI Spare: 0, Exclusive Dchan: 0<br>logger.c: > ChanSel: Reserved<br>logger.c: > Ext: 1 DS1 Identifier: 1
<br>logger.c: > Ext: 1 Coding: 0 Number Specified Channel Type: 3<br>logger.c: > Ext: 1 Channel: 1 ]<br>logger.c: -- Accepting call from '6177332750' to '5200' on channel 1/1, span 1
<br>chan_zap.c: Enabled echo cancellation on channel 1<br>logger.c: -- Executing Goto("Zap/1-1", "s|1") in new stack<br>logger.c: -- Goto (from-pstn,s,1)<br>pbx.c: Expression result is '1'<br>logger.c
: -- Executing GotoIf("Zap/1-1", "1?from-pstn-reghours|s|1:") in new stack<br>logger.c: -- Goto (from-pstn-reghours,s,1)<br>pbx.c: Expression result is '1'<br>logger.c: -- Executing GotoIf("Zap/1-1", "1?from-pstn-reghours-nofax|s|1:2") in new stack
<br>logger.c: -- Goto (from-pstn-reghours-nofax,s,1)<br>logger.c: -- Executing SetVar("Zap/1-1", "intype=EXT-211") in new stack<br>logger.c: -- Executing Cut("Zap/1-1", "intype=intype|-|1") in new stack
<br>pbx.c: Expression result is '1'<br>logger.c: -- Executing GotoIf("Zap/1-1", "1?4:5") in new stack<br>logger.c: -- Goto (from-pstn-reghours-nofax,s,4)<br>logger.c: -- Executing Goto("Zap/1-1", "ext-local|211|1") in new stack
<br>logger.c: -- Goto (ext-local,211,1)<br>logger.c: -- Executing Macro("Zap/1-1", "exten-vm|211|211") in new stack<br>logger.c: -- Executing Macro("Zap/1-1", "user-callerid") in new stack
<br>logger.c: -- Executing DBget("Zap/1-1", "AMPUSER=DEVICE/6177339999/user") in new stack<br>logger.c: -- DBget: varname=AMPUSER, family=DEVICE, key=6177339999/user<br>db.c: Unable to find key '6177332750/user' in family 'DEVICE'
<br>logger.c: -- DBget: Value not found in database.<br>logger.c: -- Executing DBget("Zap/1-1", "AMPUSERCIDNAME=AMPUSER//cidname") in new stack<br>logger.c: -- DBget: varname=AMPUSERCIDNAME, family=AMPUSER, key=/cidname
<br>db.c: Unable to find key '/cidname' in family 'AMPUSER'<br>logger.c: -- DBget: Value not found in database.<br>pbx.c: Expression result is '1'<br>logger.c: -- Executing GotoIf("Zap/1-1", "1?5") in new stack
<br>logger.c: -- Goto (macro-user-callerid,s,5)<br>logger.c: -- Executing NoOp("Zap/1-1", "Using CallerID 6177339999") in new stack<br>logger.c: -- Executing SetVar("Zap/1-1", "FROMCONTEXT=exten-vm") in new stack
<br>logger.c: -- Executing Macro("Zap/1-1", "record-enable|211|IN") in new stack<br>pbx.c: Function result is '0'<br>logger.c: -- Executing GotoIf("Zap/1-1", "0 > 0?2:4") in new stack
<br>logger.c: -- Goto (macro-record-enable,s,4)<br>logger.c: -- Executing AGI("Zap/1-1", "recordingcheck|20060407-091432|1144415672.41") in new stack<br>logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
<br>logger.c: recordingcheck|20060407-091432|1144415672.41: Inbound recording not enabled<br>logger.c: -- AGI Script recordingcheck completed, returning 0<br>logger.c: -- Executing NoOp("Zap/1-1", "No recording needed") in new stack
<br>logger.c: -- Executing Macro("Zap/1-1", "dial|15|tr|211") in new stack<br>pbx.c: Expression result is '0'<br>logger.c: -- Executing GotoIf("Zap/1-1", "0?4:2") in new stack
<br>logger.c: -- Goto (macro-dial,s,2)<br>pbx.c: Function result is '0'<br>pbx.c: Expression result is '0'<br>logger.c: -- Executing GotoIf("Zap/1-1", "0?5:4") in new stack<br>logger.c: -- Goto (macro-dial,s,4)
<br>logger.c: -- Executing AGI("Zap/1-1", "dialparties.agi") in new stack<br>logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi<br>logger.c: < Protocol Discriminator:
Q.931 (8) len=9<br>logger.c: < Call Ref: len= 2 (reference 59/0x3B) (Originator)<br>logger.c: < Message type: RELEASE (77)<br>logger.c: < [Apr 7 09:14:32 VERBOSE[16191] logger.c: < [08Apr 7 09:14:32 VERBOSE[16191]
logger.c: < [08 02Apr 7 09:14:32 VERBOSE[16191] logger.c: < [08 02 82Apr 7 09:14:32 VERBOSE[16191] logger.c: < [08 02 82 86Apr 7 09:14:32 VERBOSE[16191] logger.c: < [08 02 82 86]<br>logger.c: < Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Public network serving the local user (2)
<br>logger.c: < Ext: 1 Cause: Unknown (6), class = Normal Event (0) ]<br>logger.c: -- Processing IE 8 (cs0, Cause)<br>logger.c: -- Channel 1/1, span 1 got hangup<br>res_agi.c: Zap/1-1 hungup<br>logger.c
: == Spawn extension (macro-dial, s, 4) exited non-zero on 'Zap/1-1' in macro 'dial'<br>logger.c: == Spawn extension (macro-exten-vm, s, 4) exited non-zero on 'Zap/1-1' in macro 'exten-vm'<br>logger.c: == Spawn extension (ext-local, 211, 1) exited non-zero on 'Zap/1-1'
<br>cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.<br>cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES ('2006-04-07 09:14:32','6177332750','6177332750','211','ext-local', 'Zap/1-1','','AGI','
dialparties.agi',0,0,'NO ANSWER',3,'','1144415672.41')<br>chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/1-1<br>chan_zap.c: Hangup: channel: 1 index = 0, normal = 18, callwait = -1, thirdcall = -1<br>chan_zap.c: Already hungup... Calling hangup once, and clearing call
<br>logger.c: NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release Request<br>logger.c: > Protocol Discriminator: Q.931 (8) len=9<br>logger.c: > Call Ref: len= 2 (reference 59/0x3B) (Terminator)<br>
logger.c: > Message type: RELEASE COMPLETE (90)<br>logger.c: > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 Location: Private network serving the local user (1)<br>logger.c: > Ext: 1 Cause: Unknown (16), class = Normal Event (1) ]
<br>logger.c: NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null<br>logger.c: NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null<br>chan_zap.c: disabled echo cancellation on channel 1<br>
chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/1-1<br>chan_zap.c: Updated conferencing on 1, with 0 conference users<br>chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/1-1<br>chan_zap.c: disabled echo cancellation on channel 1
<br>logger.c: -- Hungup 'Zap/1-1'<br><br></pre>