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!
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@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!
Hi all, I have ser running, rtpproxy running too. The server is located on the net.
With my computer and xlite, when i try to call from home (under nat), nothing happens and i get a 408 timeout. With the same pc, at the office, it works (natted too).
First question : how to make rtpproxy start at boot? Second question : how to make rtpproxy efficient? Third and last : Can rtpproxy solve all configurations?
Regards,
Olivier