Commit Graph

318 Commits (522593f901baff3f1ba334ecaad9eefd6a9c9316)

Author SHA1 Message Date
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
17 years ago
Mark Michelson b403e214b1 Don't print the fact that we are using dead mode in AGI if called from the
17 years ago
Olle Johansson 9cf6138725 Formatting fixes
17 years ago
Joshua Colp cc0c25c76c Remove ast_module_user usage from res_agi. This is taken care of in the core.
17 years ago
Russell Bryant 1ec8cb41a8 Merge changes from team/mvanbaak/cli-command-audit
17 years ago
Mark Michelson fe9821cc10 Get rid of any remaining ast_verbose calls in the code in favor of
17 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
Russell Bryant d2a85e5f64 After some discussion on the asterisk-dev list, we determined that this approach
18 years ago
Russell Bryant 8d99a2004b Fix up the AGI doc dump CLI command and update the AGI commands tex file to not
18 years ago
Russell Bryant 93229b0fed Add a CLI command to export the AGI command docs
18 years ago
Russell Bryant 625dbb6f89 Add a note that the AGI commands array is not handled in a thread-safe way
18 years ago
Tilghman Lesher 82e2033519 Merged revisions 71657 via svnmerge from
18 years ago
Joshua Colp 9b23b9b3b2 Minor header inclusion tweak for new usage of stat()
18 years ago
Joshua Colp c00428b0b0 Use stat to determine whether the file exists or not. (issue #10038 reported by Mike Anikienko)
18 years ago
Jason Parker 68ac7f7633 Merged revisions 71068 via svnmerge from
18 years ago
Joshua Colp fd9057423a Expand AGISTATUS variable to include NOTFOUND which is set when the AGI file could not be found. (issue #9285 reported by srdjan)
18 years ago
Russell Bryant 055d82cbce Add a massive set of changes for converting to use the ast_debug() macro.
18 years ago
Russell Bryant 68492b239c Add an option for ControlPlayback to be able to start at an offset from
18 years ago
Tilghman Lesher 9d05ff8ed5 Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
18 years ago
Joshua Colp 3f463b7668 Merged revisions 67597 via svnmerge from
18 years ago
Joshua Colp cc3c91edc2 Merged revisions 65250 via svnmerge from
18 years ago
Russell Bryant 0664aa2a73 Add gender support for AGI SAY NUMBER.
18 years ago
Olle Johansson 33915a153a Issue #9068 - make sure we quote HTML characters correctly too (seanbright)
18 years ago
Olle Johansson 71c7f6e32f Merged revisions 54772 via svnmerge from
18 years ago
Steve Murphy 7b338004bf a quick fix to app_sms.c to get rid of cursed compiler warnings so I can compile under --enable-dev-mode
19 years ago
Tilghman Lesher d670858735 Merged revisions 48375 via svnmerge from
19 years ago
Russell Bryant af870057c1 Constify a bunch of usage strings for CLI commands.
19 years ago
Luigi Rizzo ad2589bc01 useless cast removal...
19 years ago
Tilghman Lesher 79f75ec09a Merged revisions 47053 via svnmerge from
19 years ago
Tilghman Lesher 10875731ec Merged revisions 47051 via svnmerge from
19 years ago
Russell Bryant f012ccd4a3 Merged revisions 46558 via svnmerge from
19 years ago
Russell Bryant 4337a82563 Merged revisions 46363 via svnmerge from
19 years ago
Mark Spencer 9178e4223e Fix FastAGI to not wait for the non-existant pid
19 years ago
Steve Murphy c474556659 As per bug 6779, this patch is now applied to trunk; while I was at it, I corrected a reference to a CLI command, to follow the new regime.
19 years ago
Matt O'Gorman ae8cc3e18b bug #8076 check option_debug before printing to debug channel.
19 years ago
Tilghman Lesher 6ae8741518 Lots more removal of deprecated things
19 years ago
Kevin P. Fleming ea399862c4 move more API into the ast_ namespace
19 years ago
Kevin P. Fleming fcb999c01c merge qwell's CLI verbification work
19 years ago
Joshua Colp 31cc08295c Merged revisions 42148 via svnmerge from
19 years ago
Joshua Colp c6977b9983 Merge in VLDTMF support with Zaptel/Core done by the ever great Darumkilla Russell Bryant and the RTP portion done by myself, Muffinlicious Joshua Colp. This has gone through so many discussions/revisions it's not funny but we finally have it!
19 years ago
Tilghman Lesher ec7bd6614a Merged revisions 40901 via svnmerge from
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago
Russell Bryant b6a99250ed Merged revisions 39935 via svnmerge from
19 years ago
Russell Bryant 92bd7f19f7 Merge team/russell/ast_verbose_threadstorage
19 years ago
Russell Bryant 233aab68a6 add a verbose message to the AGI command, STREAM FILE, similar to the
19 years ago
Kevin P. Fleming 6d0742fc16 merge Russell's 'hold_handling' branch, finally implementing music-on-hold handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be)
19 years ago
Kevin P. Fleming 5b639e6135 Merged revisions 37419 via svnmerge from
19 years ago
Russell Bryant a483f6eafc Merged revisions 33693 via svnmerge from
19 years ago
Tilghman Lesher 1d8804c117 Merged revisions 33615 via svnmerge from
19 years ago
Kevin P. Fleming 472c1ca282 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
19 years ago
Russell Bryant 6ff6536f13 Merged revisions 31194 via svnmerge from
19 years ago
Joshua Colp 1c158f0ea4 Add the video stream for AGI function STREAM FILE (issue #5392 reported by areski -- minor mods by me)
19 years ago
Russell Bryant 26271fbd3a allow setting a channel variable to disable sending SIGHUP to the AGI process
19 years ago
Russell Bryant 238cdb249f Add the ability to retrieve the exit code of the forked AGI process. If there
19 years ago
Russell Bryant 0cccaf8408 - add support for setting an AGISTATUS variable that indicates successful
19 years ago
Kevin P. Fleming dd45d18515 Merged revisions 29973 via svnmerge from
19 years ago
Kevin P. Fleming eeb01cda95 revert bogus change
19 years ago
Olle Johansson e274a70d52 Add missing argument to ast_carefulwrite
19 years ago
Russell Bryant 04ecb29d03 remove almost all of the checks of the result from ast_strdupa() or alloca().
19 years ago
Russell Bryant 4fe3960478 move ast_carefulwrite from manager.c to utils.c so that cli.c and
19 years ago
Russell Bryant 8085f4e14b a bunch of conversion to ast_channel_*lock (issue #7058)
19 years ago
Luigi Rizzo 7ecc442d77 more NULL "" equivalence in cid fields.
19 years ago
Joshua Colp 4657dc770c We are shaking up trunk tonight! allow data dir to be specified (issue #6967 reported by tzafrir)
19 years ago
Luigi Rizzo e43bc6634d This rather large commit changes the way modules are loaded.
19 years ago
Luigi Rizzo 7507309732 normalize code in preparation to module changes
19 years ago
Kevin P. Fleming 699f55071b a few cleanups from the last commit
19 years ago
Kevin P. Fleming f10f427d49 since the module API is changing, it's a good time to const-ify the description() and key() return values
19 years ago