[commit] r13951 - freeswitch/trunk/src/mod/event_handlers/mod_event_multicast
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; }
participants (1)
-
FreeSWITCH SVN