Commit Graph

278 Commits (04224c20362f94f99886d6b51adb7b90db62855f)

Author SHA1 Message Date
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
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)
19 years ago
Olle Johansson 71c7f6e32f Merged revisions 54772 via svnmerge from
19 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
Luigi Rizzo c3249e2cb4 normalize repeated instances of code as follows:
19 years ago
Luigi Rizzo 6c232811c0 as discussed with Mark a few weeks ago, the 'newstack' argument
19 years ago
Russell Bryant 0e611cb4b4 Merged revisions 11382 via svnmerge from
20 years ago
Kevin P. Fleming 302c943001 add 'consumed' argument to ast_get_time_t, so callers can know how many characters were used in the parser
20 years ago
Russell Bryant a0d438fb6c remove the uses of the deprecated STANDARD_LOCAL_USER
20 years ago
Kevin P. Fleming e6ca0f1fab Merged revisions 10021,10108 via svnmerge from
20 years ago
Kevin P. Fleming 4662d58b01 add API function for parsing strings to time_t (issue #6320, with mods)
20 years ago
Kevin P. Fleming 96bf384e7d major dialplan functions update
20 years ago
Kevin P. Fleming a16ae226b6 use string fields for some stuff in ast_channel
20 years ago
Matt O'Gorman f246b9fc64 reports why an agi script errors out on opening
20 years ago
Tilghman Lesher 0f2a9df6aa Bug 4872 - Make Asterisk paths available to AGIs via environmental variables
20 years ago
Russell Bryant a725468381 update doxygen docs to specify authors
20 years ago
Russell Bryant 0da13c21b4 - move the string join() function to utils.c since it is used in both cli.c and res_agi.c
20 years ago
Kevin P. Fleming 2c65582b66 remove extraneous svn:executable properties
20 years ago
Kevin P. Fleming a0a9769616 issue #5648
20 years ago
Russell Bryant 8925c3834b issue #5589
20 years ago
Russell Bryant 3453e3efa5 Doxygen documentation update from oej (issue #5505)
20 years ago
Kevin P. Fleming 0c886c21c2 truncate last 200ms of DTMF-terminated recording to eliminate inband DTMF (issue #5383)
20 years ago
Kevin P. Fleming 5da915dcfd update MANY more files with proper copyright/license info (thanks Ian!)
20 years ago
Kevin P. Fleming 2cde73fddb make sure realtime/high scheduling priority is relinquished before executing an AGI script (issue #4930)
20 years ago
Kevin P. Fleming d69e96de11 allow custom dialplan functions to be called from AGI (issue #4855)
20 years ago
Kevin P. Fleming 3315ea79b9 add CONTROL STREAM FILE AGI command (issue #4738)
20 years ago
Josh Roberson 4e153882d7 Fix usage text for AGI recieve text (bug #4948)
20 years ago
Mark Spencer 4f0d1b8428 Fix sighup with AGI (bug #4854)
20 years ago
Kevin P. Fleming 22b0f5d306 add a library of timeval manipulation functions, and change a large number of usses to use the new functions (bug #4504)
20 years ago
Kevin P. Fleming 9d8d86e19d phase two of string portability stuff:
20 years ago
Kevin P. Fleming 8079f53c01 don't hangup the channel when a RECEIVE TEXT command times out (bug #4607)
20 years ago
Russell Bryant c18fd5cd8c more ast_copy_string conversions
20 years ago
Kevin P. Fleming 767f019264 add AGI 'RECEIVE TEXT' command (bug #4525)
20 years ago
Kevin P. Fleming 2b8338cb52 more file version tags
20 years ago
Kevin P. Fleming 4f299de252 major Makefile and build process improvements, including removal of all hardcoded paths (modules must now use run-time paths as they should) (bug #4116)
20 years ago
Kevin P. Fleming 1bac31d6bd more efficient (and understandable) ast_channel_walk_locked, and vastly more efficient ast_channel_by_name_locked (bug #4265)
20 years ago
Kevin P. Fleming 8ad230082e make AGI 'TDD MODE' command behave as documented when the channel doesn't support options (bug #4370)
20 years ago
Kevin P. Fleming d83eec795f support labels as targets of SET PRIORITY command (bug #4057)
20 years ago
Kevin P. Fleming 2d643dbc42 don't use %i for numeric input in scanf (bug #4071)
20 years ago
Kevin P. Fleming 1f9ab2380a use double-quotes instead of angle-brackets for non-system include files (bug #4058)
20 years ago
Mark Spencer bb1abed78f Add datetime to AGI (bug #3984)
20 years ago
Mark Spencer b8a9e7558f Add say date to AGi (bug #3768)
20 years ago
Mark Spencer 6347ced74a Little say numer fix (bug #3884)
20 years ago
Mark Spencer 49ad55b85a Continue with GET_DATA if no file is there (bug #3878)
20 years ago