Dialog timeout and call disconnection

One important feature for prepaid billing is the capability to set a timeout for calls. The dialog module has many ways to handle timeouts. We will see several ways on how to disconnect a call on timeout. When you create a dialog using the parameter, B, the call disconnects on timeout. To set a timeout, there are two ways:

  • Specify the default timeout
  • Set the timeout in the routing script

To specify a default timeout, you can set a module parameter to a specific value or to an Attribute Value Pairs (AVP):

modparam("dialog", "default_timeout", 21600)

You can also set a new timeout by changing a pseudo-variable (PV), $DLG_lifetime. You have to set this timeout in the initial request after creating a dialog or in ...

Get Building Telephony Systems with OpenSIPS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.