]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
silence as a hold class means NO MUSIC
authorBrian West <brian@freeswitch.org>
Tue, 11 Mar 2008 19:45:32 +0000 (19:45 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 11 Mar 2008 19:45:32 +0000 (19:45 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7863 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_glue.c

index 1db2fa9f662c4cfb654123a4e937d04fe102e4d1..1049e57bc2d87847161c74a34b2fb47f6da44223 100644 (file)
@@ -1829,7 +1829,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, sdp_session_t *
                                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);
                        }
                }