]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3528 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 29 Aug 2011 15:31:41 +0000 (10:31 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 29 Aug 2011 15:31:46 +0000 (10:31 -0500)
src/switch_ivr_originate.c

index c2c8f5072757ec2843c8e3116f6a6f50ac076d6b..418c9dd2b5f5a8127e91a2f26a7b2062ff762e7b 100644 (file)
@@ -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");