<div dir="ltr">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.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 8:53 AM, Vlad Paiu <span dir="ltr"><<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hello,<br>
<br>
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.<br>
<br>
Best Regards,<br>
<pre cols="72">Vlad Paiu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a> </pre><div><div class="h5">
On 12.02.2015 11:22, Podrigal, Aron wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi,
<div><br>
</div>
<div><br>
</div>
<div>I'm want to remove the Remote-Party_ID header, but it does
not work.</div>
<div><br>
</div>
<div>
<div><font face="monospace, monospace">if
(is_present_hf("Remote-Party-ID")) {</font></div>
<div><font face="monospace, monospace"> </font><span style="font-family:monospace,monospace">xlog("removing
Remote-Party-ID");</span></div>
<div><font face="monospace, monospace">
remove_hf("Remote-Party-ID");</font></div>
</div>
<div><font face="monospace, monospace">}</font></div>
<div><span style="font-family:monospace,monospace"><br>
</span></div>
<div><span style="font-family:monospace,monospace">if
(is_present_hf("Remote-Party-ID"))</span><span style="font-family:monospace,monospace"><br>
</span></div>
<div><span style="font-family:monospace,monospace"> </span><span style="font-family:monospace,monospace">xlog("Remote-Party-ID
is still present");</span></div>
<div><br>
</div>
<div><br>
</div>
<div><font face="arial, helvetica, sans-serif">I tried this in
several places, within a branch_route, main route. but it
does not work.</font></div>
<div><font face="arial, helvetica, sans-serif">Any help? what am
I doing wrong?</font></div>
<div><font face="arial, helvetica, sans-serif"><br>
</font></div>
<div><font face="arial, helvetica, sans-serif">Thanks</font></div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>