From: Mathieu Rene Date: Thu, 15 Jul 2010 15:21:36 +0000 (-0400) Subject: declinato mortuus obfirmo! X-Git-Tag: v1.2-rc1~544^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ade0dcd7cbe681625f1a2c960a2d773c3dc26353;p=thirdparty%2Ffreeswitch.git declinato mortuus obfirmo! --- 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);