[OpenSIPS-Users] contact after fix_nated_contact()

Gupta, Rahul Rahul.Gupta at ipc.com
Mon May 23 18:17:24 CEST 2016


Hi Alex, thanks for the quick reply. I don't see if msg_apply_changes() is available in opensips. When I use it, I get the bad config file error. I did add loadmodule textops.so


Thanks
Rahul Gupta


---------------------------------------------------------------------------

Vote for IPC in the 2016 Waters Technology Awards. Winners are decided by people who are most important to us - our customers! Please vote for us (#27, #29) by "https://www.surveymonkey.com/r/R6Y27GJ".



-----Original Message-----
From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Alex Balashov
Sent: Monday, May 23, 2016 12:00 PM
To: users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] contact after fix_nated_contact()

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/

_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list