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:
Anthony Minessale
2006-02-13 23:59:14 +00:00
parent 55baa5c0d6
commit 176908397b
10 changed files with 571 additions and 7 deletions

View File

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