提交 416beff9 authored 作者: Anthony Minessale's avatar Anthony Minessale

use event_clone type internally to not confuse people who think they are getting…

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
上级 2dd4d884
......@@ -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);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论