diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index 7724fc63b3a0dba2e20efaac32d68ef1fe4de886..5271d1bf4725e3989409532f433da1933c9c1784 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -139,7 +139,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