aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_stack.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-20Merged revisions 264752 via svnmerge from tilghman1-1/+1
https://origsvn.digium.com/svn/asterisk/trunk ........ r264752 | tilghman | 2010-05-20 16:28:53 -0500 (Thu, 20 May 2010) | 7 lines Error message fix. (closes issue #17356) Reported by: kenner Patches: app_stack.c.diff uploaded by kenner (license 1040) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@264753 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-16Merged revisions 252976 via svnmerge from tilghman1-6/+17
https://origsvn.digium.com/svn/asterisk/trunk ........ r252976 | tilghman | 2010-03-16 18:49:35 -0500 (Tue, 16 Mar 2010) | 8 lines Mask out previous arguments on each nested invocation of Gosub. (closes issue #16758) Reported by: wdoekes Patches: 20100316__issue16758.diff.txt uploaded by tilghman (license 14) Review: https://reviewboard.asterisk.org/r/561/ ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@252978 f38db490-d61c-443f-a65b-d21fe96a405b
2009-12-23Merged revisions 236300 via svnmerge from tilghman1-2/+2
https://origsvn.digium.com/svn/asterisk/trunk ........ r236300 | tilghman | 2009-12-23 12:25:27 -0600 (Wed, 23 Dec 2009) | 7 lines AGI may be invoked from outside the dialplan (closes issue #16510) Reported by: atis Patches: 20091223__issue16510.diff.txt uploaded by tilghman (license 14) Tested by: atis ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@236303 f38db490-d61c-443f-a65b-d21fe96a405b
2009-11-10Merged revisions 229351 via svnmerge from tilghman1-1/+11
https://origsvn.digium.com/svn/asterisk/trunk ........ r229351 | tilghman | 2009-11-10 15:22:50 -0600 (Tue, 10 Nov 2009) | 7 lines When GOSUB is invoked within an AGI, it may not exit correctly. (closes issue #16216) Reported by: atis Patches: 20091110__atis_work.diff.txt uploaded by tilghman (license 14) Tested by: atis ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@229354 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-10AST-2009-005tilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@211580 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-09Merged revisions 211232 via svnmerge from tilghman1-1/+6
https://origsvn.digium.com/svn/asterisk/trunk ........ r211232 | tilghman | 2009-08-09 02:11:22 -0500 (Sun, 09 Aug 2009) | 4 lines Check for NULL frame, before dereferencing pointer. (closes issue #15617) Reported by: rain ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@211235 f38db490-d61c-443f-a65b-d21fe96a405b
2009-08-06Merged revisions 210908 via svnmerge from tilghman1-4/+4
https://origsvn.digium.com/svn/asterisk/trunk ........ r210908 | tilghman | 2009-08-06 16:29:26 -0500 (Thu, 06 Aug 2009) | 9 lines Allow Gosub to recognize quote delimiters without consuming them. (closes issue #15557) Reported by: rain Patches: 20090723__issue15557.diff.txt uploaded by tilghman (license 14) Tested by: rain Review: https://reviewboard.asterisk.org/r/316/ ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@210911 f38db490-d61c-443f-a65b-d21fe96a405b
2009-05-20Merged revisions 195839 via svnmerge from tilghman1-14/+13
https://origsvn.digium.com/svn/asterisk/trunk ........ r195839 | tilghman | 2009-05-20 18:30:05 -0500 (Wed, 20 May 2009) | 3 lines If a variable had a blank value upon the initial setting, then it would do nothing. Identified by Dmitry Andrianov via private email, fixed by me. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@195842 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-10Fix0ring buildtilghman1-5/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@174503 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-10Remove the usage of the KeepAlive app, as it no longer exists.tilghman1-16/+6
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@174470 f38db490-d61c-443f-a65b-d21fe96a405b
2009-02-031. Make OS X compile cleanly with app_stack.tilghman1-2/+2
2. Use curl to download sound files, as curl is installed natively on OS X, whereas wget and fetch are not. (closes issue #14332) Reported by: oej Tested by: Corydon76 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@173130 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-05If the autoloop flag is set on a channel, then we need to mmichelson1-1/+1
add 1 to the priority when checking if the extension exists. Otherwise, gosubs will fail. This was discovered when investigating an asterisk-users mailing list post made by Gary Hawkins. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@161493 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-03Add some safety measures when using gosub, especially when using the optionsmmichelson1-1/+12
for app_dial and app_queue to run a gosub when the call is answered. * Check for the existence of the gosub target in gosub_exec. If it is nonexistent, then this will cause errors when we attempt to actually run the gosub, including a definite memory leak and potential crashes. Return an error in this situation * Check the return value of pbx_exec in app_dial and app_queue before attempting to actually run the gosub routine. If there was an error, we should not attempt to run the gosub. * Change a '|' to a ',' in app_queue. * Add some extra curly braces where they had been missing previously. (closes issue #13548) Reported by: fiddur git-svn-id: http://svn.digium.com/svn/asterisk/trunk@160626 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-03- Avoid setting .synopsis and .syntax if we are using XML documentation (or theeliel1-6/+5
xml documentation wont be loaded). - Use <variable></variable> to refer to a dialplan variable. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@160447 f38db490-d61c-443f-a65b-d21fe96a405b
2008-12-02Add LOCAL_PEEK function, as requested by lmadsen.tilghman1-0/+59
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@160344 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-26improve handling of API calls provided by loaded modules through use of some ↵kpfleming1-14/+3
GCC features; this makes app_stack's usage of AGI APIs even cleaner, and will allow it to work 'as expected' either with or without res_agi being loaded reviewed at http://reviewboard.digium.com/r/62 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@159631 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-19make some corrections to the ast_agi_register_multiple(), ↵kpfleming1-7/+7
ast_agi_unregister_multiple() and ast_agi_fdprintf() API calls to be consistent with API guidelines also, move UPGRADE.txt to UPGRADE-1.6.txt and make the new UPGRADE.txt contain information about upgrading between Asterisk 1.6 releases git-svn-id: http://svn.digium.com/svn/asterisk/trunk@157706 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-05- Add more <see-also> based on TFOT.eliel1-0/+22
- Add the 'filename' type to the see-also ref. To be able to reference a filename. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@154578 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-03Add LOCAL() function XML documentation.eliel1-2/+17
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153947 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-02instead of trying to forcibly load res_agi when app_stack is loaded (even if ↵kpfleming1-12/+9
the administrator didn't want it loaded), use GCC weak symbols to determine whether it was loaded already or not; if it was loaded, then use it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153709 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-02bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 ↵kpfleming1-2/+8
branch, and add the ones needed for all the new code here too git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153616 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-01Merge changes from team/group/appdocsxmlrussell1-25/+68
This commit introduces the first phase of an effort to manage documentation of the interfaces in Asterisk in an XML format. Currently, a new format is available for applications and dialplan functions. A good number of conversions to the new format are also included. For more information, see the following message to asterisk-dev: http://lists.digium.com/pipermail/asterisk-dev/2008-October/034968.html git-svn-id: http://svn.digium.com/svn/asterisk/trunk@153365 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-27Set ARGC in subroutines with the number of arguments passed.tilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@152174 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-27Oops, only delete the ARG variables once upon release. The following sectiontilghman1-8/+0
would have removed them again (removing variables from 2 stack frames, instead of just one). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@152134 f38db490-d61c-443f-a65b-d21fe96a405b
2008-10-15building this module depends on res_agi being built as wellkpfleming1-0/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@149384 f38db490-d61c-443f-a65b-d21fe96a405b
2008-08-05make datastore creation and destruction a generic API since it is not really ↵kpfleming1-2/+2
channel related, and add the ability to add/find/remove datastores to manager sessions git-svn-id: http://svn.digium.com/svn/asterisk/trunk@135680 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-16(closes issue #12689)murf1-1/+1
Reported by: ys Many thanks to ys for doing the research on this problem. I didn't think it would be best to unlock the contexts and then relock them after the remove_extension2() call, so I added an extra arg to remove_extension2() and set it appropriately in each call. There were not that many. I considered forcing the code to lock the contexts before the call to remove_extension2(), but that would require a slightly greater degree of changes, especially since the find_context_locked is local to pbx.c I did a simple sanity test to make sure the code doesn't mess things up in general. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@123165 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-05Conditionally load the AGI command gosub, depending on whether or not res_agitilghman1-10/+27
has been loaded, fix a return value in the loader, and ensure that the help workhorse header does not print on load. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@120602 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-30Suppress warning about pbx structure already existingtilghman1-0/+7
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119299 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-30Add native AGI command GOSUB, as invoking Gosub with EXEC does not worktilghman1-2/+105
properly. (closes issue #12760) Reported by: Corydon76 Patches: 20080530__bug12760.diff.txt uploaded by Corydon76 (license 14) Tested by: tim_ringenbach, Corydon76 git-svn-id: http://svn.digium.com/svn/asterisk/trunk@119296 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-30Lock around variables retrieved, and copy the values, if they stay persistent,tilghman1-1/+4
since another thread could remove them. (closes issue #12541) Reported by: snuffy Patches: bug_12156_apps.diff uploaded by snuffy (license 35) Several additional changes by me git-svn-id: http://svn.digium.com/svn/asterisk/trunk@114904 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-10Several manager changes:tilghman1-1/+1
1) Add the Dialplan class, for NewExten and VarSet events, which should cut down on the volume of traffic in the Call class. 2) Permit some commands to be run from multiple classes, such as allowing DBGet to be run from either the System or the Reporting class. 3) Heavily document each class in the sample config, as there were several that made no sense to be in the write= line, and two that made no sense to be in the read= line (since they controlled no permissions there). (Closes issue #10386) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97651 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-22shuffle a little bit the content of header files to reduce dependencies.rizzo1-0/+1
In this commit: - move the ast_register/unregister_app functions to module.h to avoid the need to include pbx.h for the simpler apps; - move the ast_group structure to channel.h to remove the dependency of app.h on linkedlists.h Note, this is a long process that I am doing in small steps. The main difficulty is that now for each subsystem we have a single header (e.g. channel.h) included by the subsystem provider (usually one file, e.g. channel.c) and by its clients (dozens of them, e.g. we have some 70+ apps and 30+ functions). This requires the clients to include all the extra headers required by the provider (eg. lock.h, linkedlists.h, definitions of substructures...) even though many of the clients would be just happy with opaque struct declarations and function prototypes. The long term plan is to eventually rectify this structure so that the compilation can become faster, and also APIs are more stable. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89522 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-22more removal of redundant headersrizzo1-3/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89519 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-21remove another set of redundant #include "asterisk/options.h"rizzo1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89512 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-19include "logger.h" and errno.h from asterisk.h - usage shows that theyrizzo1-1/+0
were included almost everywhere. Remove some of the instances. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89424 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-16Start untangling header inclusion in a way that does not affectrizzo1-5/+0
build times - tested, there is no measureable difference before and after this commit. In this change: use asterisk/compat.h to include a small set of system headers: inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h, stdlib.h, alloca.h, stdio.h Where available, the inclusion is conditional on HAVE_FOO_H as determined by autoconf. Normally, source files should not include any of the above system headers, and instead use either "asterisk.h" or "asterisk/compat.h" which does it better. For the time being I have left alone second-level directories (main/db1-ast, etc.). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89333 f38db490-d61c-443f-a65b-d21fe96a405b
2007-11-06"show application <foo>" changes for clarity.mmichelson1-8/+8
(closes issue #11171, reported and patched by blitzrage) Many thanks! git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89044 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-31Mostly cleanup of documentation to substitute the pipe with the comma, but a ↵tilghman1-2/+2
few other formatting cleanups, too. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@77808 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16Applications no longer need to call ast_module_user_add and ↵file1-13/+0
ast_module_user_remove. This is now taken care of in the pbx_exec function outside of the application. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75200 f38db490-d61c-443f-a65b-d21fe96a405b
2007-07-16It is no longer required for each module that deals with a channel to call ↵file1-2/+0
ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@75183 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Oops, shouldn't have taken that last shortcut (also add some checks)tilghman1-27/+37
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70291 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Another method of doing local variables, hopefully a little closer to what ↵tilghman1-15/+20
codefreeze had in mind git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70272 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-20Local variables for codefreezetilghman1-2/+88
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70253 f38db490-d61c-443f-a65b-d21fe96a405b
2007-06-14Add a massive set of changes for converting to use the ast_debug() macro.russell1-8/+6
(issue #9957, patches from mvanbaak, caio1982, critch, and dimas) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69327 f38db490-d61c-443f-a65b-d21fe96a405b
2007-05-30Issue 9477 - Improve menuselect labelstilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@66585 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-06Debug control, debug control.oej1-3/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@58054 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-03Convert stack apps to use ast_storage channel structuretilghman1-33/+123
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@57736 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-03Okay, I can't use ast_app_separate_args for that... and add some debugging ↵tilghman1-13/+16
for murf... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44252 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-02Use the standard parsing routinestilghman1-11/+23
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44231 f38db490-d61c-443f-a65b-d21fe96a405b