[Freeswitch-svn] [commit] r10534 - freeswitch/trunk/src
FreeSWITCH SVN
mikej at freeswitch.org
Tue Nov 25 10:21:45 PST 2008
Author: mikej
Date: Tue Nov 25 13:21:44 2008
New Revision: 10534
Log:
use switch_set_flag in a few places we were doing it manually before
Modified:
freeswitch/trunk/src/switch_core.c
freeswitch/trunk/src/switch_ivr.c
freeswitch/trunk/src/switch_ivr_menu.c
freeswitch/trunk/src/switch_rtp.c
Modified: freeswitch/trunk/src/switch_core.c
==============================================================================
--- freeswitch/trunk/src/switch_core.c (original)
+++ freeswitch/trunk/src/switch_core.c Tue Nov 25 13:21:44 2008
@@ -973,7 +973,7 @@
runtime.dummy_cng_frame.data = 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.flags = SFF_CNG;
+ switch_set_flag(&runtime.dummy_cng_frame, SFF_CNG);
switch_set_flag((&runtime), SCF_NO_NEW_SESSIONS);
runtime.hard_log_level = SWITCH_LOG_DEBUG;
Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c (original)
+++ freeswitch/trunk/src/switch_ivr.c Tue Nov 25 13:21:44 2008
@@ -50,7 +50,7 @@
cng_frame.data = data;
cng_frame.datalen = 2;
cng_frame.buflen = 2;
- cng_frame.flags = SFF_CNG;
+ switch_set_flag(&cng_frame, SFF_CNG);
for (;;) {
now = switch_timestamp_now();
Modified: freeswitch/trunk/src/switch_ivr_menu.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_menu.c (original)
+++ freeswitch/trunk/src/switch_ivr_menu.c Tue Nov 25 13:21:44 2008
@@ -178,7 +178,7 @@
menu->actions = NULL;
if (newpool) {
- menu->flags |= SWITCH_IVR_MENU_FLAG_FREEPOOL;
+ switch_set_flag(menu, SWITCH_IVR_MENU_FLAG_FREEPOOL);
}
if (menu->timeout <= 0) {
@@ -188,7 +188,7 @@
if (main) {
switch_ivr_menu_stack_add(&main, menu);
} else {
- menu->flags |= SWITCH_IVR_MENU_FLAG_STACK;
+ switch_set_flag(menu, SWITCH_IVR_MENU_FLAG_STACK);
}
*new_menu = menu;
Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c (original)
+++ freeswitch/trunk/src/switch_rtp.c Tue Nov 25 13:21:44 2008
@@ -1769,9 +1769,9 @@
frame->packet = &rtp_session->recv_msg;
frame->packetlen = bytes;
frame->source = __FILE__;
- frame->flags |= SFF_RAW_RTP;
+ switch_set_flag(frame, SFF_RAW_RTP);
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->seq = (uint16_t) ntohs((u_short) rtp_session->recv_msg.header.seq);
More information about the Freeswitch-svn
mailing list