<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">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>