Commit Graph

135 Commits (914c8e28c1bb99b8217f93b51ce8f59870350fb6)

Author SHA1 Message Date
Kevin P. Fleming e6b2e9a750 Const-ify the world (or at least a good part of it)
16 years ago
Tilghman Lesher e346cbb9bc Second result should not contain data from the first result.
16 years ago
Russell Bryant cba19c8a67 Convert the ast_channel data structure over to the astobj2 framework.
16 years ago
Tilghman Lesher 61e241a5d1 If the first column is empty, output a delimiter anyway.
16 years ago
Tilghman Lesher a1f583177e ODBC transaction support
16 years ago
Tilghman Lesher 4ac9617be5 Add assertions in the quest to track down a refcount leak.
16 years ago
Kevin P. Fleming 1c2911f5a1 ast_str_SQLGetData is *not* part of the ast_str API, it's part of the ast_odbc API and just happens to use an ast_str as the buffer; move all of it to res_odbc.c and res_odbc.h, renaming appropriately
17 years ago
Kevin P. Fleming 9a7efae8fd remove the PBX_ODBC logic from the configure script, and add GENERIC_ODCB logic that includes copying the relevant LIB and INCLUDE data from either UnixODBC or iODBC, based on which was found; if both were found, prefer UnixODBC
17 years ago
Tilghman Lesher c8223fc957 Merge ast_str_opaque branch (discontinue usage of ast_str internals)
17 years ago
Eliel C. Sardanons ec28f57c41 Avoid allocating memory for a thread that don't need it. Also, this memory was not being freed until the
17 years ago
Tilghman Lesher 5434edd7ab Two bugs relating to colnames found by Marquis42 on #asterisk-dev
17 years ago
Kevin P. Fleming 448562af93 improve configure script to remember the previous value of each dependency in build_tools/menuselect-deps, so that (once it has been written) menuselect can use this information to warn the user when a previously met dependency is no longer met
17 years ago
Tilghman Lesher c9b2491e40 Should have passed the string pointer, not the ast_str structure.
17 years ago
Kevin P. Fleming bd4eb070f3 bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch, and add the ones needed for all the new code here too
17 years ago
Russell Bryant 5b168ee34b Merge changes from team/group/appdocsxml
17 years ago
Tilghman Lesher 46abb39ca2 Failover for func_odbc, allowing an INSERT query to be performed when the UPDATE query initially
17 years ago
Terry Wilson c74e85a23a allow to compile under --enable-dev-mode (gcc didn't actually complain when I was using ccache...)
17 years ago
Tilghman Lesher a45c3a8729 Simplify some nested functions, as suggested by Russell on -dev
17 years ago
Tilghman Lesher 107d4284ae Added debugging CLI functions
17 years ago
Tilghman Lesher 1f0433327f Permit data fields to contain more than 255 characters.
17 years ago
Tilghman Lesher 8460fd9bfd Only set buf to blank before the goto.
17 years ago
Michiel van Baak 4560279c69 All ODBC parts can now use either unixodbc or iodbc.
17 years ago
Tilghman Lesher 63b165dbb9 Merged revisions 146799 via svnmerge from
17 years ago
Tilghman Lesher cf06228a2f Permit the syntax and synopsis fields to be set (for func_odbc).
17 years ago
Tilghman Lesher 08af5bb312 Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating
17 years ago
Sean Bright 16f8480882 Continue merging in changes from resolve-shadow-warnings. funcs/ this time.
17 years ago
Tilghman Lesher 475ee479e8 Use a dynamic buffer for rendered SQL, instead of hardcoding 2048 bytes. Also,
17 years ago
Kevin P. Fleming 7df8b8b848 make datastore creation and destruction a generic API since it is not really channel related, and add the ability to add/find/remove datastores to manager sessions
17 years ago
Tilghman Lesher 8718878490 Merged revisions 106552 via svnmerge from
17 years ago
Tilghman Lesher bf92cca5fa Use the readhandle for reads (closes issue #12069)
17 years ago
Tilghman Lesher f124988a35 Convert func_odbc to use SQLExecDirect for speed
18 years ago
Mark Michelson 5107c5474c Change instances of AST_NONSTANDARD_APP_ARGS(foo, bar, ',') to AST_STANDARD_APP_ARGS(foo, bar)
18 years ago
Luigi Rizzo 7e8835e0d7 remove another set of redundant #include "asterisk/options.h"
18 years ago
Luigi Rizzo 9335ace850 another bunch of include removals (errno.h and asterisk/logger.h)
18 years ago
Luigi Rizzo d82a631f9c more removal of duplicate #include lines
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Steve Murphy 63f2f04cf4 This commits the performance mods that give the priority processing engine in the pbx, a 25-30% speed boost. The two updates used, are, first, to merge the ast_exists_extension() and the ast_spawn_extension() where they are called sequentially in a loop in the code, into a slightly upgraded version of ast_spawn_extension(), with a few extra args; and, second, I modified the substitute_variables_helper_full, so it zeroes out the byte after the evaluated string instead of demanding you pre-zero the buffer; I also went thru the code and removed the code that zeroed this buffer before every call to the substitute_variables_helper_full. The first fix provides about a 9% speedup, and the second the rest. These figures come from the 'PIPS' benchmark I describe in blogs, conf. reports, etc.
18 years ago
Tilghman Lesher 64a0a9aa2c Merged revisions 87262 via svnmerge from
18 years ago
Russell Bryant 5eb7cbef42 use ast_atomic_fetchadd_int for incrementing resultcount
18 years ago
Tilghman Lesher 56b9568164 Don't reload a configuration file if nothing has changed.
18 years ago
Tilghman Lesher 20bbd09de3 Mostly cleanup of documentation to substitute the pipe with the comma, but a few other formatting cleanups, too.
18 years ago
Russell Bryant f8483a0d04 Do a massive conversion for using the ast_verb() macro
18 years ago
Tilghman Lesher 55b1ee298e Merge the dialplan_aesthetics branch. Most of this patch simply converts applications
18 years ago
Steve Murphy 0e969271ae After some study, thought, comparing, etc. I've backed out the previous universal mod to make ast_flags a 64 bit thing. Instead, I added a 64-bit version of ast_flags (ast_flags64), and 64-bit versions of the test-flag, set-flag, etc. macros, and an app_parse_options64 routine, and I use these in app_dial alone, to eliminate the 30-option limit it had grown to meet. There is room now for 32 more options and flags. I was heavily tempted to implement some of the other ideas that were presented, but this solution does not intro any new versions of dial, doesn't have a different API, has a minimal/zero impact on code outside of dial, and doesn't seriously (I hope) affect the code structure of dial. It's the best I can think of right now. My goal was NOT to rewrite dial. I leave that to a future, coordinated effort.
18 years ago
Steve Murphy 8a7732f067 via 10206, I have added an option (e) to Dial to allow the h exten to get run on peer. Had to upgrade ast_flag stuff to 64 bits to do this.
18 years ago
Russell Bryant 43658278ff Merged revisions 69702 via svnmerge from
18 years ago
Tilghman Lesher 9d05ff8ed5 Issue 9869 - replace malloc and memset with ast_calloc, and other coding guidelines changes
18 years ago
Tilghman Lesher 7216b96319 Merged revisions 66919 via svnmerge from
18 years ago
Tilghman Lesher e9251f42df Issue 9799 - Multirow results for func_odbc
18 years ago
Kevin P. Fleming e758ef09b3 Merged revisions 53779-53781 via svnmerge from
19 years ago
Tilghman Lesher 777a51ad5a Fix compiler warnings
19 years ago
Olle Johansson 0ddb38ddee Doxygen update
19 years ago
Russell Bryant 445269f001 Merged revisions 51205 via svnmerge from
19 years ago
Kevin P. Fleming 37182c873e finish const-ifying ast_func_read()
19 years ago
Joshua Colp f19c6f66aa Initialize obj pointers to NULL. Gets rid of two compiler warnings.
19 years ago
Tilghman Lesher 1e1fd3c3e0 Integrate functionality tested on svncommunity users back into trunk
19 years ago
Kevin P. Fleming 518f25f65c Merged revisions 48577 via svnmerge from
19 years ago
Tilghman Lesher 70af28270d Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
19 years ago
Kevin P. Fleming 32d119746c move ODBC API into ast_ namespace
19 years ago
Tilghman Lesher bfef0a23ff Missing field terminator
19 years ago
Matt O'Gorman 05a695af72 everything that loads a config that needs a config file to run
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago
Tilghman Lesher 6fec811743 Convert func_odbc to use the prepare_and_execute callback, which helps with a database reconnection issue (bug 7693)
19 years ago
Kevin P. Fleming 472c1ca282 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
19 years ago
Tilghman Lesher b68fa7a8f2 Should use the named handle, not one hardcoded
19 years ago
Mark Spencer 70defe19fe Lets not commit things that cause Asterisk to break when config files aren't present.
19 years ago
Tilghman Lesher 9e81cc3e0c Escaping commas within fields isn't always desireable.
19 years ago
Tilghman Lesher 912f9f9dc7 Argument macro janitor for func_odbc, fixes #7171
19 years ago
BJ Weschke 3e2079e46c Fix output delimiters and add prefix parameter to func_odbc #7025 (Corydon76)
19 years ago
Kevin P. Fleming 574e14cbea Thanks to the fine work of Russell Bryant and Dancho Lazarov, we now have autoconf and menuselect tools for Asterisk!
19 years ago
Russell Bryant 501ac5189c update res_odbc to support pooled connections
19 years ago
Tilghman Lesher b8317169d0 Compatibility fixes for loader changes
19 years ago
Luigi Rizzo e43bc6634d This rather large commit changes the way modules are loaded.
19 years ago
Tilghman Lesher a55f8848bf Bugs 6883, 6930: compiler warnings
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
Tilghman Lesher 516d690aca Some sick individuals use SQL queries longer than 512 bytes in the dialplan. ;-)
19 years ago
Kevin P. Fleming 96bf384e7d major dialplan functions update
20 years ago
Kevin P. Fleming e42c6c4f9e set standard properties on all non-binary files
20 years ago
Kevin P. Fleming a38a7eec61 build function modules independently (no more pbx_functions.so)
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
Russell Bryant a725468381 update doxygen docs to specify authors
20 years ago
Tilghman Lesher dd161bec3b Add SQL_ESC to allow single ticks to be escaped
20 years ago
Tilghman Lesher 28af98ae95 Bug 5055 - Simple SQL commands from the dialplan
20 years ago