[SR-Users] Ringing Timeout
Alex Balashov
abalashov at evaristesys.com
Mon Aug 9 19:33:18 CEST 2021
Hi Edward,
You can achieve this by manipulating the fr_inv_timer (timer to final dispositive response for the transaction):
https://kamailio.org/docs/modules/5.5.x/modules/tm.html#tmp.p.fr_inv_timer
The secret ingredient is to reset it in an `onreply_route` only once you have received a 180/183 response:
https://kamailio.org/docs/modules/5.5.x/modules/tm.html#tm.f.t_set_fr
e.g.
--------
onreply_route[MAIN_REPLY] {
…
if(t_check_status(“180|183”))
t_set_fr(20000);
}
--------
— Alex
> On Aug 7, 2021, at 10:31 AM, Edward Romanenco <edwardr at telemessage.com> wrote:
>
> Hey all,
>
> I'm trying to find the best way for settings a timeout for the 'ringing' stage of a call - meaning - I would like to wait for 20 seconds between receiving status 180 / 183 / early media from the remote end and 200, if I fail to receive the expected response in this timeframe - call should be dropped. Most of the documented timeouts I saw count between the first invite to any of the aforementioned stages - but I'm actually looking for the opposite.
>
> Edward
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
> * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
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/
More information about the sr-users
mailing list