]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add indications so gateway mode calls show up as bridged -wrong week to quit sniffing...
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 25 May 2010 19:23:20 +0000 (14:23 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 25 May 2010 19:23:20 +0000 (14:23 -0500)
src/mod/applications/mod_fax/mod_fax.c

index d907da9d516d90216b1d3cf50771d0b7e82fb112..9c0eb7d904a33ba6d4538fb767e3711fff85ba09 100644 (file)
@@ -1447,7 +1447,6 @@ static switch_status_t t38_gateway_on_soft_execute(switch_core_session_t *sessio
     switch_core_session_message_t msg = { 0 };
     switch_status_t status;
     switch_frame_t *read_frame = { 0 };
-    switch_event_t *event;
 
     if (!(other_session = switch_core_session_locate(peer_uuid))) {
         switch_channel_hangup(channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
@@ -1466,11 +1465,6 @@ static switch_status_t t38_gateway_on_soft_execute(switch_core_session_t *sessio
     msg.string_arg = peer_uuid;
     switch_core_session_receive_message(session, &msg);
 
-       if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_BRIDGE) == SWITCH_STATUS_SUCCESS) {
-               switch_channel_event_set_data(channel, event);
-               switch_event_fire(&event);
-       }
-
     while (switch_channel_ready(channel) && switch_channel_up(other_channel) && !switch_channel_test_app_flag(channel, CF_APP_T38)) {
                status = switch_core_session_read_frame(session, &read_frame, SWITCH_IO_FLAG_NONE, 0);
 
@@ -1549,11 +1543,6 @@ static switch_status_t t38_gateway_on_soft_execute(switch_core_session_t *sessio
     msg.string_arg = peer_uuid;
     switch_core_session_receive_message(session, &msg);
 
-       if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_UNBRIDGE) == SWITCH_STATUS_SUCCESS) {
-               switch_channel_event_set_data(channel, event);
-               switch_event_fire(&event);
-       }
-
     switch_channel_hangup(other_channel, SWITCH_CAUSE_NORMAL_CLEARING);
     switch_core_session_rwunlock(other_session);