Hi, On Fri, Apr 05, 2019 at 04:31:42PM +0000, Nicolas Breuer wrote:
> Any plans to add a timer for the timeout between 100 & 183 ?? > > https://lists.kamailio.org/pipermail/users/2007-December/014752.html > > That can be useful in case we receive an auto_100 but nothing after that. > Waiting the fr_inv_timer is not an option 😊 Despite appearances to the contrary, such a timer would be somewhat redundant, though perhaps that's not accounting for ease of use. You can change `fr_timer` and `fr_inv_timer` dynamically: https://kamailio.org/docs/modules/5.2.x/modules/tm.html#tm.f.t_set_fr https://kamailio.org/docs/modules/5.2.x/modules/tm.html#tm.f.t_reset_fr https://kamailio.org/docs/modules/5.2.x/modules/tm.html#tm.p.fr_timer_avp https://kamailio.org/docs/modules/5.2.x/modules/tm.html#tm.p.fr_inv_timer_avp This gives you the tools to accomplish what you want already. :-) modparam("tm", "fr_timer", 3000) # 3 seconds modparam("tm", "fr_inv_timer", 90000) # 90 seconds route { ... # Initial INVITE handling: if(is_method("INVITE")) { # Set fr_inv_timer initially to 5 seconds, so that # if we do not receive an answer or at least one non-100 1xx # response, trigger a failure_route and try the next gateway # or whatever. t_set_fr(50000); t_on_reply("REPLY_ROUTE"); if(!t_relay()) sl_reply_error(); exit; } } onreply_route[REPLY_ROUTE] { # 100 Trying responses are hop-by-hop and do not trigger an # onreply_route. # # Reset fr_inv_timer back to default 90 sec now that we have # received a 180 or 183 to indicate progress/alerting. if(is_method("INVITE") && t_check_status("180|183")) t_reset_fr(); } Hope that helps! -- Alex -- Alex Balashov | Principal | Evariste Systems LLC Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/ _______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
