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
This commit is contained in:
Sean Bright 2018-09-20 16:26:55 -04:00
parent dec6ebd9e1
commit 880905e7eb
1 changed files with 5 additions and 0 deletions

View File

@ -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;