<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">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 class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
On 12.02.2015 11:22, Podrigal, Aron wrote:<br>
</div>
<blockquote
cite="mid:CANJp-yjeqDWGDX31-ZrE3K4WpUWP4fboap_nrQn_ssJyyEcJDw@mail.gmail.com"
type="cite">
<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 class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>