From dcbf36432ea516db53e5f3e13f3dfd71b7c4dcba Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Sun, 7 Jan 2007 21:24:04 +0000 Subject: [PATCH] Second condition was a subset of the first, so hold was never decremented, thus hint stayed stuck (Issue 8747) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@49831 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6664fccda0..bb831ad33c 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -8095,7 +8095,7 @@ static void sip_peer_hold(struct sip_pvt *p, int hold) /* If they put someone on hold, increment the value... otherwise decrement it */ if (hold) peer->onHold++; - else if (hold > 0) + else peer->onHold--; /* Request device state update */