Modify ast_answer() to not hold the channel lock while calling ast_safe_sleep()
authorRussell Bryant <russell@russellbryant.com>
Tue, 9 Sep 2008 01:47:56 +0000 (01:47 +0000)
committerRussell Bryant <russell@russellbryant.com>
Tue, 9 Sep 2008 01:47:56 +0000 (01:47 +0000)
commitfbe13cfb860d3bb463fa4bcbb50874ee052b2607
tree74ee904837c93f9d938049329e18c0bfb7aaf43d
parent4356d794e3926e3ea048dcf3d993c20ac046f4c6
Modify ast_answer() to not hold the channel lock while calling ast_safe_sleep()
or when calling ast_waitfor().  These are inappropriate times to hold the channel
lock.  This is what has caused "could not get the channel lock" messages from
chan_sip and has likely caused a negative impact on performance results of SIP
in Asterisk 1.6.  Thanks to file for pointing out this section of code.

(closes issue #13287)
(closes issue #13115)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@141949 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/channel.c