From: Sean Bright Date: Thu, 20 Sep 2018 20:26:55 +0000 (-0400) Subject: res_rtp_asterisk: Reset all settings on module reload X-Git-Tag: 16.1.0-rc1~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=880905e7eb34dd07cdfea91833e559b76085f145;p=thirdparty%2Fasterisk.git res_rtp_asterisk: Reset all settings on module reload 'rtpchecksums' and 'rtcpinterval' are not being reset to their defaults if they are not present in the updated configuration file. Change-Id: I1162e40199314d46cf3225d5e1271c4c81176670 --- diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c index c1aa2757ec..46858cb269 100644 --- a/res/res_rtp_asterisk.c +++ b/res/res_rtp_asterisk.c @@ -8035,8 +8035,13 @@ static int rtp_reload(int reload) return 0; } +#ifdef SO_NO_CHECK + nochecksums = 0; +#endif + rtpstart = DEFAULT_RTP_START; rtpend = DEFAULT_RTP_END; + rtcpinterval = RTCP_DEFAULT_INTERVALMS; dtmftimeout = DEFAULT_DTMF_TIMEOUT; strictrtp = DEFAULT_STRICT_RTP; learning_min_sequential = DEFAULT_LEARNING_MIN_SEQUENTIAL;