[Aaug] Dropped calls on Deltacom PRI

Kris kris at itaki.net
Sat Feb 24 12:25:16 EST 2007


Watching the log during the last dropped call with PRI DEBUG on
The "DISCONNECT" came from the "Terminator" which I assume would be the 
Adtran Netvanta CPE as the peer on the PBX system is the "Originator" in 
this scenario..

The PRI was originally configured in * for all 24 channels but i changed 
the config to 11 b + d but that didnt help... I will play with the rx & 
tx gain and see what that does...

I think the Adtran Netvanta is sending the Disconnect..

see below in this call from Ext 24 to 1800-525-1700

---------------------------------------------------------------
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 98/0x62) (Terminator)
< Message type: DISCONNECT (69)
< [08 02 80 90]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 
Location: User (0)
< Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
-- Processing IE 8 (cs0, Cause)
-- Channel 0/11, span 1 got hangup request
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, 
peerstate Disconnect Request
-------------------------------------------------------------------


-- Executing Macro("SIP/24-087bd760", "dialout-trunk|16|18005251700||") 
in new stack
-- Executing Set("SIP/24-087bd760", "DIAL_TRUNK=16") in new stack
-- Executing Set("SIP/24-087bd760", "_NODEST=") in new stack
-- Executing Set("SIP/24-087bd760", "DIAL_NUMBER=18005251700") in new stack
-- Executing Set("SIP/24-087bd760", "ROUTE_PASSWD=") in new stack
-- Executing Set("SIP/24-087bd760", "DIAL_TRUNK_OPTIONS=t") in new stack
-- Executing GotoIf("SIP/24-087bd760", "1?noauth") in new stack
-- Goto (macro-dialout-trunk,s,8)
-- Executing Set("SIP/24-087bd760", "GROUP()=OUT_16") in new stack
-- Executing Macro("SIP/24-087bd760", "user-callerid|SKIPTTL") in new stack
-- Executing NoOp("SIP/24-087bd760", "user-callerid: device 24") in new 
stack
-- Executing GotoIf("SIP/24-087bd760", "0?report") in new stack
-- Executing GotoIf("SIP/24-087bd760", "0?start") in new stack
-- Executing Set("SIP/24-087bd760", "REALCALLERIDNUM=24") in new stack
-- Executing NoOp("SIP/24-087bd760", "REALCALLERIDNUM is 24") in new stack
-- Executing Set("SIP/24-087bd760", "AMPUSER=24") in new stack
-- Executing Set("SIP/24-087bd760", "AMPUSERCIDNAME=Diane Thiele") in 
new stack
-- Executing GotoIf("SIP/24-087bd760", "0?report") in new stack
-- Executing Set("SIP/24-087bd760", "CALLERID(all)=Diane Thiele <24>") 
in new stack
-- Executing Set("SIP/24-087bd760", "REALCALLERIDNUM=24") in new stack
-- Executing NoOp("SIP/24-087bd760", "TTL: ARG1: SKIPTTL") in new stack
-- Executing GotoIf("SIP/24-087bd760", "1?continue") in new stack
-- Goto (macro-user-callerid,s,21)
-- Executing NoOp("SIP/24-087bd760", "Using CallerID "Diane Thiele" 
<24>") in new stack
-- Executing Macro("SIP/24-087bd760", "record-enable|24|OUT") in new stack
-- Executing GotoIf("SIP/24-087bd760", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing DeadAGI("SIP/24-087bd760", 
"recordingcheck|20070223-134130|1172256090.465") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20070223-134130|1172256090.465: Outbound recording enabled.
recordingcheck|20070223-134130|1172256090.465: 
CALLFILENAME=OUT24-20070223-134130-1172256090.465
-- AGI Script recordingcheck completed, returning 0
-- Executing MixMonitor("SIP/24-087bd760", 
"OUT24-20070223-134130-1172256090.465.wav") in new stack
-- Executing GotoIf("SIP/24-087bd760", "0?skipoutcid") in new stack
-- Executing Set("SIP/24-087bd760", "DIAL_TRUNK_OPTIONS=t") in new stack
-- Executing Macro("SIP/24-087bd760", "outbound-callerid|16") in new stack
-- Executing GotoIf("SIP/24-087bd760", "1?start") in new stack
-- Goto (macro-outbound-callerid,s,3)
-- Executing NoOp("SIP/24-087bd760", "REALCALLERIDNUM is 24") in new stack
-- Executing GotoIf("SIP/24-087bd760", "1?normcid") in new stack
-- Goto (macro-outbound-callerid,s,9)
-- Executing Set("SIP/24-087bd760", "USEROUTCID=") in new stack
-- Executing Set("SIP/24-087bd760", "EMERGENCYCID=") in new stack
-- Executing Set("SIP/24-087bd760", "TRUNKOUTCID=7705788028") in new stack
-- Executing GotoIf("SIP/24-087bd760", "1?trunkcid") in new stack
-- Goto (macro-outbound-callerid,s,16)
-- Executing GotoIf("SIP/24-087bd760", "0?usercid") in new stack
-- Executing Set("SIP/24-087bd760", "CALLERID(all)=7705788028") in new 
stack
-- Executing GotoIf("SIP/24-087bd760", "1?report") in new stack
-- Goto (macro-outbound-callerid,s,22)
-- Executing NoOp("SIP/24-087bd760", "CallerID set to "" <7705788028>") 
in new stack
-- Executing GotoIf("SIP/24-087bd760", "1?nomax") in new stack
-- Goto (macro-dialout-trunk,s,16)
-- Executing DeadAGI("SIP/24-087bd760", "fixlocalprefix") in new stack
== Begin MixMonitor Recording SIP/24-087bd760
-- Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
 > fixlocalprefix: Using pattern XXX
 > fixlocalprefix: Using pattern 011.
 > fixlocalprefix: Using pattern 770NXXXXXX
 > fixlocalprefix: Using pattern 678NXXXXXX
 > fixlocalprefix: Using pattern 404NXXXXXX
 > fixlocalprefix: Using pattern 1NXXXXXXXXX
== fixlocalprefix: Dialpattern 1NXXXXXXXXX matched. 18005251700 -> 
18005251700
-- AGI Script fixlocalprefix completed, returning 0
-- Executing Set("SIP/24-087bd760", "OUTNUM=18005251700") in new stack
-- Executing Set("SIP/24-087bd760", "custom=ZAP/11") in new stack
-- Executing GotoIf("SIP/24-087bd760", "0?customtrunk") in new stack
-- Executing Dial("SIP/24-087bd760", "ZAP/11/18005251700|300|t") in new 
stack
-- Making new call for cr 32866
-- Requested transfer capability: 0x00 - SPEECH
 > Protocol Discriminator: Q.931 (8) len=43
 > Call Ref: len= 2 (reference 98/0x62) (Originator)
 > Message type: SETUP (5)
 > [04 03 80 90 a2]
 > Bearer Capability (len= 5) [ Ext: 1 Q.931 Std: 0 Info transfer 
capability: Speech (0)
 > Ext: 1 Trans mode/rate: 64kbps, circuit-mode (16)
 > Ext: 1 User information layer 1: u-Law (34)
 > [18 03 a9 83 8b]
 > Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Exclusive 
Dchan: 0
 > ChanSel: Reserved
 > Ext: 1 Coding: 0 Number Specified Channel Type: 3
 > Ext: 1 Channel: 11 ]
 > [6c 0c 21 83 37 37 30 35 37 38 38 30 32 38]
 > Calling Number (len=14) [ Ext: 0 TON: National Number (2) NPI: 
ISDN/Telephony Numbering Plan (E.164/E.163) (1)
 > Presentation: Presentation allowed of network provided number (3) 
'7705788028' ]
 > [70 0c a1 31 38 30 30 35 32 35 31 37 30 30]
 > Called Number (len=14) [ Ext: 1 TON: National Number (2) NPI: 
ISDN/Telephony Numbering Plan ( E.164/E.163) (1) '18005251700' ]
-- Called 11/18005251700
< Protocol Discriminator: Q.931 (8) len=10
< Call Ref: len= 2 (reference 98/0x62) (Terminator)
< Message type: CALL PROCEEDING (2)
< [18 03 a9 83 8b]
< Channel ID (len= 5) [ Ext: 1 IntID: Implicit, PRI Spare: 0, Exclusive 
Dchan: 0
< ChanSel: Reserved
< Ext: 1 Coding: 0 Number Specified Channel Type: 3
< Ext: 1 Channel: 11 ]
-- Processing IE 24 (cs0, Channel Identification)
-- Zap/11-1 is proceeding passing it to SIP/24-087bd760
< Protocol Discriminator: Q.931 (8) len=13
< Call Ref: len= 2 (reference 98/0x62) (Terminator)
< Message type: PROGRESS (3)
< [08 02 82 ff]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 
Location: Public network serving the local user (2)
< Ext: 1 Cause: Interworking, unspecified (127), class = Interworking (7) ]
< [1e 02 82 81]
< Progress Indicator (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 
0: 0 Location: Public network serving the local user (2)
< Ext: 1 Progress Description: Call is not end-to-end ISDN; further call 
progress information may be available inband. (1) ]
-- Processing IE 8 (cs0, Cause)
-- Processing IE 30 (cs0, Progress Indicator)
-- PROGRESS with cause code 127 received
-- Zap/11-1 is making progress passing it to SIP/24-087bd760
< Protocol Discriminator: Q.931 (8) len=5
< Call Ref: len= 2 (reference 98/0x62) (Terminator)
< Message type: CONNECT (7)
 > Protocol Discriminator: Q.931 (8) len=5
 > Call Ref: len= 2 (reference 98/0x62) (Originator)
 > Message type: CONNECT ACKNOWLEDGE (15)
-- Zap/11-1 answered SIP/24-087bd760
REGISTER attempt 1 to 17476017485 at proxy01.sipphone.com 
<mailto:17476017485 at proxy01.sipphone.com>
REGISTER attempt 1 to 17476017485 at proxy01.sipphone.com 
<mailto:17476017485 at proxy01.sipphone.com>
REGISTER attempt 2 to 17476017485 at proxy01.sipphone.com 
<mailto:17476017485 at proxy01.sipphone.com>
REGISTER attempt 1 to 17476017485 at proxy01.sipphone.com 
<mailto:17476017485 at proxy01.sipphone.com>
< Protocol Discriminator: Q.931 (8) len=9
< Call Ref: len= 2 (reference 98/0x62) (Terminator)
< Message type: DISCONNECT (69)
< [08 02 80 90]
< Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 
Location: User (0)
< Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
-- Processing IE 8 (cs0, Cause)
-- Channel 0/11, span 1 got hangup request
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, 
peerstate Disconnect Request
 > Protocol Discriminator: Q.931 (8) len=9
 > Call Ref: len= 2 (reference 98/0x62) (Originator)
 > Message type: RELEASE (77)
 > [08 02 81 90]
 > Cause (len= 4) [ Ext: 1 Coding: CCITT (ITU) standard (0) 0: 0 
Location: Private network serving the local user (1)
 > Ext: 1 Cause: Normal Clearing (16), class = Normal Event (1) ]
-- Hungup 'Zap/11-1'
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 
'SIP/24-087bd760' in macro 'dialout-trunk'
== Spawn extension (macro-dialout-trunk, s, 20) exited non-zero on 
'SIP/24-087bd760'
-- Executing Macro("SIP/24-087bd760", "hangupcall") in new stack
-- Executing ResetCDR("SIP/24-087bd760", "w") in new stack
-- Executing NoCDR("SIP/24-087bd760", "") in new stack
-- Executing GotoIf("SIP/24-087bd760", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
-- Executing GotoIf("SIP/24-087bd760", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing Wait("SIP/24-087bd760", "5") in new stack
< Protocol Discriminator: Q.931 (8) len=5
< Call Ref: len= 2 (reference 98/0x62) (Terminator)
< Message type: RELEASE COMPLETE (90)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
-- Executing Hangup("SIP/24-087bd760", "") in new stack
== Spawn extension (macro-hangupcall, s, 10) exited non-zero on 
'SIP/24-087bd760' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 10) exited non-zero on 
'SIP/24-087bd760'
== End MixMonitor Recording SIP/24-087bd760
REGISTER attempt 1 to 17476017485 at proxy01.sipphone.com 
<mailto:17476017485 at proxy01.sipphone.com>






Bill Learning wrote:
> Nope it looks good except for some undocumented features *smile*
>
> Well, two issues I see ... 
>
> One is it isn't a full PRI, Define 11 thru 23 in a separate group but
> don't use it, zaptel doesn't handle partial PRI's and T1's as the config
> is set, you have to define all the channels, regardless  You may even
> have to busy out the 11.   It may even be passing the call to 12
> (random), if defining doesn't help.  Define a third group with channel
> 11 in it only and don't use it. and leave 10 in the first dialing group.
> You will have to muck around here a bit to get it to work right. 
>
> If you watch your CLI as you dial 15 calls in a round robin setup it
> will fail on 12 of course (random), you may have to dial 15 concurrent
> calls. And 24 may give you issue as well. Why it tries to route out a D
> channel I don't know.  
>
> Second increase the rx gain to 7 and set the tx gain to -4, common issue
> is that zaptel is hokey when it comes to TX RX on the channels a
> standard setting should be zero and zero.  But in all case studies I've
> read the setting are always somewhere around 7 and -4. So they set the
> defaults on a hokey board installation. SO I call the standard setting 7
> and -4.  
>
> <soapbox> These have been known for ages, zaptel and digium pass it back
> and forth pointing fingers instead of fixing the issue. </soapbox>
>
> Bill Learning
> Oscar Wilde said: "Moderation is a fatal thing. Nothing succeeds like
> excess."
>   




More information about the Aaug mailing list