<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Mensagem</TITLE>

<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=046553121-30042004>Hi 
guys,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=046553121-30042004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=046553121-30042004>I was create a 
script to route some kinds of routes&nbsp;calls to PSTN&nbsp;( like that ). So 
after 59 sec. it is droped.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=046553121-30042004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=046553121-30042004>Someone can help me 
?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=046553121-30042004>Thank you all for 
attention and kindness in advance.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=046553121-30042004></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=046553121-30042004>Jadylson 
Bomfim</SPAN></FONT></DIV>
<DIV>
<P><FONT size=2>if (uri=~"sip:0[0-9]*@.*") {</FONT></P>
<P><FONT size=2>route(6);</FONT></P>
<P><FONT size=2>break;</FONT></P>
<P><FONT size=2>};</FONT></P>
<P><FONT size=2>route[6] {</FONT></P>
<P><FONT size=2>setflag(1);</FONT></P>
<P><FONT size=2>if (uri=~"^sip:0[1-9]*@") {</FONT></P>
<P><FONT size=2>strip(1);</FONT></P>
<P><FONT size=2>prefix("01155");</FONT></P>
<P><FONT size=2>rewritehostport("<SPAN class=046553121-30042004>ip 
address</SPAN>:5060");</FONT></P>
<P><FONT size=2>acc_rad_request("Saindo Para PSTN no Brasil"); </FONT></P>
<P><FONT size=2>if (method=="INVITE" &amp;&amp; search("User-Agent: snom")) 
{</FONT></P>
<P><FONT size=2>replace("100rel, ", "");</FONT></P>
<P><FONT size=2>};</FONT></P>
<P><FONT size=2>append_hf("P-hint: GATEWAY\r\n");</FONT></P>
<P><FONT size=2># use UDP to guarantee well-known sender port (TCP 
ephemeral)</FONT></P>
<P><FONT size=2>t_relay_to_udp("<SPAN class=046553121-30042004>ip 
address</SPAN>","5060");</FONT></P>
<P><FONT size=2>} else {</FONT></P>
<P><FONT size=2>if (uri=~"^sip:00[0-9][0-9]*@") { # ... forward to gateways 
then;</FONT></P>
<P><FONT size=2>#Cheque se inicia com 00 </FONT></P>
<P><FONT size=2>if (uri=~"^sip:00") {</FONT></P>
<P><FONT size=2># strip the leading "1"</FONT></P>
<P><FONT size=2>strip(2);</FONT></P>
<P><FONT size=2>prefix("011");</FONT></P>
<P><FONT size=2># if you have passed through all the checks, let your call go to 
GW!</FONT></P>
<P><FONT size=2>rewritehostport("<SPAN class=046553121-30042004>ip 
address</SPAN>:5060");</FONT></P>
<P><FONT size=2># snom conditioner</FONT></P>
<P><FONT size=2>if (method=="INVITE" &amp;&amp; search("User-Agent: snom")) 
{</FONT></P>
<P><FONT size=2>replace("100rel, ", "");</FONT></P>
<P><FONT size=2>};</FONT></P>
<P><FONT size=2>append_hf("P-hint: GATEWAY\r\n");</FONT></P>
<P><FONT size=2># use UDP to guarantee well-known sender port (TCP 
ephemeral)</FONT></P>
<P><FONT size=2>t_relay_to_udp("<SPAN class=046553121-30042004>ip 
address</SPAN>","5060");</FONT></P>
<P><FONT size=2>};</FONT></P>
<P><FONT size=2>} else {</FONT></P>
<P><FONT size=2>if (uri=~"^sip:001*@") { # ... forward to gateways 
then;</FONT></P>
<P><FONT size=2>#Cheque se inicia com 00 </FONT></P>
<P><FONT size=2>if (uri=~"^sip:00") {</FONT></P>
<P><FONT size=2># strip the leading "1"</FONT></P>
<P><FONT size=2>strip(2);</FONT></P>
<P><FONT size=2># if you have passed through all the checks, let your call go to 
GW!</FONT></P>
<P><FONT size=2>rewritehostport("<SPAN class=046553121-30042004>ip 
address</SPAN>:5060");</FONT></P>
<P><FONT size=2># snom conditioner</FONT></P>
<P><FONT size=2>if (method=="INVITE" &amp;&amp; search("User-Agent: snom")) 
{</FONT></P>
<P><FONT size=2>replace("100rel, ", "");</FONT></P>
<P><FONT size=2>};</FONT></P>
<P><FONT size=2>append_hf("P-hint: GATEWAY\r\n");</FONT></P>
<P><FONT size=2># use UDP to guarantee well-known sender port (TCP 
ephemeral)</FONT></P>
<P><FONT size=2>t_relay_to_udp("<SPAN class=046553121-30042004>ip 
address</SPAN>","5060");</FONT></P>
<P><FONT size=2>};</FONT></P>
<P><FONT size=2>};</FONT></P>
<P><FONT size=2>};</FONT></P>
<P><FONT size=2>};</FONT></P>
<P><FONT size=2>}</FONT></P></DIV>
<DIV align=left>
<DIV style="WIDTH: 346px; HEIGHT: 291px" align=left>
<P class=MsoNormal>&nbsp;</P>
<P class=MsoNormal style="MARGIN-TOP: 0px"><SPAN 
style="FONT-WEIGHT: 700; COLOR: #0000ff; FONT-FAMILY: Verdana">Jadylson da Rocha 
Passos Bomfim</SPAN></P>
<P class=MsoNormal style="MARGIN-TOP: 0px"><FONT face=Verdana color=navy><SPAN 
lang=EN-US style="COLOR: #0000ff; FONT-FAMILY: Verdana">Redevox 
Telecom</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-TOP: 0px"><SPAN 
style="COLOR: #0000ff; FONT-FAMILY: Verdana">Uberlandia</SPAN><FONT face=Verdana 
color=navy><SPAN lang=EN-US style="COLOR: #0000ff; FONT-FAMILY: Verdana"> +55 34 
3234-7813</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-TOP: 0px"><SPAN 
style="COLOR: #0000ff; FONT-FAMILY: Verdana">São Paulo</SPAN><FONT face=Verdana 
color=navy><SPAN lang=EN-US style="COLOR: #0000ff; FONT-FAMILY: Verdana">&nbsp; 
+55 11 5055-6888</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN-TOP: 0px"><FONT face=Verdana color=navy><SPAN 
lang=EN-US style="COLOR: #0000ff; FONT-FAMILY: Verdana">Mó</SPAN><SPAN 
style="COLOR: #0000ff; FONT-FAMILY: Verdana">vel&nbsp; </SPAN><SPAN lang=EN-US 
style="COLOR: #0000ff; FONT-FAMILY: Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+55 
34 9103-6854</SPAN></FONT></P>
<P><IMG height=49 src="cid:046553121@30042004-2775" width=185 
border=0></P>&nbsp;</DIV></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>
<BR>

<P><FONT SIZE=2>---<BR>
Outgoing mail is certified Virus Free.<BR>
Checked by AVG anti-virus system (http://www.grisoft.com).<BR>
Version: 6.0.643 / Virus Database: 411 - Release Date: 25/3/2004<BR>
</FONT> </P>

<P><FONT SIZE=2 FACE="Arial"> </FONT> </P>