<div dir="auto">But you will see those changes in the pcap even without apply_message_changes<div dir="auto">It is highly recommended to not use this function as it parses all message again. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 11 Feb 2020, 12:29 mayamatakeshi, <<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 11, 2020 at 7:48 PM Daniel Tryba <<a href="mailto:d.tryba@pocos.nl" target="_blank" rel="noreferrer">d.tryba@pocos.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Feb 11, 2020 at 08:03:29AM +0900, mayamatakeshi wrote:<br>
> Actually, my idea was to do something like this before handing the REGISTER<br>
> to registrar save() function:<br>
>                         remove_hf("Expires");<br>
>                         append_hf("Expires: 200\r\n");<br>
> However, this didn't work (or at least, it doesn't work with kamailio 4.3.7<br>
> which is the one I use).<br>
<br>
These changes aren't applied to the processing of the current message<br>
until you call msg_apply_changes().<br>
<br>
Try adding and see if it works.<br></blockquote><div><br></div><div>Indeed. This worked:</div><div>        remove_hf("Expires");<br></div>        append_hf("Expires: 200\r\n");<br>        msg_apply_changes();<br><div>Thanks! <br></div></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank" rel="noreferrer">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>