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

Freeswitch SVN anthm at freeswitch.org
Fri Oct 5 14:00:33 EDT 2007


Author: anthm
Date: Fri Oct  5 14:00:33 2007
New Revision: 5820

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

Log:
up

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Fri Oct  5 14:00:33 2007
@@ -1097,7 +1097,7 @@
 	}
 	
 
-	if (channel && (status == 180 || status == 183)) {
+	if (channel && (status == 180 || status == 183) && switch_channel_test_flag(channel, CF_OUTBOUND)) {
 		char *val;
 		if ((val = switch_channel_get_variable(channel, "sip_auto_answer")) && switch_true(val)) {
 			nua_notify(nh, NUTAG_NEWSUB(1), NUTAG_SUBSTATE(nua_substate_active), SIPTAG_EVENT_STR("talk"), TAG_END());



More information about the Freeswitch-svn mailing list