summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2017-12-05 19:07:20 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-12-05 19:07:20 -0600
commit47124e97fe0f0786c0f8917ccd254d084dc662f0 (patch)
treea6f804bfc76779f44490e857d350675079bfe834
parent99d560f19b2260d76a25d2d9535ccf33f0c08afe (diff)
parent8543582bbdfbefa58780d72256f9bf3e8a71be8a (diff)
Merge "res_rtp_asterisk.c: Increase strictrtp learning timeout time." into 15
-rw-r--r--res/res_rtp_asterisk.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 273061124..5aeb791d3 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -140,7 +140,14 @@ enum strict_rtp_state {
STRICT_RTP_CLOSED, /*! Drop all RTP packets not coming from source that was learned */
};
-#define STRICT_RTP_LEARN_TIMEOUT 1500 /*!< milliseconds */
+/*!
+ * \brief Strict RTP learning timeout time in milliseconds
+ *
+ * \note Set to 5 seconds to allow reinvite chains for direct media
+ * to settle before media actually starts to arrive. There may be a
+ * reinvite collision involved on the other leg.
+ */
+#define STRICT_RTP_LEARN_TIMEOUT 5000
#define DEFAULT_STRICT_RTP -1 /*!< Enabled */
#define DEFAULT_ICESUPPORT 1