[Freeswitch-svn] [commit] r10793 - freeswitch/trunk/src/mod/event_handlers/mod_radius_cdr
FreeSWITCH SVN
cparker at freeswitch.org
Tue Dec 16 06:32:18 PST 2008
Author: cparker
Date: Tue Dec 16 09:32:17 2008
New Revision: 10793
Log:
Use const char, instead of passing func to switch_true
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c
Modified: freeswitch/trunk/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_radius_cdr/mod_radius_cdr.c Tue Dec 16 09:32:17 2008
@@ -156,7 +156,8 @@
}
if(channel) {
- if(switch_true(switch_channel_get_variable(channel, "disable_radius_start"))) {
+ const char *disable_flag = switch_channel_get_variable(channel, "disable_radius_start");
+ if(switch_true(disable_flag)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[mod_radius_cdr] Not Sending RADIUS Start\n");
return SWITCH_STATUS_SUCCESS;
}
@@ -393,12 +394,13 @@
}
- if(channel) {
- if(switch_true(switch_channel_get_variable(channel, "disable_radius_stop"))) {
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[mod_radius_cdr] Not Sending RADIUS Stop\n");
- return SWITCH_STATUS_SUCCESS;
- }
- }
+ if(channel) {
+ const char *disable_flag = switch_channel_get_variable(channel, "disable_radius_stop");
+ if(switch_true(disable_flag)) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[mod_radius_cdr] Not Sending RADIUS Stop\n");
+ return SWITCH_STATUS_SUCCESS;
+ }
+ }
switch_thread_rwlock_rdlock(globals.rwlock);
More information about the Freeswitch-svn
mailing list