When doing an async goto, detect if the channel is already in the middle of a
commitd6d202c0b8306914a843607a43093ac9116bbc81
authorrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Mon, 8 Sep 2008 21:02:36 +0000 (8 21:02 +0000)
committerrussell <russell@614ede4d-c843-0410-af14-a771ab80d22e>
Mon, 8 Sep 2008 21:02:36 +0000 (8 21:02 +0000)
treea72c37f6f22243551275296b2e2761c923a05ac0
parent83dde32000e06e758550fdaa3b8ed4774ebe921f
When doing an async goto, detect if the channel is already in the middle of a
masquerade.  This can happen when chan_local is trying to optimize itself out.
If this happens, fail the async goto instead of bursting into flames.

(closes issue #13435)
Reported by: geoff2010

git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@141806 614ede4d-c843-0410-af14-a771ab80d22e
main/pbx.c