<DIV>Hi serusers,</DIV>
<DIV> </DIV>
<DIV>Anybody has a sample ser.cfg 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> </DIV>
<DIV>where to put the forwording code.</DIV>
<DIV> </DIV>
<DIV>I got some sample code here:</DIV>
<DIV> </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> # check first to which PSTN destination the requests goes;<BR> # if it is US (prefix "1"), use the gateway XXX.XXX.XXX.XXX...<BR> if (uri=~"^sip:1") {<BR> # strip the leading "1"<BR> strip(1);<BR> forward(XXX.XXX.XXX.XXX, 5060);<BR> } else {<BR> # ... use the gateway YYY.YYY.YYY.YYY for all other destinations<BR> forward(YYY.YYY.YYY.YYY , 5060);<BR> }<BR>
break;<BR>}</DIV>
<DIV> </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> </DIV>
<DIV>Thanks for your time,</DIV>
<DIV> </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>