[Serusers] How to forward calls to Cisco AS5300 GW

Iqbal iqbal at gigo.co.uk
Fri Mar 18 12:43:09 CET 2005


You could try rewritehostport("a.b.c.d:5000"); this would send it.

Also for the prefix match , use the lcr module, add your prefixes in
there, and it should select the correct gateway based on call prefix for
you

Iqbal

On 3/18/2005, "Steven Xu" <stevenxiu at yahoo.com> wrote:

>Hi serusers,
>
>Anybody has a sample ser.cfg  that forward calls to Cisco AS5300 GW?
>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.
>
>where to put the forwording code.
>
>I got some sample code here:
>
># is it a PSTN destination? (is username nummerical and does not begin with 8?)
>if (uri=~"^sip:[0-79][0-9]*@") { # ... forward to gateways then;
>      # check first to which PSTN destination the requests goes;
>      # if it is US (prefix "1"), use the gateway XXX.XXX.XXX.XXX...
>      if (uri=~"^sip:1") {
>           # strip the leading "1"
>           strip(1);
>           forward(XXX.XXX.XXX.XXX, 5060);
>      } else {
>           # ... use the gateway YYY.YYY.YYY.YYY for all other destinations
>           forward(YYY.YYY.YYY.YYY , 5060);
>      }
>      break;
>}
>
>I dont know if it can talk with Cisco 5300 GW though.
>Where should I put it in ser.cfg with NAThelper + RTPreply support?
>How to debug the ser.cfg, if i hear busy tone when i dial the PSTN number.
>
>Thanks for your time,
>
>Steve
>
>
>---------------------------------
>Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
>




More information about the sr-users mailing list