From ade0dcd7cbe681625f1a2c960a2d773c3dc26353 Mon Sep 17 00:00:00 2001 From: Mathieu Rene Date: Thu, 15 Jul 2010 11:21:36 -0400 Subject: [PATCH] declinato mortuus obfirmo! --- src/switch_channel.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_channel.c b/src/switch_channel.c index edf162c0fd..22f66bad25 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -1230,7 +1230,9 @@ SWITCH_DECLARE(void) switch_channel_set_flag_value(switch_channel_t *channel, sw switch_mutex_lock(channel->flag_mutex); if (flag == CF_LEG_HOLDING && !channel->flags[flag] && channel->flags[CF_ANSWERED]) { + switch_mutex_unlock(channel->flag_mutex); switch_channel_set_callstate(channel, CCS_HELD); + switch_mutex_lock(channel->flag_mutex); } channel->flags[flag] = value; switch_mutex_unlock(channel->flag_mutex);