Commit Graph

278 Commits (04224c20362f94f99886d6b51adb7b90db62855f)

Author SHA1 Message Date
Russell Bryant 0bdd99ad64 Merged revisions 182810 via svnmerge from
16 years ago
Russell Bryant 1c9d5caaef Add a todo to finish the XML docs in this module
17 years ago
Jeff Peeler a8930194f4 Merged revisions 168516 via svnmerge from
17 years ago
Tilghman Lesher 4a9e8078b9 When using ast_str with a non-ast_str-enabled API, we need to update the buffer
17 years ago
Tilghman Lesher 8c9b951974 Merged revisions 167840 via svnmerge from
17 years ago
Mark Michelson 5f95c7adae Always use the value of the AGISIGHUP when running an AGI.
17 years ago
Russell Bryant 7e72821959 Remove AST_PBX_KEEPALIVE usage from res_agi.
17 years ago
Tilghman Lesher c8223fc957 Merge ast_str_opaque branch (discontinue usage of ast_str internals)
17 years ago
Tilghman Lesher d254de9194 Merged revisions 163088 via svnmerge from
17 years ago
Eliel C. Sardanons 1e8e12efcf Janitor, use ARRAY_LEN() when possible.
17 years ago
Eliel C. Sardanons 8192031e83 Added XML documentation for the following AGI commands:
17 years ago
Kevin P. Fleming e14dfcbedc improve handling of API calls provided by loaded modules through use of some 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
17 years ago
Matthew Nicholson f3d086256c Added EVENT_FLAG_AGI and used it for manager calls in res_agi.c
17 years ago
Kevin P. Fleming 438e410c4f correct small bug introduced during API conversion
17 years ago
Kevin P. Fleming 81a16aa982 make some corrections to the ast_agi_register_multiple(), ast_agi_unregister_multiple() and ast_agi_fdprintf() API calls to be consistent with API guidelines
17 years ago
Eliel C. Sardanons 336d576168 Add XML documentation for AGI commands:
17 years ago
Michiel van Baak 86f900b201 This commit does two things:
17 years ago
Eliel C. Sardanons 5b25c26318 - Add 'database del', 'database put' and 'set music' AGI commands XML documentation.
17 years ago
Eliel C. Sardanons 6f31fed83f Implement AGI XML documentation parsing functions.
17 years ago
Kevin P. Fleming bd4eb070f3 bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch, and add the ones needed for all the new code here too
17 years ago
Michiel van Baak 1097de1382 fix the 'agi show commands' CLI function.
17 years ago
Jeff Peeler 2ec290b09d Similar to r143204, masquerade the channel in the case of Park being called from AGI.
17 years ago
Michiel van Baak 90751b16ca Merge the cli_cleanup branch.
17 years ago
Tilghman Lesher 900b7d75da Merged revisions 141503 via svnmerge from
17 years ago
Jeff Peeler f7efe4a1f7 Merged revisions 141028 via svnmerge from
17 years ago
Sean Bright 357bf3e90b All of the res/ stuff (other than res_jabber) from the RSW branch.
17 years ago
Tilghman Lesher c5a119d86d Update documentation as to the behavior of AGI in 1.6.0 and higher. Also, add
17 years ago
Kevin P. Fleming 7df8b8b848 make datastore creation and destruction a generic API since it is not really channel related, and add the ability to add/find/remove datastores to manager sessions
17 years ago
Tilghman Lesher b6de2967df Merged revisions 134480 via svnmerge from
17 years ago
Russell Bryant 5ac03d340f Fix a couple of places in res_agi where the agi_commands lock would not be
17 years ago
Tilghman Lesher 4ff527903e Code wasn't ready to be merged - see -dev list discussion
17 years ago
Olle Johansson 45e79490ba Implement flags for AGI in the channel structure so taht "show channels" and
17 years ago
Sean Bright 9c62626a52 Whitespace only
17 years ago
Tilghman Lesher 90d75af346 Conditionally load the AGI command gosub, depending on whether or not res_agi
17 years ago
Tilghman Lesher 76506b7baa Move compatibility options into asterisk.conf, default them to on for upgrades,
17 years ago
Michiel van Baak f1e9371da8 - revert change to ast_queue_hangup and create ast_queue_hangup_with_cause
17 years ago
Tilghman Lesher c51989a309 Merged revisions 116466 via svnmerge from
17 years ago
Olle Johansson e4c544cd5a Formatting changes (coding guidelines) while thinking about something else...
17 years ago
Tilghman Lesher b5a127daac Modify TIMEOUT() to be accurate down to the millisecond.
17 years ago
Tilghman Lesher 9809a31bb5 Merged revisions 114195 via svnmerge from
17 years ago
Tilghman Lesher 123ac5fd64 Standardized routines for forking processes (keeps all the specialized code in one place).
17 years ago
Tilghman Lesher eb930d5edd AsyncAGI should not close the manager session on error.
17 years ago
Terry Wilson b02bc230af Go through and fix a bunch of places where character strings were being interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not
17 years ago
Donny Kavanagh 4aadd3c770 trivial fix for an agi error when attempting to use EAGI on a dead/hungup channel, we now print an error that makes sense
17 years ago
Tilghman Lesher 8a411ccf83 Create a centralized configuration option for silencethreshold
17 years ago
Russell Bryant 0036cde5f3 Rename version.h to ast_version.h. Next, I will be re-adding version.h as an
17 years ago
Mark Michelson 7fa044f86f Instead of a notice, make the message about a hung-up channel a debug message, and revert the original
18 years ago
Mark Michelson b403e214b1 Don't print the fact that we are using dead mode in AGI if called from the
18 years ago
Olle Johansson 9cf6138725 Formatting fixes
18 years ago
Joshua Colp cc0c25c76c Remove ast_module_user usage from res_agi. This is taken care of in the core.
18 years ago
Russell Bryant 1ec8cb41a8 Merge changes from team/mvanbaak/cli-command-audit
18 years ago
Mark Michelson fe9821cc10 Get rid of any remaining ast_verbose calls in the code in favor of
18 years ago
Joshua Colp 5186035990 Merged revisions 98317 via svnmerge from
18 years ago
Russell Bryant 54bc2c20b6 Now that the version.h file was getting properly regenerated every time the svn
18 years ago
Tilghman Lesher 9c00db7c16 Add coordination between AMI and AGI applications, with an asyncagi method
18 years ago
Tilghman Lesher ba57c36bbb Add channel thread ID to the information passed to AGI.
18 years ago
Tilghman Lesher 0fc70140a5 Publish the AGI events to manager.
18 years ago
Tilghman Lesher 05dc95d302 Merged revisions 92933 via svnmerge from
18 years ago
Joshua Colp e941bbad0f Move usage of the old LOCAL_USER_* macros to the new ast_module_user_* functions in a few documentation places.
18 years ago
Joshua Colp 9ebf3afe02 Only send a SIGHUP if the pid is greater than -1, otherwise all PIDs greater than -1 will get the SIGHUP... and that is bad.
18 years ago
Tilghman Lesher 4aff884622 Pass the Asterisk version to AGI scripts as part of the initial dump of info
18 years ago
Joshua Colp 8bfdea3160 Add AGI commands for speech recognition. These mirror the dialplan applications mostly but present the information in a nicer fashion. The SPEECH RECOGNIZE command for example will return the results instead of having to query the dialplan functions.
18 years ago
Joshua Colp 6aad89b97d Fix a few log messages.
18 years ago
Luigi Rizzo 3fc2646808 remove a number of #include <fcntl.h> which are either
18 years ago
Luigi Rizzo e0ff5fef5c remove a bunch of useless #include "options.h"
18 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
18 years ago
Luigi Rizzo 0595b5e2aa include "logger.h" and errno.h from asterisk.h - usage shows that they
18 years ago
Luigi Rizzo a0f06d0dd5 start using asterisk/network.h for network related headers.
18 years ago
Luigi Rizzo 5490960453 remove a bunch of duplicate includes
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
18 years ago
Russell Bryant 4afb905cf0 Print out the channel name as a prefix to the "agi debug" output. This makes
18 years ago
Steve Murphy 63f2f04cf4 This commits the performance mods that give the priority processing engine in the pbx, a 25-30% speed boost. The two updates used, are, first, to merge the ast_exists_extension() and the ast_spawn_extension() where they are called sequentially in a loop in the code, into a slightly upgraded version of ast_spawn_extension(), with a few extra args; and, second, I modified the substitute_variables_helper_full, so it zeroes out the byte after the evaluated string instead of demanding you pre-zero the buffer; I also went thru the code and removed the code that zeroed this buffer before every call to the substitute_variables_helper_full. The first fix provides about a 9% speedup, and the second the rest. These figures come from the 'PIPS' benchmark I describe in blogs, conf. reports, etc.
18 years ago
Jason Parker ebe4050128 Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
18 years ago
Jason Parker b0f3e6097e Convert NEW_CLI to AST_CLI.
18 years ago
Russell Bryant efaa9cf607 Merged revisions 84236 via svnmerge from
18 years ago
Russell Bryant 0de872da8d Merged revisions 82929 via svnmerge from
18 years ago
Jason Parker c7a9ec1691 (issue #10724)
18 years ago
Russell Bryant a955df8eb9 Merged revisions 82296 via svnmerge from
18 years ago
Russell Bryant 83e24e0af2 Merged revisions 82278 via svnmerge from
18 years ago
Russell Bryant b8ff60d307 Remove an unused variable. I have no idea why this was marked with the unused
18 years ago
Russell Bryant 4eff19f413 Merged revisions 82245 via svnmerge from
18 years ago
Joshua Colp 7cb698fb31 (closes issue #10684)
18 years ago
Russell Bryant 84643967e1 Merged revisions 80469 via svnmerge from
18 years ago
Russell Bryant 44f70278a8 Merged revisions 80360 via svnmerge from
18 years ago
Tilghman Lesher a19b2fe6e3 Twould help if we actually defined ->mod before comparing against it (reported and fixed by Juggie via IRC).
18 years ago
Tilghman Lesher 20bbd09de3 Mostly cleanup of documentation to substitute the pipe with the comma, but a few other formatting cleanups, too.
18 years ago
Russell Bryant 048bb3d9e3 Fix the return value of ast_agi_fdprintf() to include the result from ast_carefulwrite()
18 years ago
Russell Bryant 38bb9400de Improve ast_agi_fdprintf() by using the ast_str() API.
18 years ago
Russell Bryant 935982d15b Merged revisions 77788 via svnmerge from
18 years ago
Tilghman Lesher 059a7aa862 Cleanup of res_agi, ensuring thread safety (closes issue #10288)
18 years ago
Tilghman Lesher 67bd05d9d1 Merged revisions 77783 via svnmerge from
18 years ago
Russell Bryant f8483a0d04 Do a massive conversion for using the ast_verb() macro
18 years ago
Joshua Colp 3e9886598d You need to put static in front of a static RWLIST declaration to make it really static... and don't call AST_RWLIST_HEAD_DESTROY on a statically declared list.
18 years ago
Tilghman Lesher db9d7764e0 Enhance AGI with several fixes:
18 years ago
Tilghman Lesher a1fdc1c769 Missed one conversion to comma delimiter (thanks, Juggie) and add documentation on the
18 years ago
Russell Bryant a971b4bfc4 (closes issue #10210, reported and patched by juggie)
18 years ago
Russell Bryant 7743bed9f6 Merged revisions 75401 via svnmerge from
18 years ago
Joshua Colp 96a646734f It is no longer required for each module that deals with a channel to call ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it.
18 years ago
Joshua Colp 48f166e87b Code cleanup of res_agi
18 years ago