[Serusers] Problem strip and t_relay

Tropico Network jpeters at tropico-network.com
Wed Oct 1 05:20:05 CEST 2003


Dear Ladies and Gentlemen,
after installing the version 0.8.11 I am facing a strange problem:

In my dialing plan, all numbers starting with a 0 should go to a
PSTN-gateway (172.16.0.101). So I have in my ser.cfg the following lines:

if (uri=~"^sip:0[0-9]*@") then {
    strip(1);
    rewritehostport(172.16.0.101:5060);
    if (!t_relay()) {
       bla;
	 bla;
    };
);

The router is sending the packet right to the GW, but including the leading
0, so that the call cannot be completed. With version 0.8.10-2 it was
already working. What do I have to change, or is there maybe a small glitch
in the software?

with kind regards

Juergen Peters
Tropico Network
General Manager
Tel. ++504 440-1461
fax. ++504 443-0660






More information about the sr-users mailing list