<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I have done all of this, but it does not
work. Can I perhaps send you the ser.cfg file?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Star Bravo
[mailto:star.bravo@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, September 21, 2005
9:51 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Colin Jordan<br>
<b><span style='font-weight:bold'>Cc:</span></b> serusers@lists.iptel.org;
serusers-request@lists.iptel.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Serusers] Handoff to
PSTN</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 color="#000099" face="Times New Roman"><span
style='font-size:12.0pt;color:#000099'>You aren't putting the <strong><b><font
face="Times New Roman">handoff to PSTN </font></b></strong>part in the right
place. It should&nbsp;be as follows;</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>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 href="http://gaco.co.za/"
target="_blank"> gaco.co.za</a>&quot;, &quot;subscriber&quot;)) {<br>
&nbsp; &nbsp; &nbsp; &nbsp;www_challenge(&quot;<a 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;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 color=red face="Times New Roman"><span
style='font-size:12.0pt;color:red'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#
attemt handoff to PSTN<br>
&nbsp; &nbsp; &nbsp; &nbsp;if (uri=~&quot;^sip:9[0-9]*@</span></font><a
href="http://gaco.co.za/" target="_blank"><font color=red><span
style='color:red'> gaco.co.za</span></font></a><font color=red><span
style='color:red'>&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;</span></font><a
href="http://217.15.11.87/" target="_blank"> <font color=red><span
style='color:red'>217.15.11.87</span></font></a><font color=red><span
style='color:red'>&quot;,&quot;5060&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };<br>
</span></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;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 9/21/05, <b><span style='font-weight:bold'>Colin
Jordan</span></b> &lt;<a href="mailto:cjordan@econetwireless.com">cjordan@econetwireless.com</a>&gt;
wrote:</span></font></span> <o:p></o:p></p>

<div>

<p><font size=2 face=Arial><span style='font-size:10.0pt;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><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font><o:p></o:p></p>

<p><b><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-weight:bold'>My handoff script looks like this:</span></font></b><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color=navy face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:navy'>if (uri=~&quot;^sip:9[0-9] *@<a
href="http://gaco.co.za/" target="_blank"> gaco.co.za</a>&quot;) {</span></font><o:p></o:p></p>

<p><font size=2 color=navy face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;log (&quot;Forwarding to PSTN\n&quot;);</span></font><o:p></o:p></p>

<p><font size=2 color=navy face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp; prefix(&quot;666#&quot;);</span></font><o:p></o:p></p>

<p><font size=2 color=navy face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;t_relay_to_udp(&quot;<a href="http://217.15.11.87/"
target="_blank"> 217.15.11.87</a>&quot;,&quot;5060&quot;);</span></font><o:p></o:p></p>

<p><font size=2 color=navy face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;break;</span></font><o:p></o:p></p>

<p><font size=2 color=navy face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:navy'>&nbsp; &nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;};</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font><o:p></o:p></p>

<p><b><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial;
font-weight:bold'>The PSTN interconnect description:</span></font></b><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:red'>1) I need to send a prefix of 666#
followed by full intl number without leading 0's. </span></font><o:p></o:p></p>

<p><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:red'>eg. 666#442071016211</span></font><o:p></o:p></p>

<p><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";color:red'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 color=red face="Courier New"><span style='font-size:10.0pt;
font-family:"Courier New";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><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 face="Courier New"><span style='font-size:10.0pt;font-family:
"Courier New"'>&nbsp;</span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>What
can I do to get it working?</span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'> </span></font><o:p></o:p></p>

<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>&nbsp;</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>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 href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</a><br>
<a href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank">http://lists.iptel.org/mailman/listinfo/serusers</a><br>
<br>
<o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

<html>
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>
</html>