From cdd0bcfdf386d4679d424b64d9b4d595a3e7b254 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 18 Jun 2009 19:47:29 +0000 Subject: [PATCH] doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13847 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_ivr_originate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 884df7d5a8..1d31565c8f 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -1002,7 +1002,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess if (ovars) { var_event = ovars; } else { - if (switch_event_create(&var_event, SWITCH_EVENT_GENERAL) != SWITCH_STATUS_SUCCESS) { + if (switch_event_create_plain(&var_event, SWITCH_EVENT_CHANNEL_DATA) != SWITCH_STATUS_SUCCESS) { abort(); } } @@ -1516,7 +1516,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess local_clobber = switch_true(lc); } - if (!local_clobber) { + if (local_clobber) { if (var_event) { switch_event_t *event; switch_event_header_t *header; @@ -1549,7 +1549,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess } } - if (local_clobber) { + if (!local_clobber) { if (var_event) { switch_event_t *event; switch_event_header_t *header;