]> git.ipfire.org Git - thirdparty/asterisk.git/commit
features.c: Allow appliationmap to use Gosub. certified/1.8.15
authorRichard Mudgett <rmudgett@digium.com>
Sat, 26 Jul 2014 00:40:18 +0000 (00:40 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Sat, 26 Jul 2014 00:40:18 +0000 (00:40 +0000)
commit07407c1c882a9bf5bf6852e7a3d73eda82ea12e3
tree67f480ffd114132622016b78f7d6d1d8c9103b92
parentf7633c2c71a80ae337463f9fe02a17fe13da4789
features.c: Allow appliationmap to use Gosub.

Using DYNAMIC_FEATURES with a Gosub application as the mapped application
does not work.  It does not work because Gosub just pushes the current
dialplan context, exten, and priority onto a stack and sets the specified
Gosub location.  Gosub does not have a dialplan execution loop to run
dialplan like Macro.

* Made the DYNAMIC_FEATURES application mapping feature call
ast_app_exec_macro() and ast_app_exec_sub() for the Macro and Gosub
applications respectively.

* Backported ast_app_exec_macro() and ast_app_exec_sub() from v11 to
execute dialplan routines from the DYNAMIC_FEATURES application mapping
feature.

NOTE: This issue does not affect v12+ because it already does what this
patch implements.

AST-1391 #close
Reported by: Guenther Kelleter

Review: https://reviewboard.asterisk.org/r/3844/
........

Merged revisions 419630 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/1.8.15@419679 65c4cc65-6c06-0410-ace0-fbb531ad65f3
apps/app_stack.c
include/asterisk/app.h
main/app.c
main/features.c