I thought so, but it does show the header is not removed in my sip captures. I might be missing out something here. Are changes made to the sip messages in a branch route effected in the reply? I also tried removing the headers in other route[] but doesn't work either.
On Thu, Feb 12, 2015 at 8:53 AM, Vlad Paiu <[email protected]> wrote: > Hello, > > Due to OpenSIPS internals, the changes to the message are stored and only > applied when the message goes out - that's why removing a header and then > checking for it's existence will not appear consistent. But nonetheless, > the change you make in the script to the SIP message will get propagated. > > Best Regards, > > Vlad Paiu > OpenSIPS Developerhttp://www.opensips-solutions.com > > On 12.02.2015 11:22, Podrigal, Aron wrote: > > Hi, > > > I'm want to remove the Remote-Party_ID header, but it does not work. > > if (is_present_hf("Remote-Party-ID")) { > xlog("removing Remote-Party-ID"); > remove_hf("Remote-Party-ID"); > } > > if (is_present_hf("Remote-Party-ID")) > xlog("Remote-Party-ID is still present"); > > > I tried this in several places, within a branch_route, main route. but > it does not work. > Any help? what am I doing wrong? > > Thanks > > > _______________________________________________ > Users mailing > [email protected]http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
