Tilghman Lesher
dccfa36f8e
Force ast_mktime() to check for DST, since strptime(3) does not.
...
(Closes issue #12374 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@113117 65c4cc65-6c06-0410-ace0-fbb531ad65f3
17 years ago
Tilghman Lesher
1dde474916
Missing braces.
...
(closes issue #11912 )
Reported by: dimas
Patches:
sprintf.patch uploaded by dimas (license 88)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@102214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
18eafd3074
Add autoservice to several more functions which might delay in their responses.
...
Also, make sure that func_odbc functions have a channel on which to set
variables.
Reported by russell
Fixed by tilghman
Closes issue #11099
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@87262 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
e21412d53d
Merged revisions 66537 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r66537 | tilghman | 2007-05-29 16:49:35 -0500 (Tue, 29 May 2007) | 2 lines
If the value of a variable passed to FIELDQTY is blank, then FIELDQTY should return 0, not 1.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@66538 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
7246207bd8
Oops, this should have been a %d all along
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@59049 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Tilghman Lesher
2fd66654ac
Issue 9162 - pbx_substitute_variables_helper assumes the buffer is initialized
...
to all zeroes. This fixes a case where it wasn't.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@58880 65c4cc65-6c06-0410-ace0-fbb531ad65f3
18 years ago
Russell Bryant
51bcb9d3be
Fix the FIELDQTY function to not crash. (reported by blitzrage and Corydon on IRC)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53093 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
290fd87817
Make func_strings build under dev mode. Didn't I do this today already in the berkeley DB?
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53086 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
86f51691c5
Oops.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53077 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
a94d8f5bd8
Merged revisions 53074 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r53074 | tilghman | 2007-02-01 14:07:35 -0600 (Thu, 01 Feb 2007) | 2 lines
Bug 8965 - Allow FIELDQTY to work with both variables and dialplan functions
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53075 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
7e0a469bda
Merged revisions 53069 via svnmerge from
...
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r53069 | tilghman | 2007-02-01 13:13:53 -0600 (Thu, 01 Feb 2007) | 2 lines
No wonder FIELDQTY doesn't work with functions... the documentation in pbx.c was wrong
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@53070 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Jason Parker
76eb4e76dc
Add some more checks for option_debug before ast_log(LOG_DEBUG, ...) calls.
...
Issue 8832, patch(es) by tgrman
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@51265 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
fda0dce406
STRFTIME() does not actually require an argument (issue 8540)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48382 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42423 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42224 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
badabb5bb9
oops.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41545 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
42fc890acc
The behavior of REGEX when it did not match was not defined by the docs, so
...
define it to provide a result of "0" and change the code appropriately.
(issue #7805 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
0a27d8bfe5
merge new_loader_completion branch, including (at least):
...
- restructured build tree and makefiles to eliminate recursion problems
- support for embedded modules
- support for static builds
- simpler cross-compilation support
- simpler module/loader interface (no exported symbols)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40722 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
e3482f7f38
Don't attempt to run a regcomp if we haven't even parsed arguments correctly
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Tilghman Lesher
2465fd611c
Revert the previous change to FILTER and fix the embedded documentation instead.
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36543 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Russell Bryant
df2223416d
fix the parsing of options in the FILTER function to match the documentation.
...
(issue #7465 )
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36504 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
472c1ca282
simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32846 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Joshua Colp
e08dc08ae2
Add SPRINTF dialplan function made by the ever insaneful Corydon (issue #7078 reported by Corydon76)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@28016 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Luigi Rizzo
e43bc6634d
This rather large commit changes the way modules are loaded.
...
As partly documented in loader.c and include/asterisk/module.h,
modules are now expected to return all of their methods and flags
into a structure 'mod_data', and are normally loaded with RTLD_NOW
| RTLD_LOCAL, so symbols are resolved immediately and conflicts
should be less likely. Only in a small number of cases (res_*,
typically) modules are loaded RTLD_GLOBAL, so they can export
symbols.
The core of the change is only the two files loader.c and
include/asterisk/module.h, all the rest is simply adaptation of the
existing modules to the new API, a rather mechanical (but believe
me, time and finger-consuming!) process whose detail you can figure
out by svn diff'ing any single module.
Expect some minor compilation issue after this change, please
report it on mantis http://bugs.digium.com/view.php?id=6968
so we collect all the feedback in one place.
I am just sorry that this change missed SVN version number 20000!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@18552 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Matt O'Gorman
5f446b24ea
minor fixes to commit 10934 from bug#6257
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10959 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Matt O'Gorman
a4734960e7
added function QUOTE into strings, which allows
...
for quoted strings, and escapes them properly.
slightly modified patch from bug #6257
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10934 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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
...
update pbx_dundi to use ast_get_time_t
eliminate some compiler warnings
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10871 65c4cc65-6c06-0410-ace0-fbb531ad65f3
19 years ago
Kevin P. Fleming
c5ff2c4f42
add KEYPADHASH dialplan function (issue #6441 )
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
4662d58b01
add API function for parsing strings to time_t (issue #6320 , with mods)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10105 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
96bf384e7d
major dialplan functions update
...
deprecate LANGUAGE() and MUSICCLASS(), in favor of CHANNEL()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9674 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Kevin P. Fleming
a38a7eec61
build function modules independently (no more pbx_functions.so)
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Tilghman Lesher
7d897634dc
Bug 6262 - New function STRPTIME
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8428 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
4414f45393
on this pass, only remove duplicate log messages
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8403 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
9fa6eb5e07
revert my pass through the tree to remove checks of the result of ast_strdupa
...
(revisions 8378 through 8381)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Russell Bryant
2499926195
remove useless checks of the result of ast_strdupa
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8380 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Tilghman Lesher
109b5baa8d
Argh, another ERROR that should have been DEBUG
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8104 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Tilghman Lesher
7f28989616
Change a debugging message committed with the wrong level
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8103 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
BJ Weschke
fa07ae94ec
More code optimization with the new argument macros #6253
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8099 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
Tilghman Lesher
2dec3747df
Clarify description of ARRAY function
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8080 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
Tilghman Lesher
340f5b67de
Bug 5906 - ARRAY dialplan function
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
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
20 years ago
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
20 years ago
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
20 years ago
Kevin P. Fleming
a0a9769616
issue #5648
...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7011 65c4cc65-6c06-0410-ace0-fbb531ad65f3
20 years ago
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
20 years ago
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
20 years ago