<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Colin,<br>
<br>
Based on your interconnection description you should send 666#country
code + area code + tel no.<br>
<br>
How do your users dial? Do they dial 9 + 00 + country code + area code
+ tel no. Or do they dial 9 + country code + area code + tel no.?<br>
<br>
If it's the first one try this<br>
<br>
<font color="red" face="Times New Roman" size="3"><span
style="font-size: 12pt; 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>
<font color="#000000"> strip(3); <br>
prefix(666#);<br>
rewritehostport("217.15.11.87:5060"); </font><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>
<br>
</span></font> if it's the latter<br>
<font color="red" face="Times New Roman" size="3"><span
style="font-size: 12pt; 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>
<font color="#000000"> strip(1);<br>
prefix(666#);<br>
rewritehostport("217.15.11.87:5060");</font><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>
};</span></font><br>
HTH<br>
<br>
Regards,<br>
Nhadie<br>
<br>
<br>
Colin Jordan wrote:
<blockquote cite="mid20050921082400.0DAC83B6E5@fox.iptel.org"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<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>
<div class="Section1">
<p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
style="font-size: 10pt; 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 color="navy" face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; color: navy;"><o:p> </o:p></span></font></p>
<div>
<div class="MsoNormal" style="text-align: center;" align="center"><font
face="Times New Roman" size="3"><span style="font-size: 12pt;">
<hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
<p class="MsoNormal"><b><font face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font
face="Tahoma" size="2"><span
style="font-size: 10pt; font-family: Tahoma;"> Star Bravo
[<a class="moz-txt-link-freetext" href="mailto:star.bravo@gmail.com">mailto:star.bravo@gmail.com</a>] <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>
<a class="moz-txt-link-abbreviated" href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</a>;
<a class="moz-txt-link-abbreviated" href="mailto:serusers-request@iptel.org">serusers-request@lists.iptel.org</a><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 face="Times New Roman" size="3"><span
style="font-size: 12pt;"><o:p> </o:p></span></font></p>
<div>
<p class="MsoNormal"><font color="#000099" face="Times New Roman"
size="3"><span style="font-size: 12pt; color: rgb(0, 0, 153);">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 face="Times New Roman" size="3"><span
style="font-size: 12pt;"> <o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;">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 color="red" face="Times New Roman" size="3"><span
style="font-size: 12pt; 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 face="Times New Roman" size="3"><span
style="font-size: 12pt;"> <o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font face="Times New Roman" size="3"><span
style="font-size: 12pt;"><br>
<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><span class="gmailquote"><font
face="Times New Roman" size="3"><span style="font-size: 12pt;">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 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><o:p></o:p></p>
<p><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> </span></font><o:p></o:p></p>
<p><b><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; font-weight: bold;">My
handoff script looks like this:</span></font></b><o:p></o:p></p>
<p><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> </span></font><o:p></o:p></p>
<p><font color="navy" face="Courier New" size="2"><span
style="font-size: 10pt; 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 color="navy" face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">
log ("Forwarding to PSTN\n");</span></font><o:p></o:p></p>
<p><font color="navy" face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">
prefix("666#");</span></font><o:p></o:p></p>
<p><font color="navy" face="Courier New" size="2"><span
style="font-size: 10pt; 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 color="navy" face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">
break;</span></font><o:p></o:p></p>
<p><font color="navy" face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">
};</span></font><o:p></o:p></p>
<p><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> </span></font><o:p></o:p></p>
<p><b><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial; font-weight: bold;">The
PSTN interconnect description:</span></font></b><o:p></o:p></p>
<p><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> </span></font><o:p></o:p></p>
<p><font color="red" face="Courier New" size="2"><span
style="font-size: 10pt; 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 color="red" face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">eg.
666#442071016211</span></font><o:p></o:p></p>
<p><font color="red" face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New"; color: red;"> </span></font><o:p></o:p></p>
<p><font color="red" face="Courier New" size="2"><span
style="font-size: 10pt; 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 face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";"> </span></font><o:p></o:p></p>
<p><font face="Courier New" size="2"><span
style="font-size: 10pt; font-family: "Courier New";"> </span></font><o:p></o:p></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; font-family: "Courier New";"> </span></font><o:p></o:p></p>
<p><font face="Arial" size="2"><span
style="font-size: 10pt; font-family: Arial;"> </span></font><o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"><font
face="Times New Roman" size="3"><span style="font-size: 12pt;">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 face="Times New Roman" size="3"><span
style="font-size: 12pt;"><o:p> </o:p></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>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
</pre>
</blockquote>
<br>
</body>
</html>