forked from Mirrors/freeswitch
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:
parent
2dd4d8842b
commit
416beff9d3
@ -833,7 +833,7 @@ ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_
|
||||
}
|
||||
|
||||
if (!revent) {
|
||||
esl_event_create(&revent, ESL_EVENT_COMMAND);
|
||||
esl_event_create(&revent, ESL_EVENT_CLONE);
|
||||
}
|
||||
|
||||
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) {
|
||||
esl_event_types_t et = ESL_EVENT_COMMAND;
|
||||
esl_event_types_t et = ESL_EVENT_CLONE;
|
||||
char *body = strdup(revent->body);
|
||||
|
||||
esl_event_create(&handle->last_ievent, et);
|
||||
|
Loading…
Reference in New Issue
Block a user