From: Anthony Minessale Date: Fri, 23 Oct 2009 16:17:05 +0000 (+0000) Subject: make sure dest is not blank for rare edge case X-Git-Tag: v1.0.6~1617 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8eadcd50ca70d0db1ae002b2a16630b16d5769b0;p=thirdparty%2Ffreeswitch.git make sure dest is not blank for rare edge case git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15212 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 51f5a690a3..83589ce4f2 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2758,6 +2758,11 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session *new_session = NULL; + if (!outbound_profile || zstr(outbound_profile->destination_number)) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Invalid Destination\n"); + goto error; + } + if (!(nsession = switch_core_session_request(sofia_endpoint_interface, SWITCH_CALL_DIRECTION_OUTBOUND, pool))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Error Creating Session\n"); goto error;