[OpenSIPS-Users] topology_hiding() not executing

Satish Patel satish.txt at gmail.com
Wed Aug 27 05:41:20 CEST 2014


while googling i found following suggestion which is provided by you and it
is also not working, I did SIP trace on both asterisk and opensip and found
asterisk doesn't know about transaction because missing VIA: and its not
sending BYE but it is just sending INVITE and opensip sending 200OK back..
I don't know why Asterisk not sending BYE.

Note: if i remove topology_hiding() then asterisk sending proper BYE
message and everything works!!

some how i am not seeing loose_route executing anytime in script, opensips
doesn't touching loose_route function at all..

if (loose_route() || match_dialog()) {
         if ($DLG_status==NULL {
             xlog("Failed to match the sequential request to a known
dialog\n");
         } else {
             if (!validate_dialog())
                 fix_route_dialog();

             # continue your in-dialog requests processing as usual
         }
     }




On Tue, Aug 26, 2014 at 8:38 AM, Satish Patel <satish.txt at gmail.com> wrote:

> I have tried your logic and it works but it is not handling BYE message,
> after caller hang up phone, caller not receiving BYE and caller phone is
> still in connected state not getting hung up.
>
> Sent from my iPhone
>
> On Aug 26, 2014, at 5:09 AM, Vlad Paiu <vladpaiu at opensips.org> wrote:
>
> Hello,
>
> You must call topology_hiding() before t_relay() - please try that.
> Also, make sure to change your sequential request handling from
>
>      if (loose_route())
>
> to
>
>      if (loose_route() || match_dialog())
>
>
> Best Regards,
>
> Vlad Paiu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 26.08.2014 06:48, Satish Patel wrote:
>
>  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]*@.*" <%5Esip:[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;
>         };
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140826/1dfdcee8/attachment.htm>


More information about the Users mailing list