From: Anthony Minessale Date: Tue, 16 Oct 2007 01:51:15 +0000 (+0000) Subject: fix X-Git-Tag: v1.0-beta2~481 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bb153490114f4b97ea40d5bc3bd8e4edd0f38c6;p=thirdparty%2Ffreeswitch.git fix git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5885 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_session.c b/src/switch_core_session.c index ec6c6aa4ba..0a28378102 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -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); } }