Commit Graph

70 Commits (9ff28fd6e8829e87629aeceb51b14c73c54f3b41)

Author SHA1 Message Date
Matthias Nick c179867fb4 changed the prototype definition of csv_quote
16 years ago
Matthias Nick ebba623307 added a new dialplan function 'CSV_QUOTE' and changed the cdr_custom.sample.conf
16 years ago
Matthias Nick e66c485660 check bounds - prevents for buffer overflow
16 years ago
Tilghman Lesher 63cc189747 AST-2009-005
16 years ago
Tilghman Lesher 5dbbf21212 Force an error if a blank is passed to QUOTE (because the documentation states the argument is not optional).
16 years ago
Tilghman Lesher 399bd49b7d Revision 189537 was supposed to make 1.4 more correct. Instead, it broke func_odbc. Reverting.
16 years ago
Tilghman Lesher 591dd05d9e Add a workaround for func_odbc/ARRAY() for problems that occur with certain special characters.
16 years ago
Russell Bryant 32fff369e7 Fix some observed slowdowns in dialplan processing.
17 years ago
Sean Bright a300fefab6 Since passing \0 as the second argument to strchr is valid (and will
17 years ago
Tilghman Lesher e647244fe8 Additional check for more string specifiers than arguments.
17 years ago
Tilghman Lesher dccfa36f8e Force ast_mktime() to check for DST, since strptime(3) does not.
17 years ago
Tilghman Lesher 1dde474916 Missing braces.
17 years ago
Tilghman Lesher 18eafd3074 Add autoservice to several more functions which might delay in their responses.
18 years ago
Tilghman Lesher e21412d53d Merged revisions 66537 via svnmerge from
18 years ago
Tilghman Lesher 7246207bd8 Oops, this should have been a %d all along
18 years ago
Tilghman Lesher 2fd66654ac Issue 9162 - pbx_substitute_variables_helper assumes the buffer is initialized
18 years ago
Russell Bryant 51bcb9d3be Fix the FIELDQTY function to not crash. (reported by blitzrage and Corydon on IRC)
19 years ago
Joshua Colp 290fd87817 Make func_strings build under dev mode. Didn't I do this today already in the berkeley DB?
19 years ago
Tilghman Lesher 86f51691c5 Oops.
19 years ago
Tilghman Lesher a94d8f5bd8 Merged revisions 53074 via svnmerge from
19 years ago
Tilghman Lesher 7e0a469bda Merged revisions 53069 via svnmerge from
19 years ago
Jason Parker 76eb4e76dc Add some more checks for option_debug before ast_log(LOG_DEBUG, ...) calls.
19 years ago
Tilghman Lesher fda0dce406 STRFTIME() does not actually require an argument (issue 8540)
19 years ago
Steve Murphy 4c937339e5 As per discussion on bug 7862, the problem wasn't the fact that the documentation differed from behavior, but rather that users are used to REGEX having that space after the double quote in 1.2.x. So, in keeping with history, I investigated a little deeper, and discovered that the change in behavior was due to the modification of the function to use the AST_DECLARE_APP_ARGS and AST_NONSTANDARD_APP_ARGS() to parse the args. The code to skip the blank was left out. So, what I did was add code to throw out the first blank (space or tab) after the double quote, IF IT IS THERE. If not, nothing is done.Verbage is added to the function description saying that the space is optional, and skipped if it is there. If a space is desired, then the documentation advises putting two spaces there. This should make it compatible for 1.2 users, and not mess up new users who are used to using it with no space. It WILL mess up new users who WANT a space. Hopefully, they will double check the doc strings for this func and add the extra space. Hopefully, this class of new user is very small.
19 years ago
Steve Murphy a7b5ef30e7 With respect to bug 7862, the syntax and description are misleading to users. the syntax included a space after the double quotes between the regex and the data to match. I removed this from the function doc, and added some verbage to make this crystal clear, I hope.
19 years ago
Russell Bryant badabb5bb9 oops.
19 years ago
Russell Bryant 42fc890acc The behavior of REGEX when it did not match was not defined by the docs, so
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago
Tilghman Lesher e3482f7f38 Don't attempt to run a regcomp if we haven't even parsed arguments correctly
19 years ago
Tilghman Lesher 2465fd611c Revert the previous change to FILTER and fix the embedded documentation instead.
19 years ago
Russell Bryant df2223416d fix the parsing of options in the FILTER function to match the documentation.
19 years ago
Kevin P. Fleming 472c1ca282 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
19 years ago
Joshua Colp e08dc08ae2 Add SPRINTF dialplan function made by the ever insaneful Corydon (issue #7078 reported by Corydon76)
19 years ago
Luigi Rizzo e43bc6634d This rather large commit changes the way modules are loaded.
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
Matt O'Gorman 5f446b24ea minor fixes to commit 10934 from bug#6257
19 years ago
Matt O'Gorman a4734960e7 added function QUOTE into strings, which allows
19 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
19 years ago
Kevin P. Fleming c5ff2c4f42 add KEYPADHASH dialplan function (issue #6441)
19 years ago
Kevin P. Fleming 4662d58b01 add API function for parsing strings to time_t (issue #6320, with mods)
19 years ago
Kevin P. Fleming 96bf384e7d major dialplan functions update
20 years ago
Kevin P. Fleming a38a7eec61 build function modules independently (no more pbx_functions.so)
20 years ago
Tilghman Lesher 7d897634dc Bug 6262 - New function STRPTIME
20 years ago
Russell Bryant 4414f45393 on this pass, only remove duplicate log messages
20 years ago
Russell Bryant 9fa6eb5e07 revert my pass through the tree to remove checks of the result of ast_strdupa
20 years ago
Russell Bryant 2499926195 remove useless checks of the result of ast_strdupa
20 years ago
Tilghman Lesher 109b5baa8d Argh, another ERROR that should have been DEBUG
20 years ago
Tilghman Lesher 7f28989616 Change a debugging message committed with the wrong level
20 years ago
BJ Weschke fa07ae94ec More code optimization with the new argument macros #6253
20 years ago
Tilghman Lesher 2dec3747df Clarify description of ARRAY function
20 years ago