From c6d46ae4546490066784d06533b86cd5fd49f934 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 17 Feb 2014 22:11:00 +0500 Subject: [PATCH] FS-6229 try this (stable edition) --- src/mod/endpoints/mod_sofia/sofia_glue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index 70a1b5526f..5f6067848c 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -4378,7 +4378,7 @@ int sofia_glue_toggle_hold(private_object_t *tech_pvt, int sendonly) const char *info; if ((sofia_test_flag(tech_pvt, TFLAG_SLA_BARGE) || sofia_test_flag(tech_pvt, TFLAG_SLA_BARGING)) && - (!b_channel || switch_channel_test_flag(b_channel, CF_BROADCAST))) { + (!b_channel || switch_channel_test_flag(b_channel, CF_EVENT_LOCK_PRI))) { switch_channel_mark_hold(tech_pvt->channel, sendonly); sofia_set_flag_locked(tech_pvt, TFLAG_SIP_HOLD); changed = 0; @@ -4408,7 +4408,7 @@ int sofia_glue_toggle_hold(private_object_t *tech_pvt, int sendonly) stream = tech_pvt->profile->hold_music; } - if (stream && strcasecmp(stream, "silence") && (!b_channel || !switch_channel_test_flag(b_channel, CF_BROADCAST))) { + if (stream && strcasecmp(stream, "silence") && (!b_channel || !switch_channel_test_flag(b_channel, CF_EVENT_LOCK_PRI))) { if (!strcasecmp(stream, "indicate_hold")) { switch_channel_set_flag(tech_pvt->channel, CF_SUSPEND); switch_channel_set_flag(tech_pvt->channel, CF_HOLD);