]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6229 try this (stable edition)
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 17 Feb 2014 17:11:00 +0000 (22:11 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 17 Feb 2014 17:11:07 +0000 (22:11 +0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index 70a1b5526fa128aa37af6af919c4fc5af5f5af36..5f6067848c79a101675e25619df4f415e7ce9b82 100644 (file)
@@ -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);