use switch_set_flag in a few places we were doing it manually before
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10534 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1eea29a474
commit
926bc917ed
|
@ -973,7 +973,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
|
||||||
runtime.dummy_cng_frame.data = runtime.dummy_data;
|
runtime.dummy_cng_frame.data = runtime.dummy_data;
|
||||||
runtime.dummy_cng_frame.datalen = sizeof(runtime.dummy_data);
|
runtime.dummy_cng_frame.datalen = sizeof(runtime.dummy_data);
|
||||||
runtime.dummy_cng_frame.buflen = sizeof(runtime.dummy_data);
|
runtime.dummy_cng_frame.buflen = sizeof(runtime.dummy_data);
|
||||||
runtime.dummy_cng_frame.flags = SFF_CNG;
|
switch_set_flag(&runtime.dummy_cng_frame, SFF_CNG);
|
||||||
|
|
||||||
switch_set_flag((&runtime), SCF_NO_NEW_SESSIONS);
|
switch_set_flag((&runtime), SCF_NO_NEW_SESSIONS);
|
||||||
runtime.hard_log_level = SWITCH_LOG_DEBUG;
|
runtime.hard_log_level = SWITCH_LOG_DEBUG;
|
||||||
|
|
|
@ -50,7 +50,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session,
|
||||||
cng_frame.data = data;
|
cng_frame.data = data;
|
||||||
cng_frame.datalen = 2;
|
cng_frame.datalen = 2;
|
||||||
cng_frame.buflen = 2;
|
cng_frame.buflen = 2;
|
||||||
cng_frame.flags = SFF_CNG;
|
switch_set_flag(&cng_frame, SFF_CNG);
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
now = switch_timestamp_now();
|
now = switch_timestamp_now();
|
||||||
|
|
|
@ -178,7 +178,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_init(switch_ivr_menu_t ** new_me
|
||||||
menu->actions = NULL;
|
menu->actions = NULL;
|
||||||
|
|
||||||
if (newpool) {
|
if (newpool) {
|
||||||
menu->flags |= SWITCH_IVR_MENU_FLAG_FREEPOOL;
|
switch_set_flag(menu, SWITCH_IVR_MENU_FLAG_FREEPOOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (menu->timeout <= 0) {
|
if (menu->timeout <= 0) {
|
||||||
|
@ -188,7 +188,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_menu_init(switch_ivr_menu_t ** new_me
|
||||||
if (main) {
|
if (main) {
|
||||||
switch_ivr_menu_stack_add(&main, menu);
|
switch_ivr_menu_stack_add(&main, menu);
|
||||||
} else {
|
} else {
|
||||||
menu->flags |= SWITCH_IVR_MENU_FLAG_STACK;
|
switch_set_flag(menu, SWITCH_IVR_MENU_FLAG_STACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
*new_menu = menu;
|
*new_menu = menu;
|
||||||
|
|
|
@ -1769,9 +1769,9 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_zerocopy_read_frame(switch_rtp_t *rtp
|
||||||
frame->packet = &rtp_session->recv_msg;
|
frame->packet = &rtp_session->recv_msg;
|
||||||
frame->packetlen = bytes;
|
frame->packetlen = bytes;
|
||||||
frame->source = __FILE__;
|
frame->source = __FILE__;
|
||||||
frame->flags |= SFF_RAW_RTP;
|
switch_set_flag(frame, SFF_RAW_RTP);
|
||||||
if (frame->payload == rtp_session->te) {
|
if (frame->payload == rtp_session->te) {
|
||||||
frame->flags |= SFF_RFC2833;
|
switch_set_flag(frame, SFF_RFC2833);
|
||||||
}
|
}
|
||||||
frame->timestamp = ntohl(rtp_session->recv_msg.header.ts);
|
frame->timestamp = ntohl(rtp_session->recv_msg.header.ts);
|
||||||
frame->seq = (uint16_t) ntohs((u_short) rtp_session->recv_msg.header.seq);
|
frame->seq = (uint16_t) ntohs((u_short) rtp_session->recv_msg.header.seq);
|
||||||
|
|
Loading…
Reference in New Issue