[asterisk-commits] russell: branch russell/ais r78890 - /team/russell/ais/res/res_ais.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 9 18:06:27 CDT 2007
Author: russell
Date: Thu Aug 9 18:06:26 2007
New Revision: 78890
URL: http://svn.digium.com/view/asterisk?view=rev&rev=78890
Log:
If we receive an event from the network that actually originated locally, just
ignore it. Otherwise, we'll be stuck in an infinite loop.
Modified:
team/russell/ais/res/res_ais.c
Modified: team/russell/ais/res/res_ais.c
URL: http://svn.digium.com/view/asterisk/team/russell/ais/res/res_ais.c?view=diff&rev=78890&r1=78889&r2=78890
==============================================================================
--- team/russell/ais/res/res_ais.c (original)
+++ team/russell/ais/res/res_ais.c Thu Aug 9 18:06:26 2007
@@ -233,6 +233,11 @@
return;
}
+ if (!strcasecmp(g_eid_str, ast_event_get_ie_str(event, AST_EVENT_IE_EID))) {
+ /* Don't feed events back in that originated locally. */
+ return;
+ }
+
if (!(event_dup = ast_malloc(len)))
return;
More information about the asterisk-commits
mailing list