Added the stun_blacklist option to rtp.conf. Some multihomed servers have
IP interfaces that cannot reach the STUN server specified by stunaddr.
Blacklist those interface subnets from trying to send a STUN packet to
find the external IP address. Attempting to send the STUN packet
needlessly delays processing incoming and outgoing SIP INVITEs because we
will wait for a response that can never come until we give up on the
response. Multiple subnets may be listed.
ASTERISK-26890 #close
Change-Id: I3ff4f729e787f00c3e6e670fe6435acce38be342
@ -133,13 +133,13 @@ static int rtcpstats; /*!< Are we debugging RTCP? */
staticintrtcpinterval=RTCP_DEFAULT_INTERVALMS;/*!< Time between rtcp reports in millisecs */
staticstructast_sockaddrrtpdebugaddr;/*!< Debug packets to/from this host */
staticstructast_sockaddrrtcpdebugaddr;/*!< Debug RTCP packets to/from this host */
staticintrtpdebugport;/*< Debug only RTP packets from IP or IP+Port if port is > 0 */
staticintrtcpdebugport;/*< Debug only RTCP packets from IP or IP+Port if port is > 0 */
staticintrtpdebugport;/*!< Debug only RTP packets from IP or IP+Port if port is > 0 */
staticintrtcpdebugport;/*!< Debug only RTCP packets from IP or IP+Port if port is > 0 */
#ifdef SO_NO_CHECK
staticintnochecksums;
#endif
staticintstrictrtp=DEFAULT_STRICT_RTP;/*< Only accept RTP frames from a defined source. If we receive an indication of a changing source, enter learning mode. */
staticintlearning_min_sequential=DEFAULT_LEARNING_MIN_SEQUENTIAL;/*< Number of sequential RTP frames needed from a single source during learning mode to accept new source. */
staticintstrictrtp=DEFAULT_STRICT_RTP;/*!< Only accept RTP frames from a defined source. If we receive an indication of a changing source, enter learning mode. */
staticintlearning_min_sequential=DEFAULT_LEARNING_MIN_SEQUENTIAL;/*!< Number of sequential RTP frames needed from a single source during learning mode to accept new source. */