[Freeswitch-svn] [commit] r6861 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN brian at freeswitch.org
Tue Dec 18 09:22:38 EST 2007


Author: brian
Date: Tue Dec 18 09:22:38 2007
New Revision: 6861

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c

Log:
small tweak for calling party and hold events.. 

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c	Tue Dec 18 09:22:38 2007
@@ -670,7 +670,7 @@
 			dft_state = "confirmed";
 		}
 		
-		if (!strcasecmp(state, "cs_execute")) {
+		if (!strcasecmp(state, "cs_execute") && !strcasecmp(direction, "inbound") && !strcasecmp(event_status, "hold")) {
 			goto end;
 		} else if (!strcasecmp(state, "cs_hangup")) {
 			astate = "terminated";



More information about the Freeswitch-svn mailing list