tweak code logic
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13309 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
7585c4fafc
commit
821828f9e1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue