[OpenSIPS-Users] contact after fix_nated_contact()

Alex Balashov abalashov at evaristesys.com
Mon May 23 17:59:42 CEST 2016


On 05/23/2016 11:55 AM, Gupta, Rahul wrote:
> How do I get the updated contact after fix_nated_contact(), for example
> in the log statement  $ct prints the old Contact.
>
> xlog("Contact before fix_nated_contact: $ct");
>
> fix_nated_contact();
>
> xlog("Contact after fix_nated_contact: $ct");

You can run msg_apply_changes() after calling fix_nated_contact(), 
assuming it doesn't have any effects harmful to your cause:

http://kamailio.org/docs/modules/4.4.x/modules/textopsx.html#textopsx.f.msg_apply_changes

-- Alex

-- 
Alex Balashov | Principal | Evariste Systems LLC
1447 Peachtree Street NE, Suite 700
Atlanta, GA 30309
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/



More information about the Users mailing list