News

News

Understanding Session Timers (SIP Re-INVITE) and How They Keep Calls Alive

Nothing frustrates business callers more than a dropped connection in the middle of an important conversation. In VoIP networks, long calls can sometimes disconnect unexpectedly because network devices or service providers enforce idle timeouts. Session timers, implemented through SIP Re-INVITE messages, solve this problem by keeping active calls refreshed and recognized as alive. Understanding how session timers work helps network administrators prevent unnecessary call drops and maintain reliable voice service.

What Are SIP Session Timers?

Session timers are a mechanism defined in RFC 4028 that allows SIP endpoints to monitor the health of an active call and confirm that both parties are still participating. When a call begins, the endpoints negotiate a session interval, which is a time limit after which the call must be refreshed. If neither side sends a refresh message before the timer expires, the call is terminated automatically.

The purpose of session timers is to prevent hung or ghost calls from consuming network resources indefinitely. They also ensure that calls do not stay open when one party has actually lost connectivity but failed to send a proper hang-up signal. For business phone systems, session timers provide a balance between resource management and call stability.

How Re-INVITE Messages Refresh Active Calls

The refresh mechanism uses a standard SIP message called Re-INVITE. During the initial call setup, the User Agent Client and User Agent Server agree on a session expiration value. Before this timer runs out, one side sends a Re-INVITE to the other. This message effectively says that the call is still active and should be extended for another interval.

The receiving endpoint responds with a confirmation, and the session timer resets. This exchange happens in the background without interrupting the audio stream or requiring any action from the people on the call. If a Re-INVITE is sent but no response is received, the sending side may retry or eventually conclude that the remote party is unreachable, leading to a clean call termination.

Configuring Session Timers for Business Phone Systems

Proper configuration of session timers requires attention to several parameters. The session interval determines how often refreshes must occur. Typical values range from a few minutes to several hours, depending on the network environment. Shorter intervals detect failures faster but generate more signaling traffic. Longer intervals reduce overhead but may allow failed calls to persist longer before cleanup.

The refresher role decides which side is responsible for sending the Re-INVITE. This can be negotiated during call setup or forced by policy. Some PBX systems and VoIP gateways allow administrators to set default session intervals and specify whether the local system should always act as the refresher.

Firewalls and network address translators can interfere with session timers if they block or alter SIP signaling packets. Administrators should ensure that Re-INVITE messages can pass through security devices without being dropped. Session border controllers often handle this automatically by managing timer negotiation on behalf of endpoints behind NAT.

New Rock Technologies designs VoIP gateways with robust SIP protocol support, including proper handling of session timers and Re-INVITE exchanges. Their products help maintain stable call connections across complex network environments.

In conclusion, SIP session timers and Re-INVITE messages play a critical role in preventing unexpected call drops during long business conversations. By periodically refreshing active sessions, these mechanisms ensure that calls remain stable while allowing the network to clean up failed connections efficiently. For any business relying on VoIP, correctly configured session timers are an essential part of call quality management.

How to size voice bandwidth without guessing

Voice bandwidth is one of the few capacity questions in IT that can be answered with arithmetic instead of judgement. The calculation needs three inputs: codec bit rate, packetisation interval, and expected concurrent calls.

  • The codec bit rate is the compressed payload of one call. G.711 sits at the top of the range, and the lower-rate codecs sit well below it.
  • Packetisation determines how often that payload is sent. Smaller packets mean more overhead but less latency.
  • Add per-call overhead for transport, and then multiply by the number of simultaneous calls you expect at peak — not by the number of registered extensions.

The number of extensions is a licensing question. The number of concurrent calls is a bandwidth question, and conflating the two is one of the most common sizing mistakes. For a worked example of the calculation applied to a real growth pattern, see What an IP-PBX Actually Costs: Line Items People Forget.

Voice VLAN and QoS: the two settings that matter most

Most call-quality problems on a converged network are caused by voice traffic competing with something else that happened to be busier at that moment.

Two configuration choices address most of it. The first is putting voice on its own VLAN, so that a broadcast storm or a large file transfer on the data VLAN cannot consume the queue that carries calls. The second is marking voice traffic at the access port and trusting that mark upstream, so that the priority decision is made once, at the edge, where you can see the device.

  • Mark voice traffic at the access port rather than re-marking it in the core, which avoids trust conflicts between switches.
  • Apply the priority to the queue that carries RTP, not just to the SIP signalling traffic — signalling without media priority does little when the media queue is congested.
  • Watch the queue behaviour during real congestion rather than only at idle, because problems that only appear under load are exactly the ones users report.
  • Include wireless access points in the scope; a soft client on Wi-Fi behaves differently from a wired desk phone.

A dedicated path for voice also makes monitoring meaningful, because you can then distinguish a voice problem from a general network problem without guessing.

Related reading on the Newrock site

Customer-centric, focus on customer value

Consult now

Copyright © New Rock Technologies, Inc. All Rights Reserved. 沪ICP备15008515号-1