when you want to dial something via ZAP interface (to PSTN world) you should use dial(ZAP/....)<br><br><div><span class="gmail_quote">On 10/2/06, <b class="gmail_sendername">Luca Corti</b> &lt;<a href="mailto:luca@leenoox.net">
luca@leenoox.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br><br>I' using asterisk as a PBX for a dozen of SIP phones of various makes
<br>(Polycom, Linksys, Grandstream, Snom, etc.). I dial public PSTN numbers<br>also via SIP through an AS5350 which has an E1 ISN PRI attached.<br><br>I have a PSTN operator number (say 012345678) routed to three SIP<br>extensions (01,21,20) and numbers to directly reach extensions from
<br>outside (say 98765432XX, where 00 &lt; XX &lt; 99).<br><br>[outsidetoinside]<br><br>exten =&gt; 012345678,1,Dial(SIP/01,10,t);<br>exten =&gt; 012345678,n,Dial(SIP/21,10,t);<br>exten =&gt; 012345678,n,Dial(SIP/20,10,t);
<br>exten =&gt; 012345678,n,Goto(1);<br><br>exten =&gt; _98765432XX,1,Dial(SIP/${EXTEN:8},60);<br>exten =&gt; _98765432XX,n,Hangup();<br><br><br>All two digits numbers dialed from extensions are routed to other<br>extensions, three digit numbers get routed to the PSTN Gateway.
<br><br>[insidetooutside]<br><br>exten =&gt; 012345678,1,Dial(SIP/01);<br>exten =&gt; 012345678,n,Hangup();<br><br>exten =&gt; _98765432XX,1,Dial(SIP/${EXTEN:8});<br>exten =&gt; _98765432XX,n,Hangup();<br><br>exten =&gt; _XX.,1,Set(CALLERID(number)=012345678);
<br>exten =&gt; _XX.,n,Dial(SIP/${EXTEN}@as5350);<br>exten =&gt; _XX.,n,Hangup();<br><br>exten =&gt; _XX,1,Dial(SIP/${EXTEN},30,t);<br>exten =&gt; _XX,n,Hangup();<br><br><br>The problem is that three digit numbers like 187 (which is a public
<br>reachable PSTN number in my country, so I can reach it via the E1) is<br>not actually routed to the PSTN gateway (as it should).<br>I tried debugging SIP and see no request made to the AS5350. Is there a<br>command in the asterisk cli to debug how dialplan logic matches
<br>requests? What could be crong?<br><br>TIA<br><br>Luca<br><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list
<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>
-- <br>Com os melhores cumprimentos,<br><br>Marco Mouta