<div dir="ltr"><div><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 9, 2020 at 8:49 AM David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</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"><div><div dir="auto">I wonder whether changing the expire value constantly will impact all expires, as opposed to just the one you’re trying to set it to. If, say you lower it for a register, will that expire all existing registers? </div></div><div><br></div></blockquote><div><br></div><div>Actually, my idea was to do something like this before handing the REGISTER to registrar save() function:</div><div>                        remove_hf("Expires");</div>                        append_hf("Expires: 200\r\n");<br><div>However, this didn't work (or at least, it doesn't work with kamailio 4.3.7 which is the one I use).</div><div><br></div><div>But I found a solution for my problem:</div><div>Starting from kamailio 5.0, registrar function save() supports this new flag:</div><i>  0x08 - Do not apply expires_range or default_expires_range to this registration.</i><br>  <a href="https://kamailio.org/docs/modules/5.0.x/modules/registrar.html#registrar.f.save">https://kamailio.org/docs/modules/5.0.x/modules/registrar.html#registrar.f.save</a></div><div class="gmail_quote">I actually don't need to specify an Expires value in the REGISTER reply. I just need to allow a higher Expires value for some UACs (actually SIP servers registering with Kamailio).</div><div class="gmail_quote">I have not tested it yet but based on the description, it should work.</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><br><div> </div></div></div>