]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Jun 2009 19:47:29 +0000 (19:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Jun 2009 19:47:29 +0000 (19:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13847 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 884df7d5a86c144a7390aa0eb62aab37ecbfe5c4..1d31565c8fe0017e4efbcacafbb7b992dbfb5e9c 100644 (file)
@@ -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;