Fix connected-line/redirecting interception gosubs executing more than intended.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 20 Apr 2012 23:29:56 +0000 (23:29 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 20 Apr 2012 23:29:56 +0000 (23:29 +0000)
commit3a874139d4ae0f38f5d2ffaf470b62d4f120dc2d
tree619db20b50170f0279246abb8b56124289c83ad8
parente6d08d92e35e176d02b6d1cc7da3696d2c12e86f
Fix connected-line/redirecting interception gosubs executing more than intended.

* Redo ast_app_run_sub()/ast_app_exec_sub() to use a known return point so
execution will stop after the routine returns there.
(s@gosub_virtual_context:1)

* Create ast_app_exec_macro() and ast_app_exec_sub() to run the macro and
gosub application respectively with the parameter string already created.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362962 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_stack.c
include/asterisk/app.h
main/app.c