Commit Graph

125 Commits

Author SHA1 Message Date
Tilghman Lesher 2dec3747df Clarify description of ARRAY function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-15 18:08:04 +00:00
Tilghman Lesher 9702fac4f8 Bug 6238 - Janitor - update to app_args macros
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-14 19:30:37 +00:00
Tilghman Lesher 3578c5b19d Merged revisions 8074 via svnmerge from
/branches/1.2


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-14 19:08:03 +00:00
Matt O'Gorman f5b108ac99 Added macros from 6198 and 6203. also added better
error reporting in func_cut


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7989 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-11 19:52:29 +00:00
Matt O'Gorman 00f2142dc1 6186 amd 6187 with minor revisions. added arg
parsing from macro.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7945 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-10 16:08:28 +00:00
Tilghman Lesher 0d7fda32fd Fix indentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7929 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-10 03:23:38 +00:00
Matt O'Gorman d25b128b66 committing 5924 with minor white space changes
and adding it to the Makefile for functions.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-10 01:52:34 +00:00
Tilghman Lesher 935c80d5e6 Bug 5961 - new RAND() function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-10 00:55:45 +00:00
Russell Bryant 455f75c9b1 remove unnecessary check before ast_strlen_zero (issue #6179)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7901 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-09 18:29:03 +00:00
Russell Bryant 1d603f5256 Merged revisions 7773 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7773 | russell | 2006-01-04 02:06:50 -0500 (Wed, 04 Jan 2006) | 2 lines

use a more correct way of determining the size of the destination buffer

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7774 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2006-01-04 07:08:08 +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
Tilghman Lesher 340f5b67de Bug 5906 - ARRAY dialplan function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-27 06:50:25 +00:00
Tilghman Lesher dd161bec3b Add SQL_ESC to allow single ticks to be escaped
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7642 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-27 02:02:23 +00:00
Tilghman Lesher 5323442db4 Bug 5327 - new function FILTER and optional argument to CALLERID
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7614 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-23 21:03:25 +00:00
Kevin P. Fleming 2f66f7cfe9 don't try to build func_odbc when ODBC headers/libraries are not present
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7589 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-22 03:49:41 +00:00
Tilghman Lesher 28af98ae95 Bug 5055 - Simple SQL commands from the dialplan
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7576 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-21 18:43:10 +00:00
Tilghman Lesher 6c3eda3e5f Bug 5440 - Add STAT() dialplan function
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7575 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-21 17:09:54 +00:00
Tilghman Lesher eea40f2025 First field was truncated.
(Don't kill me; this attempted merge didn't work because the paths changed.)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7498 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-16 00:55:39 +00:00
Tilghman Lesher cbab537375 Properly move these functions over to the funcs directory (since they no longer contain apps)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7496 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-15 19:05:41 +00:00
Tilghman Lesher 870f98f02d Bug 5858 - Make the chanvars.c functions return a 'const char *'
This should prevent us from unintentionally changing variable
values when they're returned from pbx_builtin_getvar_helper.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-12-03 19:25:33 +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 c14588af86 remove remaining .cvsignore files
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7220 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-29 18:09:49 +00:00
Josh Roberson ab56f3a571 issue #5791
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7135 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-20 04:48:24 +00:00
Kevin P. Fleming 1740d40182 issue #5693
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-10 23:42:45 +00:00
Russell Bryant 987b87662c make app_queue 1.2 jump compliant (issue #5580)
add missing includes of stdio.h
remove some unused and duplicate headers


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7026 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-08 04:48:00 +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
Kevin P. Fleming 426360e389 major update to arg/option parsing APIs and documentation
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6953 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-03 21:19:11 +00:00
Kevin P. Fleming 7ffb604a2f issue #4678
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6936 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-11-01 21:53:30 +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
Russell Bryant 907fd55883 add missing STANDARD_HANGUP_LOCALUSERS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6827 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-18 21:06:48 +00:00
Russell Bryant b59ab89e1a implement TXTCIDNAME as a dialplan function and mark the application deprecated
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6813 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-18 03:02:06 +00:00
Russell Bryant a863d2b280 clean up function to be more consistent with coding guidelines
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6808 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-17 17:54:32 +00:00
Kevin P. Fleming 9a85d06a64 initialize variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-14 00:45:38 +00:00
Russell Bryant 33377538b0 provide the correct string to evaluate with the given regex, instead of the
entire string provided as input to the REGEX function..  Also, use the
provided buffer to store the result.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6744 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-12 01:09:04 +00:00
Kevin P. Fleming 0bffff1930 correct cygwin detection (issue #5328)
handle parallel make better (issue #5328)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6725 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-10-05 00:17:57 +00:00
Kevin P. Fleming d612e3bc27 ensure result buffer is initialized (issue #5285)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-25 20:47:00 +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 0c8f0e8bdb extensive ENUM support update, including ENUMLOOKUP() dialplan function (issue #5201 with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-09-14 01:36:15 +00:00
Kevin P. Fleming 9519f6c5f4 clean up, use make functions instead of subshells, remove unused stuff
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6449 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-30 02:54:02 +00:00
Kevin P. Fleming 022cf309e4 add dialplan functions for URI encoding/decoding (issue #4857)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6442 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-29 22:54:54 +00:00
Kevin P. Fleming 6aeb93a629 handle whitepace around expression
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-23 22:03:24 +00:00
Josh Roberson 88ea13f07e Fix description text for IF function. (Bug #4966)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6336 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-15 17:06:30 +00:00
Russell Bryant 6e2aa7c62a only check for an existing cdr when about to set an arbitrary cdr variable (bug #4848)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6277 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-08-03 21:34:48 +00:00
Russell Bryant 654ff10f8e make GROUP set group@categroy instead of category@group
ensure that GROUP_COUNT still returns "0", even if no group was found


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6245 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-28 21:16:02 +00:00
Russell Bryant bbb33e5c41 don't crash if no group is specified (bug #4836)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6237 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-27 22:43:18 +00:00
Russell Bryant cdf79750c0 squash a warning
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6196 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 18:34:40 +00:00
Russell Bryant 76b6344760 add ability to set or read both callerid name and num in one call to the function
This one is for you, Mark :-p


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-25 17:26:59 +00:00
Russell Bryant a9c7f50a09 Allow manager originate to specifiy more than one variable to be set.
Allow manager originate and spool files to set writable dialplan functions,
including those that use the pipe symbol to seperate arguments.
Allow CDR dialplan function to be able to set the account code and userfield.
This deprecates the use of the Account header in manager originate and spool
files, as well as the SetAccount and SetCDRUserField applications.


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-15 23:24:51 +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
Russell Bryant 38717a75c6 add a dialplan function to get and set the music on hold class
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6115 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-07-12 22:50:45 +00:00
Kevin P. Fleming 0e9d920a60 move tools used during build into build_tools subdirectory
clean up Makefile headers


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5942 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-20 17:26:08 +00:00
Kevin P. Fleming 79392ea53b add MATH() dialplan function (bug #4473, with mods)
deprecate the Math() application


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5895 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-09 22:59:08 +00:00
Kevin P. Fleming 0db4cee117 enable version string for this module, since it's standalone
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5874 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-07 16:11:06 +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 0e6762dd5f remove experimental module version tags
add per-file revision tags and 'show version files' CLI command


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 20:27:51 +00:00
Kevin P. Fleming 43cf15e339 add support for per-module version numbers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5862 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-06 18:31:29 +00:00
Kevin P. Fleming b364c1b953 clean up logic functions code and help texts
add IFTIME function (bug #4394, with mods)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5836 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-06-03 21:04:04 +00:00
Kevin P. Fleming 102c76a9c8 make IF dialplan function handle quoted strings properly (bug #4322, with API mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5750 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-20 16:30:13 +00:00
Mark Spencer f3cbf61cbf Add SET function (bug #4335)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5745 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 20:38:51 +00:00
Kevin P. Fleming 9ebf63696a minor doc fixes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5743 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 20:31:39 +00:00
Mark Spencer 9c83ec2f25 Cache result from database function reads (conf call)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5741 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-19 17:49:14 +00:00
Russell Bryant 85d809903b add DB_EXISTS function to be able to check if a key exists in the database
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5715 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-18 23:38:25 +00:00
Russell Bryant 376bc46af5 prevent copying of NULL (bug #4307)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-17 16:45:42 +00:00
Kevin P. Fleming 2638192439 add EVAL function, deprecate Eval application (bug #4277)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 23:53:11 +00:00
Kevin P. Fleming fa60672d58 add dialplan functions for Caller ID, language and timeouts (bug #4219, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5679 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-15 17:45:30 +00:00
Mark Spencer 49a7a4809a Removed unnecessary strip (bug #4181)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5608 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 18:11:55 +00:00
Mark Spencer b33a3aa3e2 Update groupcount / db documentation (bug #4200, etc)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5606 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 17:17:34 +00:00
Mark Spencer 0e57cede55 Convert app_db to function variables (bug #4201)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5604 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-08 17:08:25 +00:00
Russell Bryant cccca96058 add my name for the functions I wrote
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5593 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-07 05:33:44 +00:00
Mark Spencer cd6ad266b5 Build as a single executable, work around Makefile issue
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5590 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 17:39:18 +00:00
Kevin P. Fleming 7cd4ac0ee1 clean up file headers
restore appropriate copyrights for functions that came from files with copyrights listed


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5587 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 12:48:52 +00:00
Kevin P. Fleming 6ec28c9f98 correct build on platforms that require PIC objects (bug #4179)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 12:43:04 +00:00
Kevin P. Fleming 59bc293d15 ensure generated files are ignored by CVS
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 05:56:34 +00:00
Kevin P. Fleming f01e832eef add STRFTIME dialplan function (bug #4098, modified to use new funcs subdirectory)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 05:50:11 +00:00
Kevin P. Fleming 4d2537ae11 major re-work of dialplan functions, including:
- locking of functions list during registration/unregistration/searching
 - rename of function description structure to be consistent with the rest of the API
 - addition of 'desc' element to description structure, for detailed description (like applications)
 - addition of 'show function' CLI command to show function details
 - conversion of existing functions to use uppercase names to match policy
 - creation of new 'pbx_functions.so' module to contain standard 'builtin' functions
 - removal of all builtin functions from pbx.c and apps and placement into new 'funcs' directory


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5583 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2005-05-05 05:39:33 +00:00