mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
add zerconf (the howl depend lib needs work sigh)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@606 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -98,6 +98,8 @@ static char *EVENT_NAMES[] = {
|
||||
"OUTBOUND_CHAN",
|
||||
"STARTUP",
|
||||
"SHUTDOWN",
|
||||
"PUBLISH",
|
||||
"UNPUBLISH",
|
||||
"ALL"
|
||||
};
|
||||
|
||||
@@ -116,6 +118,7 @@ static int switch_events_match(switch_event *event, switch_event_node *node)
|
||||
}
|
||||
|
||||
if (match || event->event_id == node->event_id) {
|
||||
|
||||
if (event->subclass && node->subclass) {
|
||||
if (!strncasecmp(node->subclass->name, "file:", 5)) {
|
||||
char *file_header;
|
||||
@@ -130,7 +133,7 @@ static int switch_events_match(switch_event *event, switch_event_node *node)
|
||||
} else {
|
||||
match = strstr(event->subclass->name, node->subclass->name) ? 1 : 0;
|
||||
}
|
||||
} else if (event->subclass && !node->subclass) {
|
||||
} else if ((event->subclass && !node->subclass) || (!event->subclass && !node->subclass)) {
|
||||
match = 1;
|
||||
} else {
|
||||
match = 0;
|
||||
|
Reference in New Issue
Block a user