<div><font color="#000099">You aren't putting the <strong>handoff to PSTN </strong>part in the right place. It should&nbsp;be as follows;</font></div>
<div>&nbsp;</div>
<div>if (uri==myself) {<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (method==&quot;REGISTER&quot;) {<br><br># Uncomment this if you want to use digest authentication<br>&nbsp; &nbsp; &nbsp; &nbsp;if (!www_authorize(&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://gaco.co.za/" target="_blank">
gaco.co.za</a>&quot;, &quot;subscriber&quot;)) {<br>&nbsp; &nbsp; &nbsp; &nbsp;www_challenge(&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://gaco.co.za/" target="_blank">gaco.co.za</a>&quot;, &quot;0&quot;);<br>&nbsp; &nbsp; &nbsp; &nbsp;break;
<br>&nbsp; &nbsp; &nbsp; &nbsp;};<br><br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;save(&quot;location&quot;);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};<br>&nbsp;</div>
<div><font color="#ff0000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# attemt handoff to PSTN<br>&nbsp; &nbsp; &nbsp; &nbsp;if (uri=~&quot;^sip:9[0-9]*@</font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://gaco.co.za/" target="_blank"><font color="#ff0000">
gaco.co.za</font></a><font color="#ff0000">&quot;) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; log (&quot;Forwarding to PSTN\n&quot;);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; t_relay_to_udp(&quot;</font><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://217.15.11.87/" target="_blank">
<font color="#ff0000">217.15.11.87</font></a><font color="#ff0000">&quot;,&quot;5060&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br></font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# native SIP destinations are handled using our USRLOC DB<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (!lookup(&quot;location&quot;)) {
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_send_reply(&quot;404&quot;, &quot;Not Found&quot;);<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;break;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;};<br>&nbsp; &nbsp; &nbsp; &nbsp;};<br>&nbsp; &nbsp; &nbsp; &nbsp;# forward to current uri now; use stateful forwarding; that<br>
&nbsp; &nbsp; &nbsp; &nbsp;# works reliably even if we forward from TCP to UDP<br>&nbsp; &nbsp; &nbsp; &nbsp;if (!t_relay()) {<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sl_reply_error();<br><br>&nbsp; &nbsp; &nbsp; &nbsp;};<br>}<br>&nbsp;</div>
<div>&nbsp;</div>
<div><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/21/05, <b class="gmail_sendername">Colin Jordan</b> &lt;<a href="mailto:cjordan@econetwireless.com">cjordan@econetwireless.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have a big problem handing my call of to the PSTN, It give me a 404 error (not connected). What can I do to fix this?</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</span></font></p>
<p><b><font face="Arial" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">My handoff script looks like this:</span></font></b></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</span></font></p>
<p><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">if (uri=~&quot;^sip:9[0-9] *@<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://gaco.co.za/" target="_blank">
gaco.co.za</a>&quot;) {</span></font></p>
<p><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;log (&quot;Forwarding to PSTN\n&quot;);</span></font></p>
<p><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; prefix(&quot;666#&quot;);</span></font></p>
<p><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;t_relay_to_udp(&quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://217.15.11.87/" target="_blank">
217.15.11.87</a>&quot;,&quot;5060&quot;);</span></font></p>
<p><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;break;</span></font></p>
<p><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;};</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</span></font></p>
<p><b><font face="Arial" size="2"><span style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial">The PSTN interconnect description:</span></font></b></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</span></font></p>
<p><font face="Courier New" color="red" size="2"><span style="FONT-SIZE: 10pt; COLOR: red">1) I need to send a prefix of 666# followed by full intl number without leading 0's. </span></font></p>
<p><font face="Courier New" color="red" size="2"><span style="FONT-SIZE: 10pt; COLOR: red">eg. 666#442071016211</span></font></p>
<p><font face="Courier New" color="red" size="2"><span style="FONT-SIZE: 10pt; COLOR: red">&nbsp;</span></font></p>
<p><font face="Courier New" color="red" size="2"><span style="FONT-SIZE: 10pt; COLOR: red">2) The PSTN are connecting me to a Cisco SIP Proxy server, which uses Tech-prefixes eg 123# to separate and authenticate the calls into different domains.
</span></font></p>
<p><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt">&nbsp;</span></font></p>
<p><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt">&nbsp;</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">What can I do to get it working?</span></font><font face="Courier New" size="2"><span style="FONT-SIZE: 10pt"> </span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;</span></font></p></div>DISCLAIMER: The information in this message is confidential and is legally<br>privileged. It is intended solely for the addressee. Access to this message by
<br>anyone else is unauthorized.If receiving in error please accept our apologies<br>and notify the sender immediately. You must also delete the original<br>message from your machine. If you are not the intended recipient, any use,
<br>disclosure, copying, distribution or action taken in reliance of it, is prohibited<br>and maybe<br>unlawful. <br><br><br><br>_______________________________________________<br>Serusers mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:serusers@lists.iptel.org">
serusers@lists.iptel.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank">http://lists.iptel.org/mailman/listinfo/serusers</a><br><br><br></blockquote>
</div><br>