use event_clone type internally to not confuse people who think they are getting events in response to commands

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15660 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-11-24 21:43:33 +00:00
parent 2dd4d8842b
commit 416beff9d3

View File

@ -833,7 +833,7 @@ ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_
} }
if (!revent) { if (!revent) {
esl_event_create(&revent, ESL_EVENT_COMMAND); esl_event_create(&revent, ESL_EVENT_CLONE);
} }
hname = beg; hname = beg;
@ -910,7 +910,7 @@ ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_
} }
if (!esl_safe_strcasecmp(hval, "text/event-plain") && revent->body) { if (!esl_safe_strcasecmp(hval, "text/event-plain") && revent->body) {
esl_event_types_t et = ESL_EVENT_COMMAND; esl_event_types_t et = ESL_EVENT_CLONE;
char *body = strdup(revent->body); char *body = strdup(revent->body);
esl_event_create(&handle->last_ievent, et); esl_event_create(&handle->last_ievent, et);