]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_rayo: remove code that is no longer needed
authorChris Rienzo <chris.rienzo@grasshopper.com>
Tue, 27 May 2014 14:21:56 +0000 (10:21 -0400)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Tue, 27 May 2014 14:21:56 +0000 (10:21 -0400)
src/mod/event_handlers/mod_rayo/rayo_fax_components.c

index 1a866d4b813b104cdfdae73370ebd42e92ab3800..f47d9c1cf7a15c83f6aec20de726f1098e9f5bda 100644 (file)
@@ -200,9 +200,6 @@ static iks *start_sendfax_component(struct rayo_actor *call, struct rayo_message
        switch_channel_set_variable(channel, "fax_local_station_id", NULL);
        switch_channel_set_variable(channel, "fax_remote_station_id", NULL);
 
-       /* clear fax interrupt variable */
-       switch_channel_set_variable(switch_core_session_get_channel(session), "rayo_read_frame_interrupt", NULL);
-
        rayo_call_set_faxing(RAYO_CALL(call), 1);
 
        /* execute txfax APP */
@@ -306,9 +303,6 @@ static iks *start_receivefax_component(struct rayo_actor *call, struct rayo_mess
        switch_channel_set_variable(channel, "fax_local_station_id", NULL);
        switch_channel_set_variable(channel, "fax_remote_station_id", NULL);
 
-       /* clear fax interrupt variable */
-       switch_channel_set_variable(switch_core_session_get_channel(session), "rayo_read_frame_interrupt", NULL);
-
        rayo_call_set_faxing(RAYO_CALL(call), 1);
 
        /* execute rxfax APP */
@@ -394,16 +388,8 @@ static void on_execute_complete_event(switch_event_t *event)
                        iks *complete;
                        iks *fax;
                        int have_fax_document = 1;
-                       switch_core_session_t *session;
                        switch_log_printf(SWITCH_CHANNEL_UUID_LOG(uuid), SWITCH_LOG_DEBUG, "Got result for %s\n", fax_jid);
 
-                       /* clean up channel */
-                       session = switch_core_session_locate(uuid);
-                       if (session) {
-                               switch_channel_set_variable(switch_core_session_get_channel(session), "rayo_read_frame_interrupt", NULL);
-                               switch_core_session_rwunlock(session);
-                       }
-
                        /* RX only: transfer HTTP document and delete local copy */
                        if (is_rxfax && RECEIVEFAX_COMPONENT(component)->http_put_after_receive && switch_file_exists(RECEIVEFAX_COMPONENT(component)->local_filename, RAYO_POOL(component)) == SWITCH_STATUS_SUCCESS) {
                                char *cmd = switch_core_sprintf(RAYO_POOL(component), "%s %s", RECEIVEFAX_COMPONENT(component)->filename, RECEIVEFAX_COMPONENT(component)->local_filename);