Merged revisions 114083 via svnmerge from
authorTerry Wilson <twilson@digium.com>
Fri, 11 Apr 2008 22:48:52 +0000 (22:48 +0000)
committerTerry Wilson <twilson@digium.com>
Fri, 11 Apr 2008 22:48:52 +0000 (22:48 +0000)
commit4bc75c9a55d7ee3645f55ecbfbf985fae48be330
tree66c882c31cbfbdd37f1ca0e6b475509d2108c2a9
parentef8007f6300f7cfcd1dae74548396d81ef9a30c5
Merged revisions 114083 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r114083 | twilson | 2008-04-11 17:32:51 -0500 (Fri, 11 Apr 2008) | 7 lines

Several places in the code called find_callno() (which releases the lock on the pvt structure) and then immediately locked the call and did things with it. Unfortunately, the call can disappear between the find_callno and the lock, causing Bad Stuff(tm) to happen.

Added find_callno_locked() function to return the callno withtout unlocking for instances that it is needed.

(issue #12400)
Reported by: ztel

........

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