The call duration and inactive media timeout features help you to conserve network resources and maximise throughput.
Before You Begin
For background information, read
You use the maximum-call-duration parameter to set the maximum allowable length of time a call can be active. When the duration is exceeded, the SIP ALG tears down the call and releases the media sessions. This setting also frees up bandwidth in cases where calls fail to properly terminate.
This parameter indicates the maximum length of time (in seconds) a call can remain active without any media (RTP or RTCP) traffic within a group. Each time an RTP or RTCP packet occurs within a call, this timeout resets. When the period of inactivity exceeds this setting, the SIP ALG temporary openings (pinholes) in the firewall opened for media are closed. The default setting is 120 seconds, the range is from 10 to 2550 seconds. Note that upon timeout, while resources for media (sessions and pinholes) are removed, the call is not terminated.
Note: You must use the CLI to set SIP-signaling and media-inactivity timeouts.
Use either the J-Web or CLI configuration editor.
This topic covers:
In the following example, you set call duration to 3000 minutes and the media inactivity timeout to 90 seconds:
- user@host# set security alg sip maximum-call-duration 3000
- user@host# set security alg sip inactive-media-timeout 90