tweak code logic

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13309 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-05-14 18:55:17 +00:00
parent 7585c4fafc
commit 821828f9e1
1 changed files with 1 additions and 1 deletions

View File

@ -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);