From 821828f9e12fb1bdd8f93956860e56583ab20475 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 14 May 2009 18:55:17 +0000 Subject: [PATCH] tweak code logic git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13309 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_glue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 9ab7c58dc9..38274684b0 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -2603,7 +2603,7 @@ void sofia_glue_toggle_hold(private_object_t *tech_pvt, int sendonly) 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);