summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2016-07-19 18:37:38 +0200
committerAlfred E. Heggestad <aeh@db.org>2016-07-19 18:37:38 +0200
commit9da1970131662ad480dae589618411734dcf4905 (patch)
tree44577fcffff35352d432c3aa0c9b0dd69e33c1a0 /include
parente27e37b547b709d8ecf8be306c2b5137b7affad3 (diff)
add support for rtp_timeout and redial
1. Added support for RTP timeout. The feature is disabled by default and can be enabled with config "rtp_timeout N" where N is the number of seconds of RTP inactivity. If this is detected, the call is closed with a "special" SIP reason code of 701. 2. Added support for automatic re-connect in the menu module. This can be enabled by setting the 2 config items: redial_attempts 3 redial_delay 5 This work was contributed by Sveriges Radio. Thanks goes to Ola Palm and Jim Eld.
Diffstat (limited to 'include')
-rw-r--r--include/baresip.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/baresip.h b/include/baresip.h
index ae73cae..22c75ea 100644
--- a/include/baresip.h
+++ b/include/baresip.h
@@ -100,6 +100,7 @@ struct list *call_streaml(const struct call *call);
struct ua *call_get_ua(const struct call *call);
bool call_is_onhold(const struct call *call);
bool call_is_outgoing(const struct call *call);
+void call_enable_rtp_timeout(struct call *call, uint32_t timeout_ms);
/*
@@ -201,6 +202,7 @@ struct config_avt {
bool rtcp_mux; /**< RTP/RTCP multiplexing */
struct range jbuf_del; /**< Delay, number of frames */
bool rtp_stats; /**< Enable RTP statistics */
+ uint32_t rtp_timeout; /**< RTP Timeout in seconds (0=off) */
};
/* Network */