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

Freeswitch SVN brian at freeswitch.org
Tue Mar 11 15:45:32 EDT 2008


Author: brian
Date: Tue Mar 11 15:45:32 2008
New Revision: 7863

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

Log:
silence as a hold class means NO MUSIC

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	Tue Mar 11 15:45:32 2008
@@ -1829,7 +1829,7 @@
 				stream = tech_pvt->profile->hold_music;
 			}
 
-			if (stream) {
+			if (stream && strcasecmp(stream, "silence")) {
 				switch_ivr_broadcast(switch_channel_get_variable(tech_pvt->channel, SWITCH_SIGNAL_BOND_VARIABLE), stream, SMF_ECHO_ALEG | SMF_LOOP);
 			}
 		}



More information about the Freeswitch-svn mailing list