git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11056 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-01-02 17:39:31 +00:00
parent 63cd3a9810
commit cd44e9e72e
1 changed files with 7 additions and 2 deletions

View File

@ -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';
}