提交 cd44e9e7 authored 作者: Anthony Minessale's avatar Anthony Minessale

tweak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11056 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 63cd3a98
......@@ -719,6 +719,7 @@ SWITCH_STANDARD_API(event_sink_function)
listener->last_flush = switch_timestamp(NULL);
if (events) {
char delim = ',';
if (switch_stristr("xml", format)) {
listener->format = EVENT_FORMAT_XML;
......@@ -727,11 +728,15 @@ SWITCH_STANDARD_API(event_sink_function)
}
edup = strdup(events);
if (strchr(edup, ' ')) {
delim = ' ';
}
for (cur = edup; cur; count++) {
switch_event_types_t type;
if ((next = strchr(cur, ' '))) {
if ((next = strchr(cur, delim))) {
*next++ = '\0';
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论