Falsy Call Duration Values Cause SIP Calls to Bill Until the 24-Hour Server Default
A developer reports that a transport-level maximum call duration was silently dropped when the computed value was falsy, such as zero, NaN, or undefined. Because the SDK omits the field entirely rather than sending a zero, the SIP server applies its own default limit, typically 24 hours. Application-level timeouts never fire when the worker wedges, so the stalled call keeps running and accruing carrier charges. The suggested fix is to strictly validate the duration, add a 90-second margin, clamp it to a 3,600-second ceiling, and throw an error for non-positive values. The author also recommends checking raw placement payloads and logging the computed duration to diagnose such failures.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in