[Freeswitch-svn] [commit] r10863 - freeswitch/trunk/src/mod/event_handlers/mod_radius_cdr
FreeSWITCH SVN
anthm at freeswitch.org
Wed Dec 17 14:45:21 PST 2008
Author: anthm
Date: Wed Dec 17 17:45:21 2008
New Revision: 10863
Log:
avoiding seg
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 Wed Dec 17 17:45:21 2008
@@ -343,7 +343,9 @@
}
}
- if (profile->caller_extension && profile->caller_extension->last_application->application_name) {
+ if (profile->caller_extension &&
+ profile->caller_extension->last_application &&
+ profile->caller_extension->last_application->application_name) {
if (rc_avpair_add(rad_config, &send, PW_FS_LASTAPP,
(void *) profile->caller_extension->last_application->application_name, -1, PW_FS_PEC) == NULL) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "failed adding Freeswitch-Lastapp: %s\n", profile->source);
More information about the Freeswitch-svn
mailing list