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