]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 16 Oct 2007 01:51:15 +0000 (01:51 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 16 Oct 2007 01:51:15 +0000 (01:51 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5885 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_session.c

index ec6c6aa4baf2290ae4719ff9e6c55d038c114263..0a283781027b40311cc0e359d6dda2d6e631c74d 100644 (file)
@@ -305,11 +305,11 @@ SWITCH_DECLARE(switch_call_cause_t) switch_core_session_outgoing_channel(switch_
                                        switch_channel_set_originatee_caller_profile(channel, cloned_profile);
                                }
                        }
+               }
 
-                       if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_OUTGOING) == SWITCH_STATUS_SUCCESS) {
-                               switch_channel_event_set_data(peer_channel, event);
-                               switch_event_fire(&event);
-                       }
+               if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_OUTGOING) == SWITCH_STATUS_SUCCESS) {
+                       switch_channel_event_set_data(peer_channel, event);
+                       switch_event_fire(&event);
                }
        }