[Freeswitch-svn] [commit] r6115 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Wed Oct 31 19:01:32 EDT 2007


Author: anthm
Date: Wed Oct 31 19:01:32 2007
New Revision: 6115

Modified:
   freeswitch/trunk/src/switch_core_session.c

Log:
doh

Modified: freeswitch/trunk/src/switch_core_session.c
==============================================================================
--- freeswitch/trunk/src/switch_core_session.c	(original)
+++ freeswitch/trunk/src/switch_core_session.c	Wed Oct 31 19:01:32 2007
@@ -905,6 +905,10 @@
 	switch_event_t *event;
 	switch_channel_t *channel;
 
+	if (switch_strlen_zero(arg)) {
+		arg = "_undef_";
+	}
+
 	log = switch_core_session_alloc(session, sizeof(*log));
 
 	assert(log != NULL);
@@ -923,7 +927,7 @@
 	if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_EXECUTE) == SWITCH_STATUS_SUCCESS) {
 		switch_channel_event_set_data(session->channel, event);
 		switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Application", "%s", application_interface->interface_name);
-		switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Application-Data", arg);
+		switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Application-Data", "%s", arg);
 		switch_event_fire(&event);
 	}
 



More information about the Freeswitch-svn mailing list