Skinny: Remove unused flags

This commit is contained in:
Mathieu Parent 2010-06-17 07:05:28 +02:00
parent 2629a570c7
commit df92a3ca07
2 changed files with 0 additions and 13 deletions

View 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);

View 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)