[Freeswitch-svn] [commit] r12884 - freeswitch/trunk/libs/esl/src

FreeSWITCH SVN anthm at freeswitch.org
Thu Apr 2 07:16:58 PDT 2009


Author: anthm
Date: Thu Apr  2 09:16:58 2009
New Revision: 12884

Log:
ESL-11

Modified:
   freeswitch/trunk/libs/esl/src/esl.c

Modified: freeswitch/trunk/libs/esl/src/esl.c
==============================================================================
--- freeswitch/trunk/libs/esl/src/esl.c	(original)
+++ freeswitch/trunk/libs/esl/src/esl.c	Thu Apr  2 09:16:58 2009
@@ -428,11 +428,11 @@
 {
 	char *txt;
 
-	if (!handle->connected) {
+	if (!handle->connected || !event) {
 		return ESL_FAIL;
 	}
 
-	esl_event_serialize(handle->last_ievent, &txt, ESL_TRUE);
+	esl_event_serialize(event, &txt, ESL_TRUE);
 
 	esl_log(ESL_LOG_DEBUG, "SEND EVENT\n%s\n", txt);
 		



More information about the Freeswitch-svn mailing list