[Freeswitch-trunk] [commit] r13951 - freeswitch/trunk/src/mod/event_handlers/mod_event_multicast
FreeSWITCH SVN
andrew at freeswitch.org
Thu Jun 25 09:37:18 PDT 2009
Author: andrew
Date: Thu Jun 25 11:37:17 2009
New Revision: 13951
Log:
Don't multicast the new multicast peerup/peerdown events
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c
Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_multicast/mod_event_multicast.c Thu Jun 25 11:37:17 2009
@@ -176,7 +176,9 @@
return;
}
- if (event->subclass_name && !strcmp(event->subclass_name, MULTICAST_EVENT)) {
+ if (event->subclass_name && (!strcmp(event->subclass_name, MULTICAST_EVENT) ||
+ !strcmp(event->subclass_name, MULTICAST_PEERUP) ||
+ !strcmp(event->subclass_name, MULTICAST_PEERDOWN))) {
char * event_name;
if ((event_name = switch_event_get_header(event, "orig-event-name")) && !strcasecmp(event_name, "HEARTBEAT")) {
char *sender = switch_event_get_header(event, "orig-multicast-sender");
@@ -213,6 +215,7 @@
switch_core_hash_insert(globals.peer_hash, sender, p);
}
+
/* ignore our own events to avoid ping pong */
return;
}
More information about the Freeswitch-trunk
mailing list