[OpenSIPS-Users] The request ACK not forwarded when using topology_hiding()

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Aug 21 10:37:09 CEST 2014


Hi,

Replace :

/    if (has_totag()) {//
//        if (loose_route()) {//
/

with:

/    if (has_totag()) {//
//        if (loose_route() || match_dialog()) {//
/
Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 07.08.2014 10:18, Лытаев Антон Викторович wrote:
> if use the topology_hiding() without match_dialog() in has_totag():
>
> /    # account only INVITEs//
> //    if (is_method("INVITE")) {//
> //            if (registered("location","$fu")&&!client_nat_test("8"))//
> //                {//
> //                topology_hiding();//
> //                setflag(1); # do accounting//
> //                }//
> //            else {//
> //                sl_send_reply("403","Forbidden auth ID bla");//
> //                exit;//
> //                }//
> //      }//
> //..............................//
> //    if (has_totag()) {//
> //        if (loose_route()) {//
> //            if (is_method("BYE")) {//
> //                setflag(1); # do accounting ...//
> //                setflag(3); # ... even if the transaction fails//
> //            } else if (is_method("INVITE")) {//
> //                record_route();//
> //            }//
> //            route(1);//
> //        } else {//
> //            if ( is_method("ACK") ) {//
> //                if ( t_check_trans() ) {//
> //                    t_relay();//
> //                    exit;//
> //                } else {//
> //                    exit;//
> //                }//
> //            }//
> //        sl_send_reply("404","Not here blabla");//
> //        }//
> //        exit;//
> //    }......................//
> /
> then capture of the call looks like this:
>
>
>
> need to change has_totag (), adding match_dialog (), but how to do it 
> right?
>
> 06.08.2014 19:22, Bogdan-Andrei Iancu пишет:
>> Hi,
>>
>> Could you post a SIP capture of the call (showing both legs, on the 
>> opensips machine) ?
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer 
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140821/cbd4955f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 22736 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20140821/cbd4955f/attachment-0001.png>


More information about the Users mailing list