ESL-11
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12884 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
190075abfb
commit
beb18d14e9
|
@ -428,11 +428,11 @@ ESL_DECLARE(esl_status_t) esl_sendevent(esl_handle_t *handle, esl_event_t *event
|
||||||
{
|
{
|
||||||
char *txt;
|
char *txt;
|
||||||
|
|
||||||
if (!handle->connected) {
|
if (!handle->connected || !event) {
|
||||||
return ESL_FAIL;
|
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);
|
esl_log(ESL_LOG_DEBUG, "SEND EVENT\n%s\n", txt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue