From 3d2f3c96db2d496dc349c1e6786f958a7681a4eb Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Tue, 20 Sep 2016 10:41:48 -0400 Subject: [PATCH] FS-9548: return with error on wrong rtp ip given from config --- src/switch_core_media.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 31223ffda2..d254164ace 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -6052,6 +6052,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_choose_port(switch_core_sessio 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 */ if (!force) { if (switch_channel_test_flag(session->channel, CF_PROXY_MODE) ||