<DIV>Hi serusers,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Anybody has a sample ser.cfg &nbsp;that forward calls to Cisco AS5300 GW?</DIV>
<DIV>I am using the Nathelper templet config file and got NAT +RTP relay works on IP2IP, but dont know how to work with PSTN through Cisco AS5300 GW.</DIV>
<DIV>&nbsp;</DIV>
<DIV>where to put the forwording code.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I got some sample code here:</DIV>
<DIV>&nbsp;</DIV>
<DIV># is it a PSTN destination? (is username nummerical and does not begin with 8?)<BR>if (uri=~"^sip:[0-79][0-9]*@") { # ... forward to gateways then;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # check first to which PSTN destination the requests goes;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # if it is US (prefix "1"), use the gateway XXX.XXX.XXX.XXX...<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (uri=~"^sip:1") {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # strip the leading "1"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strip(1);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; forward(XXX.XXX.XXX.XXX, 5060);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # ... use the gateway YYY.YYY.YYY.YYY for all other destinations<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; forward(YYY.YYY.YYY.YYY , 5060);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 break;<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>I dont know if it can talk with Cisco 5300 GW though.</DIV>
<DIV>Where should I put it in ser.cfg with NAThelper + RTPreply support?</DIV>
<DIV>How to debug the ser.cfg, if i hear busy tone when i dial the PSTN number.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks for your time,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Steve</DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
Yahoo! Small Business - <a href="http://us.rd.yahoo.com/evt=31637/*http://smallbusiness.yahoo.com/resources/">Try our new resources site!</a>