FS-9548: return with error on wrong rtp ip given from config

This commit is contained in:
Dragos Oancea 2016-09-20 10:41:48 -04:00
parent fca259d13c
commit 3d2f3c96db
1 changed files with 4 additions and 0 deletions

View File

@ -6052,6 +6052,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_choose_port(switch_core_sessio
lookup_rtpip = smh->mparams->rtpip; lookup_rtpip = smh->mparams->rtpip;
if (!lookup_rtpip) {
return SWITCH_STATUS_FALSE;
}
/* Don't do anything if we're in proxy mode or if a (remote) port already has been found */ /* Don't do anything if we're in proxy mode or if a (remote) port already has been found */
if (!force) { if (!force) {
if (switch_channel_test_flag(session->channel, CF_PROXY_MODE) || if (switch_channel_test_flag(session->channel, CF_PROXY_MODE) ||