[OpenSIPS-Users] topology_hiding() not executing

Satish Patel satish.txt at gmail.com
Tue Aug 26 05:48:49 CEST 2014


I have put topology_hiding() function at following place in script but its
not hiding VIA header following is my senerio

[UA]-------->[Opensips]-----------[Asterisk/SIP gateway]

I want to hind my UA IP address so Asterisk doesn't see them, currently my
asterisk can see what IP address UA coming from, where should i put them
generally


if (is_method("INVITE")) {
...
...
if  ( uri=~"^sip:[0-9]*@.*") {
        uac_replace_from("sip:4545 at 65.111.170.127");
        t_on_failure("3");
        resetflag(7);
        t_relay( "udp:65.111.170.127:5065" );
         topology_hiding();
        exit;
        };
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140825/422c48eb/attachment.htm>


More information about the Users mailing list