* Add a lock to be used in the update_call_counter function.
authorMark Michelson <mmichelson@digium.com>
Tue, 18 Nov 2008 20:23:58 +0000 (20:23 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 18 Nov 2008 20:23:58 +0000 (20:23 +0000)
commit16efb5c4ddb60e8bee2a13594f4fd54c9e997bf7
tree2206da275c43c3a4586da0fe774628e87440d8af
parent53f3870ed304c3afaa85800df37f9ee3a1b3ec39
* Add a lock to be used in the update_call_counter function.
* Revert logic to mirror 1.4's in the sense that it will not allow
  the call counter to dip below 0.

These two measures prevent potential races that could cause a SIP peer
to appear to be busy forever.

(closes issue #13668)
Reported by: mjc
Patches:
      hintfix_trunk_rev152649.patch uploaded by wolfelectronic (license 586)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c