Author: file
Date: Fri Jul 27 11:29:40 2007
New Revision: 77537

URL: http://svn.digium.com/view/asterisk?view=rev&rev=77537
Log:
Merged revisions 77536 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77536 | file | 2007-07-27 13:27:16 -0300 (Fri, 27 Jul 2007) | 6 lines

(closes issue #10323)
Reported by: julianjm
Patches:
      chan_sip_device_state_hold_fix.v1.diff.txt uploaded by julianjm (license 
99)
Clear ONHOLD flag when decrementing the onHold peer count. If we did not do 
this the count may keep decreasing.

........

Modified:
    trunk/   (props changed)
    trunk/channels/chan_sip.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/chan_sip.c
URL: 
http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=77537&r1=77536&r2=77537
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Fri Jul 27 11:29:40 2007
@@ -3616,8 +3616,10 @@
                        ast_clear_flag(&fup->flags[1], SIP_PAGE2_INC_RINGING);
                }
                /* Decrement onhold count if applicable */
-               if (ast_test_flag(&fup->flags[1], SIP_PAGE2_CALL_ONHOLD) && 
global_notifyhold)
+               if (ast_test_flag(&fup->flags[1], SIP_PAGE2_CALL_ONHOLD) && 
global_notifyhold) {
+                       ast_clear_flag(&fup->flags[1], SIP_PAGE2_CALL_ONHOLD);
                        sip_peer_hold(fup, FALSE);
+               }
                if (sipdebug)
                        ast_debug(2, "Call %s %s '%s' removed from call limit 
%d\n", outgoing ? "to" : "from", u ? "user":"peer", name, *call_limit);
                break;


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to