[Freeswitch-svn] [commit] r10780 - freeswitch/trunk/src/mod/event_handlers/mod_radius_cdr

FreeSWITCH SVN cparker at freeswitch.org
Mon Dec 15 11:42:03 PST 2008


Author: cparker
Date: Mon Dec 15 14:42:02 2008
New Revision: 10780

Log:
Added patch to close JIRA MODEVENT-28

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	Mon Dec 15 14:42:02 2008
@@ -155,6 +155,13 @@
 		return SWITCH_STATUS_FALSE;
 	}
 
+	if(channel) {
+		if(switch_true(switch_channel_get_variable(channel, "disable_radius_start"))) {
+			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[mod_radius_cdr] Not Sending RADIUS Start\n");
+			return SWITCH_STATUS_SUCCESS;
+		}
+	}
+
 	switch_thread_rwlock_rdlock(globals.rwlock);
 
 	rad_config = my_radius_init();
@@ -385,6 +392,14 @@
 		return SWITCH_STATUS_FALSE;
 	}
 
+
+        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;
+                }
+        }
+
 	switch_thread_rwlock_rdlock(globals.rwlock);
 
 	switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[mod_radius_cdr] Entering my_on_hangup\n");



More information about the Freeswitch-svn mailing list