<div dir="ltr"><div>This is what I have</div><div><br></div><div><font face="monospace, monospace">branch_route[RPID] {</font></div><div><font face="monospace, monospace">        if (is_present_hf(&quot;Remote-Party-ID&quot;)) {</font></div><div><font face="monospace, monospace">                xlog(&quot;removing Remote-Party-ID&quot;);</font></div><div><font face="monospace, monospace">                if(remove_hf(&quot;Remote-Party-ID&quot;))</font></div><div><font face="monospace, monospace">                        xlog(&quot;successfully removed&quot;);</font></div><div><font face="monospace, monospace">                else</font></div><div><font face="monospace, monospace">                        xlog(&quot;not removed&quot;);</font></div><div><font face="monospace, monospace">        }</font></div><div><font face="monospace, monospace">        #msg_apply_changes();</font></div><div><font face="monospace, monospace">        if (is_present_hf(&quot;Remote-Party-ID&quot;))</font></div><div><font face="monospace, monospace">                xlog(&quot;Remote-Party-ID is present&quot;);</font></div><div><font face="monospace, monospace">}</font></div><div><br></div><div><br></div><div>And this logs</div><div><div>Feb 12 15:05:35 aron /usr/local/opensips_outbound/sbin/opensips[41305]: removing Remote-Party-ID</div><div>Feb 12 15:05:35 aron /usr/local/opensips_outbound/sbin/opensips[41305]: not removed</div><div>Feb 12 15:05:35 aron /usr/local/opensips_outbound/sbin/opensips[41305]: Remote-Party-ID is present</div></div><div><br></div><div>And still shows the header in the capture</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 2:57 PM, Podrigal, Aron <span dir="ltr">&lt;<a href="mailto:aronp@guaranteedplus.com" target="_blank">aronp@guaranteedplus.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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&#39;t work either.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 8:53 AM, Vlad Paiu <span dir="ltr">&lt;<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>&gt;</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&#39;s why removing a
      header and then checking for it&#39;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>
      On 12.02.2015 11:22, Podrigal, Aron wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div>
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I&#39;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(&quot;Remote-Party-ID&quot;)) {</font></div>
          <div><font face="monospace, monospace">   </font><span style="font-family:monospace,monospace">xlog(&quot;removing
              Remote-Party-ID&quot;);</span></div>
          <div><font face="monospace, monospace"> 
               remove_hf(&quot;Remote-Party-ID&quot;);</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(&quot;Remote-Party-ID&quot;))</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(&quot;Remote-Party-ID
            is still present&quot;);</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" target="_blank">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>
</div></div></blockquote></div><br></div>