[asterisk-commits] tilghman: branch 1.4 r49831 - /branches/1.4/channels/chan_sip.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jan 7 14:24:06 MST 2007


Author: tilghman
Date: Sun Jan  7 15:24:04 2007
New Revision: 49831

URL: http://svn.digium.com/view/asterisk?view=rev&rev=49831
Log:
Second condition was a subset of the first, so hold was never decremented, thus hint stayed stuck (Issue 8747)

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=49831&r1=49830&r2=49831
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Sun Jan  7 15:24:04 2007
@@ -8095,7 +8095,7 @@
 	/* 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 */



More information about the asterisk-commits mailing list