[OpenSER-Users] Why if (uri==myself) is always true? (about openser call a number PSTN)

Iñaki Baz Castillo ibc at in.ilimit.es
Thu Aug 9 12:17:47 CEST 2007


El Thursday 09 August 2007 11:59:08 zze-WU Yin RD-MAPS-LAN escribió:
> Hello everybody,
>
> 	I want that openser can call a PSTN number for example:
> 0296487631. But in the request of INVITE, I see that the callee is
> always
> 0296487631 at opensersip.test.machine ( and opensersip.test.machine is my
> sip server), that means the (uri==myself) is always ture. So this
> request of INVITE can not reache the gateway of PSTN.

Can't understand, your file has:

route[3] { 
         
        if (uri=~"^sip:[0-9]{10}@") { 
        xlog(" ---------------- Call to PSTN ---------------\n");  # <- DEBUG
        route(4); 
        exit; 
        }; 
        ...
}
route[4] { 
        rewritehost("172.20.14.32"); 
        route(1); 
}



So the URI should be modified and you should see the xlog I've added above.

But of course note that the only is modified is the URI, and not the "To:" 
field that doesn't change (and doesn't must it).




> Anybody can give me some advices?

First try adding that XLOG and test if it appears when calling to that number.


Regards.ç




-- 
Iñaki Baz Castillo
ibc at in.ilimit.es




More information about the Users mailing list