SIP Calls Lasting Up to 6 Hours – Cause, Billing Impact & How to Prevent It SIP Calls Lasting Up to 6 Hours – Cause, Billing Impact & How to Prevent It

SIP Calls Lasting Up to 6 Hours – Cause, Billing Impact & How to Prevent It

Vonage API Support

Symptom

A SIP call appears to have ended from the user's perspective (they hung up), but Vonage continues to bill for the full 6-hour CALL_MAX_DURATION. The call is not terminated on the platform until the maximum duration limit is reached. In some cases, a callDestroyed event is received with reason_code: 705.

Applies To

  • Vonage Video API

  • SIP Interconnect

  • Programmable SIP

  • Billing

Cause

When a user hangs up a SIP call, their device sends a SIP BYE message to notify Vonage that the call has ended. If that BYE does not reach Vonage, the platform keeps the call "active" until the built-in CALL_MAX_DURATION limit of 6 hours is hit, at which point Vonage drops it automatically.

This is not a bug — it is a platform safety mechanism. The root cause is always that the SIP BYE is not being received by Vonage.

Common Root Causes

  • Firewall blocking SIP BYE — Outbound SIP signalling is being dropped before reaching Vonage.

  • NAT misconfiguration — NAT Mapping is not enabled on your SBC/PBX, causing signalling to be misrouted.

  • Application not sending BYE — A code-level issue where your SIP client doesn't send BYE on hang-up.

  • Vonage IPs not whitelisted — Return signalling is blocked. See: Which IP addresses should I allow?

  • TLS session / NAT pinhole timeout — For TLS calls, the NAT pinhole may expire without periodic session refreshes, preventing BYE delivery.

Billing Impact

Vonage bills SIP Interconnect based on the actual call duration as seen by the platform. If the SIP leg is part of a Video API session, video minutes keep accruing for the full 6 hours — even if the user hung up after 2 minutes. This can result in significantly higher charges than expected.

Example: User hangs up after 2 minutes → BYE not received → billed for 6 hours of SIP Interconnect + 6 hours of Video session minutes.


Resolution

1. Always Use the Force Disconnect API (Most Reliable)

Explicitly terminate the SIP connection from your server at the end of every call using the Force Disconnect REST API — regardless of whether a BYE was sent.

Step 1 – Get the Connection ID

Capture the connectionId from the Dial API response, or retrieve it via:

GET https://video.api.vonage.com/v2/project/{APPLICATION_ID}/session/{SESSION_ID}/connection
Authorization: Bearer {JWT_TOKEN}

Step 2 – Force Disconnect

DELETE https://video.api.vonage.com/v2/project/{APPLICATION_ID}/session/{SESSION_ID}/connection/{CONNECTION_ID}
Authorization: Bearer {JWT_TOKEN}

Notes:

  • Use your Application ID in the path (not a separate project ID).

  • Generate the JWT using your Application ID and Private Key (RS256). See the Video API Authentication Guide.


2. Fix Your Network & SBC Configuration

  • Enable NAT Mapping on your SBC/PBX.

  • Whitelist all Vonage IP addresses for SIP signalling.

  • Verify your application sends a BYE on every call termination.


3. Configure Session Timers (TLS Only)

If using transport=tls, set the Session-Expires header and refresher parameter in your INVITE to keep the session alive and ensure BYE delivery on longer calls.


4. Monitor for reason_code: 705

Register a SIP call monitoring callback in your project. A callDestroyed event with reason_code: 705 (Max Duration) means the 6-hour limit was hit — a clear sign BYE messages are not reaching Vonage.


Additional Information

Platform Limitation: The 6-hour CALL_MAX_DURATION is a platform-wide default and cannot be changed per account. The only way to enforce shorter durations is to use the Force Disconnect API from your server.

Useful References