]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Skinny: Remove unused flags
authorMathieu Parent <math.parent@gmail.com>
Thu, 17 Jun 2010 05:05:28 +0000 (07:05 +0200)
committerMathieu Parent <math.parent@gmail.com>
Thu, 17 Jun 2010 05:05:28 +0000 (07:05 +0200)
src/mod/endpoints/mod_skinny/mod_skinny.c
src/mod/endpoints/mod_skinny/mod_skinny.h

index f6c10537e73fe92cafe4c5226991ed80899fda04..d8878a1d53043390188bfb44478ea627bc7fae41 100644 (file)
@@ -798,7 +798,6 @@ switch_status_t channel_on_hangup(switch_core_session_t *session)
        char *sql;
 
        switch_clear_flag_locked(tech_pvt, TFLAG_IO);
-       switch_clear_flag_locked(tech_pvt, TFLAG_VOICE);
 
        switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s CHANNEL HANGUP\n", switch_channel_get_name(channel));
 
@@ -938,12 +937,6 @@ switch_status_t channel_write_frame(switch_core_session_t *session, switch_frame
        if (!switch_test_flag(tech_pvt, TFLAG_IO)) {
                return SWITCH_STATUS_FALSE;
        }
-#if SWITCH_BYTE_ORDER == __BIG_ENDIAN
-       if (switch_test_flag(tech_pvt, TFLAG_LINEAR)) {
-               switch_swap_linear(frame->data, (int) frame->datalen / 2);
-       }
-#endif
-
        switch_set_flag_locked(tech_pvt, TFLAG_WRITING);
 
        switch_rtp_write_frame(tech_pvt->rtp_session, frame);
index 323d1bd3a24164d6cff6ce3ba3979625b79559f2..d4e4529f0ba23a3a90feb2442de7211b50eb02df 100644 (file)
@@ -147,12 +147,6 @@ typedef switch_status_t (*skinny_listener_callback_func_t) (listener_t *listener
 /*****************************************************************************/
 typedef enum {
     TFLAG_IO = (1 << 0),
-    TFLAG_DTMF = (1 << 3),
-    TFLAG_VOICE = (1 << 4),
-    TFLAG_HANGUP = (1 << 5),
-    TFLAG_LINEAR = (1 << 6),
-    TFLAG_CODEC = (1 << 7),
-
     TFLAG_READING = (1 << 9),
     TFLAG_WRITING = (1 << 10),
     TFLAG_FORCE_ROUTE = (1 << 11)