declinato mortuus obfirmo!

This commit is contained in:
Mathieu Rene 2010-07-15 11:21:36 -04:00
parent e44b3da65e
commit ade0dcd7cb

View File

@ -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);