From: Anthony Minessale Date: Mon, 29 Aug 2011 15:31:41 +0000 (-0500) Subject: FS-3528 --resolve X-Git-Tag: v1.2-rc1~51^2~213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3ceebf0bf2c54025c4e53201191f60d2219191b;p=thirdparty%2Ffreeswitch.git FS-3528 --resolve --- diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index c2c8f50727..418c9dd2b5 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -2354,11 +2354,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess } if (zstr(new_profile->destination_number)) { - if (caller_channel) { - switch_channel_hangup(caller_channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER); - } - status = SWITCH_STATUS_FALSE; - goto done; + new_profile->destination_number = switch_core_strdup(new_profile->pool, "service"); } new_profile->callee_id_name = switch_core_strdup(new_profile->pool, "Outbound Call");