[asterisk-users] Outbound international calls over BT ISDN30

Tony Mountifield tony at softins.clara.co.uk
Tue Apr 29 10:38:09 CDT 2008


See below....

In article <48173592.8030207 at zimo.co.uk>, Stuart Ford <sbf at zimo.co.uk> wrote:
> Hello all
> 
> As always I'm trying the mailing list as a last resort as I'm out of 
> options. I am seemingly unable to dial international numbers over our BT 
> ISDN30 line.
> 
> I've checked with BT and the number format they're expecting is:
> 
> 	00<CC><number>
> 
> (where CC is the country code).
> 
> But this doesn't work. Looking at the PRI debug, the most notable error 
> seems to be:
> 
> Message type: DISCONNECT (69)
> [08 02 82 81]
> Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0 
> Location: Public network serving the local user (2)
> Ext: 1  Cause: Unallocated (unassigned) number (1), class = Normal Event 
> (0) ]
> 
> I've also tried different number formats, including:
> 
> 	+CC<number>
> 	+0CC<number>
> 
> But to no avail.
> 
> Anybody know what I'm doing wrong? Here's a complete debug dump of a 
> failed international call to the US:
> 
> Many thanks
> 
> Stu
> 
>      -- Executing [s at macro-outgoing:2] Dial("SIP/sbf-b7c104e0", 
> "Zap/g1/0012127551200") in new stack
> -- Making new call for cr 33090
>      -- Requested transfer capability: 0x00 - SPEECH
>  > Protocol Discriminator: Q.931 (8)  len=47
>  > Call Ref: len= 2 (reference 322/0x142) (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 83]
>  > 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: 3 ]
>  > [6c 0d 21 80 30 31 36 31 34 38 36 37 37 38 30]
>  > Calling Number (len=15) [ Ext: 0  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)
>  >                           Presentation: Presentation permitted, user number not screened (0)  '01614867780' ]
>  > [70 0e a1 30 30 31 32 31 32 37 35 35 31 32 30 30]
>  > Called Number (len=16) [ Ext: 1  TON: National Number (2)  NPI: ISDN/Telephony Numbering Plan (E.164/E.163) (1)  '0012127551200' ]

I think this is your problem. It is using "National" as the Type Of Number,
but you have given it an international number.

>  > [a1]on*CLI>
>  > Sending Complete (len= 1)

What values do you have in zapata.conf for pridialplan, internationalprefix,
nationalprefix and localprefix?

Try each of the following two sets of parameters:

(A)
pridialplan=dynamic
internationalprefix=00
nationalprefix=0
localprefix=

(B)
pridialplan=unknown
internationalprefix=
nationalprefix=
localprefix=

I normally use the first set. In your case it would then send the destination
number as '12127551200' with a TON of International. Dialling a UK number
01234 567890 would be sent as '1234567890' with a TON of National.

The second set of parameters sends all numbers as-is, but with a TON of
Unknown. This may allow the exchange to do normal interpretation like it
does with analogue phones, i.e. 00CC.... for international and 0[1-9]...
for national.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list