<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> </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> </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 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'> <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>
if
(method=="REGISTER") {<br>
<br>
# Uncomment this if you want to use digest authentication<br>
if (!www_authorize("<a href="http://gaco.co.za/"
target="_blank"> gaco.co.za</a>", "subscriber")) {<br>
www_challenge("<a href="http://gaco.co.za/"
target="_blank">gaco.co.za</a>", "0");<br>
break; <br>
};<br>
<br>
save("location");<br>
break;<br>
};<br>
<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'> #
attemt handoff to PSTN<br>
if (uri=~"^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'>") {<br>
log ("Forwarding to PSTN\n");<br>
t_relay_to_udp("</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'>","5060");<br>
break;<br>
};<br>
</span></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>
<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <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>
<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> <<a href="mailto:cjordan@econetwireless.com">cjordan@econetwireless.com</a>>
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'> </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'> </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=~"^sip:9[0-9] *@<a
href="http://gaco.co.za/" target="_blank"> gaco.co.za</a>") {</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'>
log ("Forwarding to PSTN\n");</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'>
prefix("666#");</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'>
t_relay_to_udp("<a href="http://217.15.11.87/"
target="_blank"> 217.15.11.87</a>","5060");</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'>
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'>
};</span></font><o:p></o:p></p>
<p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'> </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'> </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'> </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"'> </span></font><o:p></o:p></p>
<p><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'>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'> </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> </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>