Merged revisions 49831 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r49831 | tilghman | 2007-01-07 15:24:04 -0600 (Sun, 07 Jan 2007) | 2 lines

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/trunk@49832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Tilghman Lesher 20 years ago
parent 3c1b9fc508
commit 4866a44535

@ -8177,7 +8177,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 */

Loading…
Cancel
Save