[Asterisk-Users] DID/PRI sending to the s, extension

Colin Anderson ColinA at landmarkmasterbuilder.com
Thu Nov 11 16:23:58 MST 2004


>can you post what you have regarding these channels in zapata.conf?

Thanks for replying: 


[channels]
context = from-pstn
switchtype = national
signalling = pri_cpe <--the Adtran box looks like the network, so we set it
up as cpe
group = 0
channel => 1-23
immediate=no
overlapdial=yes
usecallingpres=yes
pridialplan=national

Also, when I set the dialplan to just forward all calls from the PSTN to an
arbitrary extension, the extension rings, caller ID comes in, but the
inbound caller is cut off with "CALL BARRED" before the call is fully
bridged to the extension; the caller does not hear a ring tone. Here's a
full debug:

< Call Ref: len= 2 (reference 3/0x3) (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 a1 83 97]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0, Preferred
Dchan: 0
<                        ChanSel: Reserved
<                       Ext: 1  Coding: 0   Number Specified   Channel Type:
3
<                       Ext: 1  Channel: 23 ]
< [6c 0c 00 80 37 38 30 34 33 36 35 39 35 39]
< Calling Number (len=14) [ Ext: 0  TON: Unknown Number Type (0)  NPI:
Unknown Number Plan (0)
<                           Presentation: Presentation permitted, user
number not screened (0) '7804365959' ]
< [70 05 80 30 35 34 35]
< Called Number (len= 7) [ Ext: 1  TON: Unknown Number Type (0)  NPI:
Unknown Number Plan (0) '0545' ]
-- Making new call for cr 3
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number)
    -- Going to extension s|1 because of Complete received
    -- Accepting call from '7804365959' to 's' on channel 0/23, span 1
    -- Executing GotoIf("Zap/23-1", "1?from-pstn-reghours|s|1:") in new
stack
    -- Goto (from-pstn-reghours,s,1)
    -- Executing Dial("Zap/23-1", "SIP/0545") in new stack
    -- Called 0545
    -- SIP/0545-f98c is ringing
< Protocol Discriminator: Q.931 (8)  len=36
< Call Ref: len= 2 (reference 3/0x3) (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 a1 83 97]
< Channel ID (len= 5) [ Ext: 1  IntID: Implicit, PRI Spare: 0, Preferred
Dchan: 0
<                        ChanSel: Reserved
<                       Ext: 1  Coding: 0   Number Specified   Channel Type:
3
<                       Ext: 1  Channel: 23 ]
< [6c 0c 00 80 37 38 30 34 33 36 35 39 35 39]
< Calling Number (len=14) [ Ext: 0  TON: Unknown Number Type (0)  NPI:
Unknown Number Plan (0)
<                           Presentation: Presentation permitted, user
number not screened (0) '7804365959' ]
< [70 05 80 30 35 34 35]
< Called Number (len= 7) [ Ext: 1  TON: Unknown Number Type (0)  NPI:
Unknown Number Plan (0) '0545' ]
-- Processing Q.931 Call Setup
-- Processing IE 4 (cs0, Bearer Capability)
-- Processing IE 24 (cs0, Channel Identification)
-- Processing IE 108 (cs0, Calling Party Number)
-- Processing IE 112 (cs0, Called Party Number) <--at this point the caller
is cut off
    -- Saved useragent "X-Lite release 1103m" for peer 552
    -- SIP/0545-f98c answered Zap/23-1 <--when the user picks up
  == Spawn extension (from-pstn-reghours, s, 1) exited non-zero on
'Zap/23-1' <--this is what is output to the console
    -- Hungup 'Zap/23-1'



More information about the asterisk-users mailing list