mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 20:43:51 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@158 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
48e62491e1
commit
b09fedf7e0
3 files changed
+18
-9
No files matched your search
+11
-8
@@ -64,22 +64,25 @@ static int switch_events_match(switch_event *event, switch_event_node *node)
|
||||
|
||||
|
||||
if (node->event == SWITCH_EVENT_ALL) {
|
||||
return 1;
|
||||
match++;
|
||||
|
||||
if (!node->subclass) {
|
||||
return match;
|
||||
}
|
||||
}
|
||||
|
||||
if (event->event == node->event) {
|
||||
if (match || event->event == node->event) {
|
||||
|
||||
if (node->subclass) {
|
||||
match = (event->subclass && strstr(event->subclass->name, node->subclass->name));
|
||||
} else if (event->subclass) {
|
||||
if (event->subclass && node->subclass) {
|
||||
match = strstr(event->subclass->name, node->subclass->name) ? 1 : 0;
|
||||
} else if (event->subclass && !node->subclass) {
|
||||
match = 1;
|
||||
} else {
|
||||
match = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
return match;
|
||||
|
||||
}
|
||||
|
||||
static void * SWITCH_THREAD_FUNC switch_event_thread(switch_thread *thread, void *obj)
|
||||
|
||||
Reference in new issue
Block a user