Commit Graph

259 Commits

Author SHA1 Message Date
Matt O'Gorman f246b9fc64 reports why an agi script errors out on opening
file


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9059 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-02-01 20:40:45 +00:00
Tilghman Lesher 0f2a9df6aa Bug 4872 - Make Asterisk paths available to AGIs via environmental variables
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8372 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-21 05:22:18 +00:00
Russell Bryant a725468381 update doxygen docs to specify authors
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-30 21:18:06 +00:00
Russell Bryant 0da13c21b4 - move the string join() function to utils.c since it is used in both cli.c and res_agi.c
- reimplement ast_join to be of linear effieciency instead of quadratic
- remove some useless checks for "if (e)"
- reorder checks for strings starting with '_' to avoid a useless call to ast_join()
- check array bounds when parsing arguments to AGI
(issue #5868)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-20 20:20:04 +00:00
Kevin P. Fleming 2c65582b66 remove extraneous svn:executable properties
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7221 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-29 18:24:39 +00:00
Kevin P. Fleming a0a9769616 issue #5648
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7011 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-08 01:55:31 +00:00
Russell Bryant 8925c3834b issue #5589
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-03 21:25:57 +00:00
Russell Bryant 3453e3efa5 Doxygen documentation update from oej (issue #5505)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-24 20:12:06 +00:00
Kevin P. Fleming 0c886c21c2 truncate last 200ms of DTMF-terminated recording to eliminate inband DTMF (issue #5383)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6717 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-04 22:35:43 +00:00
Kevin P. Fleming 5da915dcfd update MANY more files with proper copyright/license info (thanks Ian!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 20:46:50 +00:00
Kevin P. Fleming 2cde73fddb make sure realtime/high scheduling priority is relinquished before executing an AGI script (issue #4930)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6368 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 01:30:22 +00:00
Kevin P. Fleming d69e96de11 allow custom dialplan functions to be called from AGI (issue #4855)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 23:00:23 +00:00
Kevin P. Fleming 3315ea79b9 add CONTROL STREAM FILE AGI command (issue #4738)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6360 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-22 21:59:24 +00:00
Josh Roberson 4e153882d7 Fix usage text for AGI recieve text (bug #4948)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6334 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-15 02:45:34 +00:00
Mark Spencer 4f0d1b8428 Fix sighup with AGI (bug #4854)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6264 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 04:17:12 +00:00
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)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6146 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 23:00:47 +00:00
Kevin P. Fleming 9d8d86e19d phase two of string portability stuff:
don't need ast_ prefixes on functions
  use individual #defines for function presence
  add vasprintf to portability library


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 22:06:15 +00:00
Kevin P. Fleming 8079f53c01 don't hangup the channel when a RECEIVE TEXT command times out (bug #4607)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-11 20:40:02 +00:00
Russell Bryant c18fd5cd8c more ast_copy_string conversions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-10 23:21:39 +00:00
Kevin P. Fleming 767f019264 add AGI 'RECEIVE TEXT' command (bug #4525)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5950 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-21 01:16:18 +00:00
Kevin P. Fleming 2b8338cb52 more file version tags
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5866 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 22:12:19 +00:00
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)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 03:04:58 +00:00
Kevin P. Fleming 1bac31d6bd more efficient (and understandable) ast_channel_walk_locked, and vastly more efficient ast_channel_by_name_locked (bug #4265)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5853 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 02:29:18 +00:00
Kevin P. Fleming 8ad230082e make AGI 'TDD MODE' command behave as documented when the channel doesn't support options (bug #4370)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5851 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-05 21:00:33 +00:00
Kevin P. Fleming d83eec795f support labels as targets of SET PRIORITY command (bug #4057)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5727 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 02:57:45 +00:00
Kevin P. Fleming 2d643dbc42 don't use %i for numeric input in scanf (bug #4071)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5507 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-27 01:42:33 +00:00
Kevin P. Fleming 1f9ab2380a use double-quotes instead of angle-brackets for non-system include files (bug #4058)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5490 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-21 06:02:45 +00:00
Mark Spencer bb1abed78f Add datetime to AGI (bug #3984)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-04-11 03:23:54 +00:00
Mark Spencer b8a9e7558f Add say date to AGi (bug #3768)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5305 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-30 07:00:49 +00:00
Mark Spencer 6347ced74a Little say numer fix (bug #3884)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5298 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-29 06:21:21 +00:00
Mark Spencer 49ad55b85a Continue with GET_DATA if no file is there (bug #3878)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-28 07:08:39 +00:00
Mark Spencer e6e2e59b4d Make sure AGI continues even when files aren't there (bug #3862)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5263 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-26 05:33:48 +00:00
Mark Spencer 8aa722871d Add additional fields for calling parameters per BT request
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-24 16:38:13 +00:00
Mark Spencer f9cfe60312 Add support for Solaris/x86 (bug #3064)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5199 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-03-17 23:12:15 +00:00
Russell Bryant 0c30452423 update copyright headers for 2005
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4868 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-21 07:06:25 +00:00
Mark Spencer 7af0234fa7 Various small fixups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-09 09:01:40 +00:00
Mark Spencer 2d8160ecd5 AGI formatting fixes (bug #3270)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4715 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-01-08 19:35:20 +00:00
Mark Spencer a2e70340b8 Don't die when a file is missing (bug #3212)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4623 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-31 21:52:56 +00:00
Mark Spencer 0255d5805f Merge gramatical fixes from corydon (bug #3180)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-28 23:01:22 +00:00
Mark Spencer 3fde2e56b8 Fix AGI to know about "builtin" variables, too (bug #2737)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-23 02:47:01 +00:00
Mark Spencer b3a0ef24ed Fix comment issues (bug #3089)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4479 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-18 22:04:07 +00:00
Mark Spencer 0f205bb079 Add "SAY ALPHA" (matt nicholson)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4445 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-12-14 18:39:25 +00:00
Mark Spencer 17d5d7bdb7 Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4271 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 04:36:39 +00:00
Mark Spencer eedf47ac8f Add GET FULL VARIABLE AGI command
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4270 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-17 04:02:56 +00:00
Mark Spencer 94f6f76fbe Add get option command (bug #2868, thanks junky!)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4261 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-16 03:37:07 +00:00
Mark Spencer 134e6180c5 Disable echo canceller for digital calls (bug #2785), fix build on MacOSX (bug #2803)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4170 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-11-07 16:21:01 +00:00
James Golovich 9f5f95fe87 Remove late-night excuse for wasting cpu cycles. revert previous res_agi change
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4029 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-17 05:16:22 +00:00
James Golovich 8b8d26f9bc Fix pbx_builtin_setlanguage to not seg when data is a NULL ptr. Also fix AGI so we dont run into this with other specific problems as well. (bug 2641)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-13 22:47:42 +00:00
Mark Spencer 04fc29c8b2 Huge callerid rework (might break H.323, others)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3874 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-10-02 00:58:31 +00:00
James Golovich b1b4db95c2 Fix FastAGI working with non default ports (bug 2539)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3852 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-29 03:32:58 +00:00
Mark Spencer ddf2648326 Fix BSD build
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-28 14:14:00 +00:00
James Golovich aa2e435d82 Remove duplicate sys/socket.h include from res_agi.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3845 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-27 14:54:07 +00:00
Russell Bryant fda8fa2367 add includes in res_agi.c to fix BSD compatibility
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3840 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-26 17:01:39 +00:00
Mark Spencer bf4ca23372 Make holdtime announcement say "less than 2 minutes" instead of "1 minutes" (bug #2500)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3834 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-25 14:22:27 +00:00
James Golovich 9812bcc03c Include sys/socket.h in res/res_agi.c (bug 2490)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3828 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-23 18:10:46 +00:00
Mark Spencer 1597114535 Implement Fast AGI (agi://) over TCP socket (Astricon talk idea)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3820 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-09-22 15:21:36 +00:00
Mark Spencer 7acee329e1 Merge BSD stack size work (bug #2067)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3596 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-08-08 17:15:02 +00:00
Mark Spencer 57217916f1 First pass at AGI registration
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3461 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 20:25:39 +00:00
Mark Spencer de4188df06 Merge musiconhold stuff (bug #2027), restructure AGI to eventually support registration
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3460 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2004-07-17 20:12:28 +00:00