tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11056 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
63cd3a9810
commit
cd44e9e72e
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue