<div><font color="#000099">You aren't putting the <strong>handoff to PSTN </strong>part in the right place. It should be as follows;</font></div>
<div> </div>
<div>if (uri==myself) {<br><br> if (method=="REGISTER") {<br><br># Uncomment this if you want to use digest authentication<br> if (!www_authorize("<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://gaco.co.za/" target="_blank">
gaco.co.za</a>", "subscriber")) {<br> www_challenge("<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://gaco.co.za/" target="_blank">gaco.co.za</a>", "0");<br> break;
<br> };<br><br> save("location");<br> break;<br> };<br> </div>
<div><font color="#ff0000"> # attemt handoff to PSTN<br> if (uri=~"^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">") {<br> log ("Forwarding to PSTN\n");<br> t_relay_to_udp("</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">","5060");<br> break;<br> };<br></font><br> # native SIP destinations are handled using our USRLOC DB<br> if (!lookup("location")) {
<br> sl_send_reply("404", "Not Found");<br> break;<br> };<br> };<br> # forward to current uri now; use stateful forwarding; that<br>
# works reliably even if we forward from TCP to UDP<br> if (!t_relay()) {<br> sl_reply_error();<br><br> };<br>}<br> </div>
<div> </div>
<div><br> </div>
<div><span class="gmail_quote">On 9/21/05, <b class="gmail_sendername">Colin Jordan</b> <<a href="mailto:cjordan@econetwireless.com">cjordan@econetwireless.com</a>> 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"> </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"> </span></font></p>
<p><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy">if (uri=~"^sip:9[0-9] *@<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://gaco.co.za/" target="_blank">
gaco.co.za</a>") {</span></font></p>
<p><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> log ("Forwarding to PSTN\n");</span></font></p>
<p><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> prefix("666#");</span></font></p>
<p><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> t_relay_to_udp("<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://217.15.11.87/" target="_blank">
217.15.11.87</a>","5060");</span></font></p>
<p><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> break;</span></font></p>
<p><font face="Courier New" color="navy" size="2"><span style="FONT-SIZE: 10pt; COLOR: navy"> };</span></font></p>
<p><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> </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"> </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"> </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"> </span></font></p>
<p><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">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"> </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>