<div dir="ltr">Hello, <div><br></div><div style>The function is <a href="http://kamailio.org/docs/modules/stable/modules/textopsx.html#textopsx.msg_apply_changes">http://kamailio.org/docs/modules/stable/modules/textopsx.html#textopsx.msg_apply_changes</a>, but note that  unexpected results might happen.</div>
<div style><br></div><div style>Marius</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 21, 2013 at 2:09 PM, אורן אברהם <span dir="ltr">&lt;<a href="mailto:oren.av.jnk@gmail.com" target="_blank">oren.av.jnk@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="rtl"><div dir="ltr">thank you for the explanation.</div><div dir="ltr"><br></div><div dir="ltr">can  you please tell me the name of the function that copy the changes to the inbound buffer ?</div>

<div dir="ltr"><br></div><div dir="ltr"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2013/4/21 Olle E. Johansson <span dir="ltr">&lt;<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>&gt;</span></div>
<div><div class="h5">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
21 apr 2013 kl. 01:50 skrev אורן אברהם &lt;<a href="mailto:oren.av.jnk@gmail.com" target="_blank">oren.av.jnk@gmail.com</a>&gt;:<br>
<div><div><br>
&gt; Dear List.<br>
&gt;<br>
&gt; I&#39;m trying to change the contact header of a message. ( by calliing add_contact_alias - that shuld add the ;alias= parameter to the contact header)<br>
&gt; but, when i print the contact header (with xlog), it shows no change.<br>
&gt;<br>
&gt; I know the function works, and that it added the parameter as expected by using debug mode. (it sais that it was added)<br>
&gt;<br>
&gt; Can anyone explain me why i don&#39;t see that change in the xlog ? (i&#39;ve printer both $ct and $hdr(Contact))<br>
&gt;<br>
<br>
</div></div>Kamailio keeps two buffers of the incoming message, one is a copy of the incoming and the other one<br>
is the one where changes happen, a template for any outbound message used when forwarding<br>
to the next hop.<br>
<br>
If you change headers, they are changed in the outbound buffer, not the incoming. When you use<br>
functions to check headers, you check the incoming buffer.<br>
<br>
There is a function to apply changes to the inbound buffer that is needed sometimes, but very<br>
few times. It can be quite confusing if you are not aware of how changes to messages are applied.<br>
<br>
/O<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></div></div><br></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>