<div dir="auto">I think I had to also set</div><div dir="auto"><br></div><div dir="auto">modparam("dialog", "timeout_noreset", 1)<br></div><div dir="auto"><br></div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 17 Jul 2022 at 07:51, 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-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hi,<br>
<br>
I discovered recently that, on Kamailio 5.5.4 at least, the dialog ’timeout_avp’ no longer appears to have effect. <br>
<br>
Here are my (seemingly relevant) dialog parameters:<br>
<br>
modparam("dialog", "enable_stats", 0)<br>
modparam("dialog", "hash_size", 4096)<br>
modparam("dialog", "rr_param", "dlgcor")        # DLG "correlator"<br>
modparam("dialog", "dlg_flag", 2)<br>
modparam("dialog", "default_timeout", 28800)    # 8 hours<br>
modparam("dialog", "dlg_match_mode", 1)<br>
modparam("dialog", "table_name", "dialog")<br>
modparam("dialog", "send_bye", 1)<br>
modparam("dialog", "wait_ack", 0)<br>
modparam(“dialog”, “timeout_avp”, “$avp(dlg_timeout)”)<br>
<br>
The flow is roughly like this:<br>
<br>
request_route {<br>
   ... <br>
<br>
   t_check_trans();<br>
<br>
   if(is_method(“INVITE”)) {<br>
      ...<br>
<br>
      dlg_manage();<br>
      $avp(dlg_timeout) = 10;<br>
<br>
      ...<br>
<br>
      if(!t_relay())<br>
         sl_reply_error();<br>
<br>
      return;<br>
   }<br>
<br>
I was able to resolve the problem by switching to dlg_set_timeout() instead, but I wonder if there has been a regression. Last version I have on which this positively works is 4.4.7, though, so not sure when it might have broken.<br>
<br>
One nuance: $avp(dlg_timeout) is not initialised prior to calling dlg_manage(), and the value is only set if certain conditions are true. Not sure if some stricter check appeared in later releases which could cause this to be a problem.<br>
<br>
Thank you!<br>
<br>
— Alex<br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
<br>
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
<br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>