git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15212
d0543943-73ff-0310-b7d9-
9358b9ac24b2
*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;