From: Mathieu Parent Date: Thu, 17 Jun 2010 05:05:28 +0000 (+0200) Subject: Skinny: Remove unused flags X-Git-Tag: v1.2-rc1~664 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df92a3ca077695e7ebee83649ae1d198bfee88f1;p=thirdparty%2Ffreeswitch.git Skinny: Remove unused flags --- diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.c b/src/mod/endpoints/mod_skinny/mod_skinny.c index f6c10537e7..d8878a1d53 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.c +++ b/src/mod/endpoints/mod_skinny/mod_skinny.c @@ -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); diff --git a/src/mod/endpoints/mod_skinny/mod_skinny.h b/src/mod/endpoints/mod_skinny/mod_skinny.h index 323d1bd3a2..d4e4529f0b 100644 --- a/src/mod/endpoints/mod_skinny/mod_skinny.h +++ b/src/mod/endpoints/mod_skinny/mod_skinny.h @@ -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)