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

FreeSWITCH SVN anthm at freeswitch.org
Thu May 14 11:55:17 PDT 2009


Author: anthm
Date: Thu May 14 13:55:17 2009
New Revision: 13309

Log:
tweak code logic

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

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	Thu May 14 13:55:17 2009
@@ -2603,7 +2603,7 @@
 				stream = tech_pvt->profile->hold_music;
 			}
 
-			if (stream && switch_is_moh(stream)) {
+			if (stream && strcasecmp(stream, "silence")) {
 				if (!strcasecmp(stream, "indicate_hold")) {
 					switch_channel_set_flag(tech_pvt->channel, CF_SUSPEND);
 					switch_channel_set_flag(tech_pvt->channel, CF_HOLD);



More information about the Freeswitch-svn mailing list