<div dir="ltr">msg_apply_changes made a little mess in every SIP message, so I am trying to avoid it at all cost..<div style><br></div><div style>rpid manipulation in branch route worked like a charm, thanks.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 24, 2013 at 7:40 PM, Marius Zbihlei <span dir="ltr">&lt;<a href="mailto:mariuszbi@gmail.com" target="_blank">mariuszbi@gmail.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">Hello, <div><br></div><div>I can see two variants:</div><div>1. Move the append_hf in the branch route so you can have a per branch decision </div>
<div>2. call mg_apply_change() from textops to immediately apply the changes after append_hf()</div>
<div> <a href="http://kamailio.org/docs/modules/devel/modules/textopsx.html#textopsx.msg_apply_changes" target="_blank">http://kamailio.org/docs/modules/devel/modules/textopsx.html#textopsx.msg_apply_changes</a></div><div>
<br>
</div><div>You can call remove_hf() on the changed message.</div><div><br></div><div>Cheers,</div><div>Marius</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 24, 2013 at 6:19 PM, Javi Gallart <span dir="ltr">&lt;<a href="mailto:jgallart@systemonenoc.com" target="_blank">jgallart@systemonenoc.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>
<br>
you may try to do the remove/add operations in each branch_route<br>
<br>
Regards<br>
<br>
Javi<br>
-----Original Message-----<br>
From: Mino Haluz &lt;<a href="mailto:mino.haluz@gmail.com" target="_blank">mino.haluz@gmail.com</a>&gt;<br>
Sender: <a href="mailto:sr-users-bounces@lists.sip-router.org" target="_blank">sr-users-bounces@lists.sip-router.org</a><br>
Date: Sun, 24 Feb 2013 19:06:29<br>
To: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users        Mailing List&lt;<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>
Reply-To: &quot;SIP Router - Kamailio \(OpenSER\) and SIP Express Router \(SER\) -<br>
        Users Mailing List&quot; &lt;<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>
Subject: [SR-Users] How to remove custom header after adding one<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>