[Asterisk-Users] Bearer capabilities on PRI

Who Carez? responder-asterisk at pacanka.com
Thu Jun 15 10:03:49 MST 2006


Hey all,

I am running a Asterisk 1.2.9.1 with Sangoma A101 card, newest firmware, 
configured with a help from Sangoma Tech Support, running fine. It is 
connected to a PRI circuit split from Cisco MC 3810, which in turn is 
connected to a Converged T from CTC Communications.

While Asterisk works fine and I can call in/out on my BV account, I am 
only able to dial in through CTC. I have spent last 4 days researching 
the issue and here is what it boils down to:

1. The Asterisk box sends 809083 as bearer capabilities while the other 
side expects 809082. Where can I change that? Attached is the snippet 
from my log file.

-------------------------------------
OUTGOING CALL
-------------------------------------

 > pri debug span 1
Enabled debugging on span 1
     -- Executing Set("SIP/311-cd0b", "CALLERID(number)=8605551212") in 
new stack
     -- Executing SetCallerID("SIP/311-cd0b", ""L"") in new stack
     -- Executing Dial("SIP/311-cd0b", "Zap/g1/8601234567") in new stack
-- Making new call for cr 32772
     -- Requested transfer capability: 0x00 - SPEECH
 > Protocol Discriminator: Q.931 (8)  len=36
 > Call Ref: len= 2 (reference 4/0x4) (Originator)
 > Message type: SETUP (5)
 > [04 03 80 90 a3]
 > 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: A-Law (35)
 > [18 03 a9 83 81]
 > 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: 1 ]
 > [1e 02 80 83]
 > Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard 
(0) 0: 0   Location: User (0)
 >                               Ext: 1  Progress Description: Calling 
equipment is non-ISDN. (3) ]
 > [6c 02 00 c3]
 > Calling Number (len= 4) [ Ext: 0  TON: Unknown Number Type (0)  NPI: 
Unknown Number Plan (0)
 >                           Presentation: Number not available (67) '' ]
 > [70 0b a1 38 36 30 32 32 34 35 39 30 30]
 > Called Number (len=13) [ Ext: 1  TON: National Number (2)  NPI: 
ISDN/Telephony Numbering Plan (E.164/E.163) (1) '8601234567' ]
     -- Called g1/8601234567
< Protocol Discriminator: Q.931 (8)  len=9
< Call Ref: len= 2 (reference 4/0x4) (Terminator)
< Message type: RELEASE COMPLETE (90)
< [08 02 82 e4]
< Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 0: 0 
Location: Public network serving the local user (2)
<                  Ext: 1  Cause: Unknown (100), class = Protocol Error 
(6) ]
-- Processing IE 8 (cs0, Cause)
     -- Channel 0/1, span 1 got hangup
Jun 14 13:34:39 WARNING[27880]: app_dial.c:713 wait_for_answer: Unable 
to forward voice
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null
     -- Hungup 'Zap/1-1'
   == Everyone is busy/congested at this time (1:0/0/1)
   == Auto fallthrough, channel 'SIP/311-cd0b' status is 'CHANUNAVAIL'

-------------------------------------
INCOMING CALL
-------------------------------------

< Protocol Discriminator: Q.931 (8)  len=63
< Call Ref: len= 2 (reference 1057/0x421) (Originator)
< Message type: SETUP (5)
< [04 03 90 90 a2]
< Bearer Capability (len= 5) [ Ext: 1  Q.931 Std: 0  Info transfer 
capability: 3.1kHz audio (16)
<                              Ext: 1  Trans mode/rate: 64kbps, 
circuit-mode (16)
<                              Ext: 1  User information layer 1: u-Law (34)
< [18 03 a9 83 81]
< 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: 1 ]
< [1c 15 9f 8b 01 00 a1 0f 02 01 01 06 07 2a 86 48 ce 15 00 04 0a 01 00]
< Facility (len=23, codeset=0) [ 0x9f, 0x8b, 0x01, 0x00, 0xa1, 0x0f, 
0x02, 0x01, 0x01, 0x06, 0x07, 0x2a, 0x86, 'H', 0xce, 0x15, 0x00, 0x04, 
0x0a, 0x01, 0x00 ]
< [1e 02 84 83]
< Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0) 
0: 0   Location: Public network serving the remote user (4)
<                               Ext: 1  Progress Description: Calling 
equipment is non-ISDN. (3) ]
< [6c 0c 21 83 37 38 31 35 32 32 37 37 31 31]
< 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) '7815227711' ]
< [70 05 80 35 30 30 30]
< Called Number (len= 7) [ Ext: 1  TON: Unknown Number Type (0)  NPI: 
Unknown Number Plan (0) '5000' ]
-- Making new call for cr 1057
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 28 (cs0, Facility)
Handle Q.932 ROSE Invoke component
-- Processing IE 30 (cs0, Progress Indicator)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
 > Protocol Discriminator: Q.931 (8)  len=10
 > Call Ref: len= 2 (reference 1057/0x421) (Terminator)
 > Message type: CALL PROCEEDING (2)
 > [18 03 a9 83 81]
 > 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: 1 ]
     -- Accepting call from '7815227711' to '5000' on channel 0/1, span 1
     -- Executing Goto("Zap/1-1", "mainmenu|s|1") in new stack
     -- Goto (mainmenu,s,1)
     -- Executing Ringing("Zap/1-1", "") in new stack
 > Protocol Discriminator: Q.931 (8)  len=9
 > Call Ref: len= 2 (reference 1057/0x421) (Terminator)
 > Message type: ALERTING (1)
 > [1e 02 81 88]
 > Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard 
(0) 0: 0   Location: Private network serving the local user (1)
 >                               Ext: 1  Progress Description: Inband 
information or appropriate pattern now available. (8) ]
     -- Executing Wait("Zap/1-1", "3") in new stack
< Protocol Discriminator: Q.931 (8)  len=36
< Call Ref: len= 2 (reference 1057/0x421) (Originator)
< Message type: FACILITY (98)
< [1c 1d 9f 8b 01 00 a1 17 02 01 01 02 01 00 80 0f 43 54 43 2c 43 4f 4d 
4d 55 4e 49 43 41 54 49]
< Facility (len=31, codeset=0) [ 0x9f, 0x8b, 0x01, 0x00, 0xa1, 0x17, 
0x02, 0x01, 0x01, 0x02, 0x01, 0x00, 0x80, 0x0f, 'CTC', 0x2c, 'COMMUNICATI' ]
-- Processing IE 28 (cs0, Facility)
Handle Q.932 ROSE Invoke component
     -- Executing BackGround("Zap/1-1", "thank-you-for-calling") in new 
stack
 > Protocol Discriminator: Q.931 (8)  len=14
 > Call Ref: len= 2 (reference 1057/0x421) (Terminator)
 > Message type: CONNECT (7)
 > [18 03 a9 83 81]
 > 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: 1 ]
 > [1e 02 81 82]
 > Progress Indicator (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard 
(0) 0: 0   Location: Private network serving the local user (1)
 >                               Ext: 1  Progress Description: Called 
equipment is non-ISDN. (2) ]
     -- Playing 'thank-you-for-calling' (language 'en')
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 1057/0x421) (Originator)
< Message type: CONNECT ACKNOWLEDGE (15)
     -- Executing BackGround("Zap/1-1", "main-menu") in new stack
     -- Playing 'main-menu' (language 'en')
     -- Executing BackGround("Zap/1-1", "if-u-know-ext-dial") in new stack
     -- Playing 'if-u-know-ext-dial' (language 'en')
   == CDR updated on Zap/1-1
     -- Executing Macro("Zap/1-1", "officetemplate") in new stack
     -- Executing GotoIf("Zap/1-1", "0?2:3") in new stack
     -- Goto (macro-officetemplate,s,3)
     -- Executing Dial("Zap/1-1", "SIP/311|20|r") in new stack
     -- Called 311
     -- SIP/311-ef72 is ringing
     -- SIP/311-ef72 answered Zap/1-1
   == Spawn extension (macro-officetemplate, s, 3) exited non-zero on 
'Zap/1-1' in macro 'officetemplate'
   == Spawn extension (macro-officetemplate, s, 3) exited non-zero on 
'Zap/1-1'
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Active, peerstate Active
 > Protocol Discriminator: Q.931 (8)  len=9
 > Call Ref: len= 2 (reference 1057/0x421) (Terminator)
 > Message type: DISCONNECT (69)
 > [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: Unknown (16), class = Normal Event (1) ]
     -- Hungup 'Zap/1-1'
< Protocol Discriminator: Q.931 (8)  len=5
< Call Ref: len= 2 (reference 1057/0x421) (Originator)
< Message type: RELEASE (77)
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release 
Request
 > Protocol Discriminator: Q.931 (8)  len=9
 > Call Ref: len= 2 (reference 1057/0x421) (Terminator)
 > Message type: RELEASE COMPLETE (90)
 > [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: Unknown (16), class = Normal Event (1) ]
NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null
NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null

----------------------------------------------
ZAPATA.CONF
----------------------------------------------

[trunkgroups]

[channels]
switchtype=national
context=from-ctc
signalling=pri_cpe
;prilocaldialplan=local
group=1
channel => 1-23
busydetect=no
callprogress=no

Anyone? Thanks in advance,

Daniel




More information about the asterisk-users mailing list