switch_size_t bytes;
ls_control_packet_t control_packet;
switch_codec_t codec = { 0 };
- uint32_t flags = 0;
+ switch_rtp_flag_t flags[SWITCH_RTP_FLAG_INVALID] = {0};
const char *err;
switch_rtp_t *rtp_session = NULL;
switch_port_t rtp_port;
static int oreka_setup_rtp(oreka_session_t *oreka, oreka_stream_type_t type)
{
switch_port_t rtp_port = 0;
- switch_rtp_flag_t flags = 0;
+ switch_rtp_flag_t flags[SWITCH_RTP_FLAG_INVALID] = {0};
switch_rtp_t *rtp_stream = NULL;
switch_codec_implementation_t *codec_impl = NULL;
switch_status_t status = SWITCH_STATUS_SUCCESS;
switch_memory_pool_t *sesspool = NULL;
switch_rtp_t *rtp_session = NULL;
char codec_ip[255];
- switch_rtp_flag_t flags = 0;
+ switch_rtp_flag_t flags[SWITCH_RTP_FLAG_INVALID] = {0};
int iana = 0;
const char *err = NULL;
struct in_addr local_ip_addr = { 0 };
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,"======>FSH323_ExternalRTPChannel::Start() [%p]\n",this);
const char *err = NULL;
- switch_rtp_flag_t flags;
+ switch_rtp_flag_t flags[SWITCH_RTP_FLAG_INVALID] = {0};
char * timer_name = NULL;
const char *var;
}
if ((!m_conn->m_startRTP)) {
- flags = (switch_rtp_flag_t) (SWITCH_RTP_FLAG_DATAWAIT|SWITCH_RTP_FLAG_RAW_WRITE);
+ flags[SWITCH_RTP_FLAG_DATAWAIT]++;
+ flags[SWITCH_RTP_FLAG_RAW_WRITE]++;
if (mod_h323_globals.use_rtp_timer) {
- flags |= SWITCH_RTP_FLAG_USE_TIMER;
+ flags[SWITCH_RTP_FLAG_USE_TIMER]++;
timer_name = mod_h323_globals.rtp_timer_name;
} else {
if ((var = switch_channel_get_variable(m_fsChannel, "timer_name"))) {
timer_name = (char *) var;
- flags |= SWITCH_RTP_FLAG_USE_TIMER;
+ flags[SWITCH_RTP_FLAG_USE_TIMER]++;
}
}