<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'><br><br>----- Original Message -----<br>From: "Tony Mountifield" &lt;tony@softins.clara.co.uk&gt;<br>To: asterisk-users@lists.digium.com<br>Sent: Monday, 8 December, 2008 10:17:33 GMT +00:00 GMT Britain, Ireland, Portugal<br>Subject: Re: [asterisk-users] PRI span debug out put - failing international&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;calls<br><br>In article &lt;7631180.21228726277153.JavaMail.GABBY-PC-VISTA$@Gabby-PC-Vista&gt;,<br>Mr Gabriel &lt;gabriel@fusis.com&gt; wrote:<br>&gt; <br>&gt; I have attached my PRI debug out put when making an international call - hopefully it can<br>&gt; shed some light on the situation. I am sorry if this attachment gets to the list twice, I<br>&gt; sent one early this morning, but it has yet to appear - i may have sent that one in error. <br>&gt; <br>&gt; Kind Regards: <br>&gt; <br>&gt; Gabriel <br>&gt; <br>&gt; <br>&gt; -- Making new call for cr 32774<br>&gt; &gt; Protocol Discriminator: Q.931 (8) &nbsp;len=41<br>&gt; &gt; Call Ref: len= 2 (reference 6/0x6) (Originator)<br>&gt; &gt; Message type: SETUP (5)<br>&gt; &gt; [04 03 80 90 a3]<br>&gt; &gt; Bearer Capability (len= 5) [ Ext: 1 &nbsp;Q.931 Std: 0 &nbsp;Info transfer capability: Speech (0)<br>&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Ext: 1 &nbsp;Trans mode/rate: 64kbps, circuit-mode (16)<br>&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Ext: 1 &nbsp;User information layer 1: A-Law (35)<br>&gt; &gt; [18 03 a9 83 81]<br>&gt; &gt; Channel ID (len= 5) [ Ext: 1 &nbsp;IntID: Implicit &nbsp;PRI &nbsp;Spare: 0 &nbsp;Exclusive &nbsp;Dchan: 0<br>&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ChanSel: Reserved<br>&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ext: 1 &nbsp;Coding: 0 &nbsp;Number Specified &nbsp;Channel Type: 3<br>&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ext: 1 &nbsp;Channel: 1 ]<br>&gt; &gt; [6c 07 21 80 31 32 33 34 35]<br>&gt; &gt; Calling Number (len= 9) [ Ext: 0 &nbsp;TON: National Number (2) &nbsp;NPI: ISDN/Telephony Numbering<br>&gt; Plan (E.164/E.163) (1)<br>&gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Presentation: Presentation permitted, user number not screened<br>&gt; (0) &nbsp;'12345' ]<br><br>This is not correct - you are presenting an internal number as a Caller-ID<br>with a TON of "National". You should set a valid Caller-ID in your dialplan<br>before calling Dial(). Or via whatever GUI you might be using.<br><br>However, this probably isn't the cause of failure - BT should just ignore<br>the Caller-ID.<br><br>&gt; &gt; [70 0e a1 30 30 33 35 33 31 36 36 30 32 33 31 31]<br>&gt; &gt; Called Number (len=16) [ Ext: 1 &nbsp;TON: National Number (2) &nbsp;NPI: ISDN/Telephony Numbering<br>&gt; Plan (E.164/E.163) (1) &nbsp;'0035316602311' ]<br><br>However, I think this is wrong, and probably the cause of the failure.<br>It is saying that you have "pridialplan=national" (the default), but you<br>are giving a complete number. This is effectively dialling the number<br>'00035316602311'.<br><br>The first thing to make sure is that your pridialplan= and xxxprefix=<br>directives in zapata.conf are BEFORE the channels to which they apply.<br>When you have a channel= directive in the file, those channels will be<br>created with the parameters that have ALREADY been seen in the file,<br>and any parameters that come later, won't apply to those channels.<br><br>Also, don't forget you need to restart Asterisk if you change the details<br>in zapata.conf (perhaps reload might be enough, but I'm never sure).<br><br>&gt; &gt; [a1]<br>&gt; &gt; Sending Complete (len= 1)<br>&gt; q931.c:2879 q931_setup: call 32774 on channel 1 enters state 1 (Call Initiated)<br>&gt; &lt; Protocol Discriminator: Q.931 (8) &nbsp;len=10<br>&gt; &lt; Call Ref: len= 2 (reference 6/0x6) (Terminator)<br>&gt; &lt; Message type: CALL PROCEEDING (2)<br>&gt; &lt; [18 03 a9 83 81]<br>&gt; &lt; Channel ID (len= 5) [ Ext: 1 &nbsp;IntID: Implicit &nbsp;PRI &nbsp;Spare: 0 &nbsp;Exclusive &nbsp;Dchan: 0<br>&gt; &lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ChanSel: Reserved<br>&gt; &lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ext: 1 &nbsp;Coding: 0 &nbsp;Number Specified &nbsp;Channel Type: 3<br>&gt; &lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ext: 1 &nbsp;Channel: 1 ]<br>&gt; -- Processing IE 24 (cs0, Channel Identification)<br>&gt; q931.c:3414 q931_receive: call 32774 on channel 1 enters state 3 (Outgoing call &nbsp;Proceeding)<br>&gt; &lt; Protocol Discriminator: Q.931 (8) &nbsp;len=13<br>&gt; &lt; Call Ref: len= 2 (reference 6/0x6) (Terminator)<br>&gt; &lt; Message type: DISCONNECT (69)<br>&gt; &lt; [08 02 82 81]<br>&gt; &lt; Cause (len= 4) [ Ext: 1 &nbsp;Coding: CCITT (ITU) standard (0) &nbsp;Spare: 0 &nbsp;Location: Public<br>&gt; network serving the local user (2)<br>&gt; &lt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Ext: 1 &nbsp;Cause: Unallocated (unassigned) number (1), class = Normal Event (0) ]<br><br>This response field is telling you there is no such number as 00035316602311<br><br>[remainder snipped]<br><br>Things you need to try, exactly:<br><br>1) Make sure the pri and prefix directives are before the channel list.<br>2) Change to "pridialplan=unknown" and try dialling both UK and Ireland.<br>3) Change to "pridialplan=dynamic" with "nationalprefix=0" and<br>&nbsp;&nbsp; "internationalprefix=00", and try dialling both UK and Ireland.<br><br>If that still doesn't work, and you are happy to give me remote ssh access,<br>email me privately.<br><br>**Gabriel says**<br>I have made the amendments as advised, but the issues still exists - I have attached another PRI debug of attempted international call, and also the zapata.conf - I am at a lost, because we feel that everything is actually complete - and help will be appreciated.<br><br>Cheers<br>Tony<br>-- <br>Tony Mountifield<br>Work: tony@softins.co.uk - http://www.softins.co.uk<br>Play: tony@mountifield.org - http://tony.mountifield.org<br><br>_______________________________________________<br>-- Bandwidth and Colocation Provided by http://www.api-digital.com --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; http://lists.digium.com/mailman/listinfo/asterisk-users<br></div></body></html>