[Asterisk-Users] Some problems setting outgoing PRI Origination Number

Paul Belanger paul.belanger at pronexus.com
Wed Jul 6 10:58:52 MST 2005


Hello,

Quick Diagram:

Telco-PRI -> Asterisk <- Norstar PRI -> Norstar PBX
   (DMS100)  (TE405P)     (DMS100)
                |
                |
                V
           Cisco 7960G
              (SIP)

I'm trying to change the Origination Number on my outgoing PRI, and running into a weird
problem.  If I make a call from a SIP extension off asterisk using the following context:

[from-sip]
exten => 800,1,Answer
exten => 800,2,SetCallerID(6132718xxxx)
exten => 800,3,Dial(Dial(${TRUNK-TELCO}/5551234)

I am able to change the Origination Number!

> Protocol Discriminator: Q.931 (8)  len=39
> Call Ref: len= 2 (reference 175/0xAF) (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 95]
> 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: 21 ]
> [6c 0c 21 83 36 31 33 32 37 31 38 38 35 33]
> 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)
'613271xxxx' ]
> [70 08 a1 32 35 35 30 30 34 38]
> Called Number (len=10) [ Ext: 1  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan
(E.164/E.163) (1) '5551234' ]

However if I call from behind the channel bank, I am unable to change the number.

[from-norstar]
exten => 800,1,Answer
exten => 800,2,SetCallerID(6132718xxxx)
exten => 800,3,Dial(Dial(${TRUNK-TELCO}/5551234)

> Protocol Discriminator: Q.931 (8)  len=39
> Call Ref: len= 2 (reference 176/0xB0) (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 95]
> 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: 21 ]
> [6c 0c 21 ff 36 31 33 32 37 31 38 38 35 33]
> Calling Number (len=14) [ Ext: 0  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan
(E.164/E.163) (1)
>                           Presentation: Unknown (127) '613271xxxx' ]
> [70 08 a1 32 35 35 30 30 34 38]
> Called Number (len=10) [ Ext: 1  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan
(E.164/E.163) (1) '5551234' ]

Any ideas why I can set it using SIP extension only?

Slackware 10.0
Asterisk 1.0.9
TE405P

PB




More information about the asterisk-users mailing list