[Freeswitch-svn] [commit] r12542 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Mon Mar 9 12:48:17 PDT 2009


Author: anthm
Date: Mon Mar  9 14:48:17 2009
New Revision: 12542

Log:
dont fire presence event for the reporting state

Modified:
   freeswitch/trunk/src/switch_channel.c

Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c	(original)
+++ freeswitch/trunk/src/switch_channel.c	Mon Mar  9 14:48:17 2009
@@ -968,7 +968,7 @@
 
 	switch_channel_clear_flag(channel, CF_TAGGED);
 
-	if (channel->state >= CS_ROUTING) {
+	if (channel->state >= CS_ROUTING && channel->state <= CS_HANGUP) {
 		switch_channel_presence(channel, "unknown", (char *) state_names[state], NULL);
 	}
 



More information about the Freeswitch-svn mailing list