Files
asterisk/channels
Richard Mudgett 6348add664 Better way to get chan and pvt lock for issue ASTERISK-17431.
Redoes -r308945 for issue ASTERISK-17431 deadlock fix for
sip_set_udptl_peer() and sip_set_rtp_peer().

* Lock the channels in the defined order and avoid the need for a deadlock
avoidance loop.

* Lock the channel before getting the pointer to the private structure to
be sure that the pointer will not change due to a masquerade or channel
hangup.

* To preserve sanity, check that chan and p->owner are the same.  (Pointer
rearangements should not happen without the protection of locks because
bad things tend to happen otherwise.)


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@326144 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2011-07-01 21:07:22 +00:00
..
2011-05-17 21:57:56 +00:00
2009-08-10 19:20:57 +00:00
2011-06-16 22:41:01 +00:00
2010-06-07 20:04:42 +00:00
2011-05-13 01:47:05 +00:00