aboutsummaryrefslogtreecommitdiffstats
path: root/funcs
AgeCommit message (Collapse)AuthorFilesLines
2007-03-19Oops, this should have been a %d all alongtilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59049 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-19Fix typo in help for CDR function. (issue #9295 reported by ajohnson)file1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59042 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-15Function works fine, but the documentation is backwards.tilghman1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58933 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-14Issue 9162 - pbx_substitute_variables_helper assumes the buffer is initializedtilghman1-1/+1
to all zeroes. This fixes a case where it wasn't. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58880 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-09add some inter-module dependencieskpfleming1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53780 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-01Fix the FIELDQTY function to not crash. (reported by blitzrage and Corydon ↵russell1-3/+3
on IRC) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53093 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-01Make func_strings build under dev mode. Didn't I do this today already in ↵file1-1/+1
the berkeley DB? git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53086 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-01Oops.tilghman1-1/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53077 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-01Merged revisions 53074 via svnmerge from tilghman1-5/+6
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: http://svn.digium.com/svn/asterisk/branches/1.4@53075 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-01Merged revisions 53069 via svnmerge from tilghman1-3/+6
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: http://svn.digium.com/svn/asterisk/branches/1.4@53070 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-18Add some more checks for option_debug before ast_log(LOG_DEBUG, ...) calls.qwell1-4/+8
Issue 8832, patch(es) by tgrman git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51265 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-17Fix some instances where when loading func_odbc, a double-free could occur.russell1-1/+6
Also, remove an unneeded error message. If the failure condition is actually a memory allocation failure, a log message will already be generated automatically. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51205 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-04Fix the REALTIME() dialplan function. ast_build_string() advances the stringrussell1-3/+3
pointer to the position to begin the next write into the buffer. So, this pointer can not be used to copy the contents of the string later. The beginning of the buffer must be saved. Interestingly enough, this code could not have ever worked. (Pointed out by Sebb on IRC, thanks!) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49388 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-25Merged revisions 48955 via svnmerge from russell1-1/+0
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r48955 | russell | 2006-12-25 00:19:48 -0500 (Mon, 25 Dec 2006) | 6 lines Fix an error introduced by copying and pasting the handling of the >= operator for the MATH function. If a single equal sign was used as an operator, the function would treat it is as if it were the >= operator. Now, it properly handles it as an invalid operator. (issue #8665, patch by tempest1) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48956 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-19use the proper variable type for these unixODBC API calls, eliminating ↵kpfleming1-2/+2
warnings on 64-bit platforms that use the 'new' 64-bit types for ODBC API calls git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48577 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-16instead of initializing the curl library every time the CURL() function is ↵kpfleming1-17/+31
invoked, do it only once per thread (this allows multiple calls to CURL() in the dialplan for a channel to run much more quickly, and also to re-use connections to the server) (thanks to JerJer for frequently complaining about this performance problem) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48513 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-11STRFTIME() does not actually require an argument (issue 8540)tilghman1-6/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48382 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-26might as well also document the raw values of the flag varsmurf1-2/+11
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48017 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-26A little bit of func_cdr documentation upgrade-- no bug# involved, although ↵murf1-0/+12
8221 may have inspired it. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48015 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-14Small documentation clarification for URIENCODE. (issue #8294 reported by ↵file1-2/+2
salaud) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47625 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-31Issue #8089 - Fix the ENUM support (picking one record by number). Thanks otmar!oej1-2/+6
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46631 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-14update the doc string for both AEL and extensions.conf users.murf1-2/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@45143 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-10CHANNEL() function sometime mix parameter and valuepcadach1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44809 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-10Lost of a bit of logic when this was simplified between 1.2 and 1.4 (Bug 8117)tilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44808 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-28Put in missing \ns on the end of ast_logs (issue #7936 reported by wojtekka)file1-4/+4
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43933 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20Constify the result of a config retrieval function, to avoid mutilation ↵tilghman1-1/+1
(issue 7983). git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43364 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-20move ODBC API into ast_ namespacekpfleming1-10/+10
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43311 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19Various updates from PCadach's chan_h323-live branchmattf1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43294 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-08As per discussion on bug 7862, the problem wasn't the fact that the ↵murf1-4/+6
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: http://svn.digium.com/svn/asterisk/trunk@42423 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-07With respect to bug 7862, the syntax and description are misleading to ↵murf1-2/+6
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: http://svn.digium.com/svn/asterisk/trunk@42224 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-05Missing field terminatortilghman1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42034 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-03 Some changes/fixes for func_curl. curl_global_init is only supposed to be ↵bweschke1-2/+13
called once, and if it returns non-zero, we need to give up on further executions with that instance. Additionally, let's set absolute timeout values for the CURL connections to try and prevent possible Zap (and possibly other channel tech) channel lockouts. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41900 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31everything that loads a config that needs a config file to runmogorman1-1/+1
now reports AST_MODULE_LOAD_DECLINE when loading if config file is not there, also fixed an error in res_config_pgsql where it had a non static function when it should. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41633 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31oops.russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41545 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-31The behavior of REGEX when it did not match was not defined by the docs, sorussell1-6/+6
define it to provide a result of "0" and change the code appropriately. (issue #7805) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41544 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-26GNU make already knows how to quietly ignore non-existent files in 'include' ↵kpfleming1-4/+1
directives git-svn-id: http://svn.digium.com/svn/asterisk/trunk@41209 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming24-396/+125
- 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: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-20Convert func_odbc to use the prepare_and_execute callback, which helps with ↵tilghman1-91/+38
a database reconnection issue (bug 7693) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40632 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-17Add 'l' option to CDR dialplan function which will cause it to pass the last ↵file1-2/+9
CDR record to getvar instead of the first. (issue #7689 reported by voipgate) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40226 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-15Move curl version test to autoconf scripttilghman1-11/+0
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37678 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-15more Makefile cleanup and consistency stuffkpfleming1-1/+4
don't reuse LIBS variable from top-level Makefile (oops) build Asterisk binary after subdirs (preparing for embedded modules) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37661 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06move rules file to prepare for generic rules filekpfleming1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37222 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-06Merged revisions 37143 via svnmerge from tilghman1-7/+6
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r37143 | tilghman | 2006-07-06 08:47:23 -0500 (Thu, 06 Jul 2006) | 2 lines Fix spelling/grammar (issue 7493) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@37144 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-03Don't attempt to run a regcomp if we haven't even parsed arguments correctlytilghman1-0/+5
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36777 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-01Revert the previous change to FILTER and fix the embedded documentation instead.tilghman1-8/+8
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36543 f38db490-d61c-443f-a65b-d21fe96a405b
2006-07-01fix the parsing of options in the FILTER function to match the documentation.russell1-1/+1
(issue #7465) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36504 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-25use new (separate) dependencies file from menuselectkpfleming1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35895 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-24The Eurostar Commit! (it's amazing how much work you can get done on a 150 ↵kpfleming1-44/+2
minute train ride from Paris to London <G>) support the new location for zaptel.h and tonezone.h use the dependency information output by menuselect to build Makefile rules for each module for header files and libraries combine the common rules into a top-level Makefile.rules file remove all (now) unnecessary stuff from subdir Makefiles change translator API so that the newpvt() callback returns an int instead of a pointer (it no longer allocates memory) alphabetize --with-<foo> options in configure script enhance Net-SNMP support in configure script to provide a --with-netsnmp option fix support for --with-pq so that if pg-config is not found when --with-pq is specified, an error will be generated add 'optional package' usage to modules now that menuselect can output it allow res_snmp to build by default, since the new loader changes coming soon will solve the function naming problem (and users can disable it via menuselect anyway) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35832 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-23remove various commands that remove old modules since they have been there arussell1-1/+0
sufficient amount of time. Even if they happen to be still present, the main Makefile will spit out a huge warning telling the user that modules not installed by that run of "make install" are present in the modules directory. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35605 f38db490-d61c-443f-a65b-d21fe96a405b
2006-06-22- convert the 'uninstall' target to use separate targets to process eachrussell1-1/+1
subdirectory instead of a for loop - remove the FORCE target from the main Makefile and add the couple places I used it to the .PHONY target. .PHONY does the same thing and is a built-in more efficient way of doing it. - add a bunch more targets to .PHONY ... git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35503 f38db490-d61c-443f-a65b-d21fe96a405b