From 9da1970131662ad480dae589618411734dcf4905 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Tue, 19 Jul 2016 18:37:38 +0200 Subject: 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. --- include/baresip.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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 */ -- cgit v1.2.3