<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 3, 2020 at 7:24 AM Alex Balashov <<a href="mailto:abalashov@evaristesys.com">abalashov@evaristesys.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">On Mon, Feb 03, 2020 at 07:17:42AM +0900, mayamatakeshi wrote:<br>
<br>
> is it possible to reply with a different expires for a REGISTER depending<br>
> on some condition like the User-Agent?<br>
> I am thinking maybe I can use:<br>
>   $ulc(profile=>expires) = 600<br>
<br>
Expiration is ultimately in the hands of the registrar, and the<br>
registrar is free to reply with an expiration different to what the<br>
registrant has requested.<br>
<br>
Expiration policy is generally controlled by:<br>
<br>
   <a href="https://kamailio.org/docs/modules/5.3.x/modules/registrar.html#registrar.p.min_expires" rel="noreferrer" target="_blank">https://kamailio.org/docs/modules/5.3.x/modules/registrar.html#registrar.p.min_expires</a><br>
<br>
   <a href="https://kamailio.org/docs/modules/5.3.x/modules/registrar.html#registrar.p.max_expires" rel="noreferrer" target="_blank">https://kamailio.org/docs/modules/5.3.x/modules/registrar.html#registrar.p.max_expires</a><br>
<br>
and some related modparams near the top.<br>
<br>
As far as I am aware, there is no way to override the expiration<br>
decisions of the registrar in a custom way.<br>
<br></blockquote><div><br></div><div>I think you are right. </div><div>I will try a different approach that is to enlarge the allowed registrar expires range using the above parameter and then change the value of the Expires in the REGISTER message before passing it to registrar module.</div><div>Thanks.</div></div></div>