Timeout on call duration

Description

Context

When a ghost call is in the system, the call can be «active» for a long period of time until an administrator see it. Is there some timeout we can set? Or a cleanup cron?

Solution

  • Having a cron mecanism, that kill all calls longer than 10 hours

  • Not configurable

  • Running by default

Expectation

Administrator do not have to detect and kill ghost calls manually.

max call duration would be 10h

Zendesk Ticket IDs

None

Attachments

1
100% Done
Loading...

Activity

Show:

Charles Langlois May 23, 2024 at 6:31 PM

pascal supports putting set_var in global sip templates.
if sccp support is relevant, can modify wazo-confgend to also use a set_var.

Jirka Hlavacek May 23, 2024 at 2:12 PM

What we’ve found is that the sip.js does not support session-timers, so we can’t use those for the moment, at least not for web/desktop/mobile apps.

Charles Langlois May 22, 2024 at 9:02 PM

One potential issue is that the effect of this timeout seems hidden. There’s no explicit message that explain the origin of the hangup. Even in debug 9 logging it does not seem obvious what’s happening.

Charles Langlois May 22, 2024 at 8:44 PM
Edited

Would it be appropriate to update the default global SIP template with a set_var for TIMEOUT(absolute)=36000? This would allow admins to override that value if they want. Would require a migration?

Alternatively, we could update the extensions_lib_did.conf dialplan to set this timeout through a global variable(the TIMEOUT(absolute) function itself cannot be set as a global var it seems). This would cover incoming calls. Could do the same for e.g. outcalls in extensions_lib_outcall.conf . Is there a way to affect both incalls, outcalls and internal calls in the same way without updating dialplan all over?

Charles Langlois May 22, 2024 at 5:58 PM

SET(TIMEOUT(absolute)=10) does hangup calls after 10 seconds, unconditionally, based on a test with a call to a holding bridge. This is a simple solution to put an absolute limit on all calls indepent on their status.
It can be configured manually through the set_var option of the global SIP template, affecting all SIP endpoints.

Done

Details

Priority

Assignee

Reporter

Approvers

Jirka Hlavacek
Pascal Cadotte

Fix versions

Sprint

Story Points

Zendesk Support

Created April 2, 2024 at 2:48 PM
Updated June 7, 2024 at 3:20 PM
Resolved May 30, 2024 at 9:10 PM