summaryrefslogtreecommitdiff
path: root/res/res_pjsip.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2015-07-18 13:16:10 -0300
committerJoshua Colp <jcolp@digium.com>2015-07-24 12:43:43 -0300
commit309dd2a4090ccdd1ea31d8d5415a645daddd3883 (patch)
tree625855c3191c70217c6087593767baf3e0a0cb6d /res/res_pjsip.c
parenta105461f9eadbacb684fe3751cddae2a7f400dea (diff)
pjsip: Add rtp_timeout and rtp_timeout_hold endpoint options.
This change adds support for the 'rtp_timeout' and 'rtp_timeout_hold' endpoint options. These allow the channel to be hung up if RTP is not received from the remote endpoint for a specified number of seconds. ASTERISK-25259 #close Change-Id: I3f39daaa7da2596b5022737b77799d16204175b9
Diffstat (limited to 'res/res_pjsip.c')
-rw-r--r--res/res_pjsip.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/res/res_pjsip.c b/res/res_pjsip.c
index fefbff446..4de074597 100644
--- a/res/res_pjsip.c
+++ b/res/res_pjsip.c
@@ -798,6 +798,22 @@
a hole open in order to allow for media to arrive at Asterisk.
</para></description>
</configOption>
+ <configOption name="rtp_timeout" default="0">
+ <synopsis>Maximum number of seconds without receiving RTP (while off hold) before terminating call.</synopsis>
+ <description><para>
+ This option configures the number of seconds without RTP (while off hold) before
+ considering a channel as dead. When the number of seconds is reached the underlying
+ channel is hung up. By default this option is set to 0, which means do not check.
+ </para></description>
+ </configOption>
+ <configOption name="rtp_timeout_hold" default="0">
+ <synopsis>Maximum number of seconds without receiving RTP (while on hold) before terminating call.</synopsis>
+ <description><para>
+ This option configures the number of seconds without RTP (while on hold) before
+ considering a channel as dead. When the number of seconds is reached the underlying
+ channel is hung up. By default this option is set to 0, which means do not check.
+ </para></description>
+ </configOption>
</configObject>
<configObject name="auth">
<synopsis>Authentication type</synopsis>