Commit Graph

374 Commits (115937b7a6a2bc5d88c39836e98ffed073204a08)

Author SHA1 Message Date
Tilghman Lesher 56b9568164 Don't reload a configuration file if nothing has changed.
18 years ago
Russell Bryant 047dbef446 Store custom device states in astdb so that they will persist a restart. As a
18 years ago
Russell Bryant e113d36aa4 Merge a set of device state improvements from team/russell/events.
18 years ago
Joshua Colp 602198c402 Merge audiohooks branch into trunk. This is a new API for developers to listen and manipulate the audio going through a channel.
18 years ago
Tilghman Lesher 3257acb922 Add some documentation detailing an aspect of dialplan functions, as requested by Russell
18 years ago
Tilghman Lesher ce26bea24a Add func_lock, which creates dialplan mutexes, and note that the Macro apps are now deprecated.
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
Tilghman Lesher 81bc1d7af5 Merge in ast_strftime branch, which changes timestamps to be accurate to the microsecond, instead of only to the second
18 years ago
Joshua Colp 0772f62be7 Clean up func_curl a bit.
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
Joshua Colp e498488bde For my next trick I will make it so dialplan functions no longer need to call ast_module_user_add and ast_module_user_remove. These are now called in the ast_func_read and ast_func_write functions outside of the module.
18 years ago
Joshua Colp 96a646734f It is no longer required for each module that deals with a channel to call ast_module_user_hangup_all in it's unload function. The loader will automatically perform this action for it.
18 years ago
Russell Bryant 5a32541671 Cast the 2nd argument to iconv() to a void *, as some systems define it as a
18 years ago
Tilghman Lesher ba857cc8a9 Merged revisions 73985 via svnmerge from
18 years ago
Dwayne M. Hubbard ae232491de Added AND, OR, and XOR bitwise operations to MATH for issue 9891, thanks jcmoore
18 years ago
Joshua Colp 1961b57705 Add rtpdest option to SIP CHANNEL() dialplan function to return the IP address and port that RTP (be it audio/video/text) is going to.
18 years ago
Russell Bryant 43658278ff Merged revisions 69702 via svnmerge from
18 years ago
Russell Bryant 055d82cbce Add a massive set of changes for converting to use the ast_debug() macro.
18 years ago
Jason Parker f593698f79 Merged revisions 69259 via svnmerge from
18 years ago
Joshua Colp 679733c52a Use read/write lock based lists for group counting.
18 years ago
Russell Bryant 1d57ccb6f7 Fix a bunch of doxygen errors and document more things
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 fcc3aba331 Merged revisions 67162 via svnmerge from
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
Tilghman Lesher 1236ed3214 Issue 9477 - Improve menuselect labels
18 years ago
Tilghman Lesher 2baca1b2c5 Merged revisions 66538 via svnmerge from
18 years ago
Tilghman Lesher 1e9c6c4a70 Shorten description to a much more reasonable length
18 years ago
Tilghman Lesher b6b254b733 Issue 7021 - Add ICONV function for converting between character sets
18 years ago
Dwayne M. Hubbard 585129cfea Merged revisions 65866 via svnmerge from
18 years ago
Russell Bryant e090c28540 Add two new dialplan functions: ENUMQUERY and ENUMRESULT. These functions
18 years ago
Tilghman Lesher d4de739706 Issue 9716 - doc/enum.txt no longer exists in trunk
18 years ago
Joshua Colp 8b2b3e172b Merged revisions 61805 via svnmerge from
18 years ago
Russell Bryant b94378b5e6 Merge changes from team/russell/iax2_osp
18 years ago
Tilghman Lesher b230918437 Merged revisions 61681 via svnmerge from
18 years ago
Russell Bryant 0df4004ee5 Add a minor loop optimization to the custom device state callback. Once the
18 years ago
Russell Bryant 7c884d76ea Merged revisions 59256 via svnmerge from
18 years ago
Tilghman Lesher 03aa8f7b8f Merged revisions 59049 via svnmerge from
18 years ago
Tilghman Lesher cb8b3e1efb Merged revisions 58933 via svnmerge from
18 years ago
Tilghman Lesher 4e8f978287 Merged revisions 58880 via svnmerge from
18 years ago
Olle Johansson bc01e39174 Creating new doxygen macro "\extref" to create page that lists
18 years ago
Russell Bryant f60efe347a This introduces a new dialplan function, DEVSTATE, which allows you to do some
19 years ago
Tilghman Lesher 63cc6e10b4 Formatting fixes
19 years ago
Kevin P. Fleming e758ef09b3 Merged revisions 53779-53781 via svnmerge from
19 years ago
Tilghman Lesher c59714fbfc Add CALLERPRES dialplan function and deprecate SetCallerPres application
19 years ago
Tilghman Lesher 777a51ad5a Fix compiler warnings
19 years ago
Russell Bryant e66a64fa71 Merged revisions 53093 via svnmerge from
19 years ago
Tilghman Lesher 0e209d5e1c Merged revisions 53075 via svnmerge from
19 years ago
Tilghman Lesher e5304e54cc Merged revisions 53070 via svnmerge from
19 years ago
Olle Johansson 0ddb38ddee Doxygen update
19 years ago
Jason Parker 5d25265403 Merged revisions 51265 via svnmerge from
19 years ago
Russell Bryant 445269f001 Merged revisions 51205 via svnmerge from
19 years ago
Joshua Colp 3c1b9fc508 One const, two const. Let's stick with everything else - one const. Plus older versions of GCC don't support double const either.
19 years ago
Tilghman Lesher c4c2c546da When calling the Realtime app more than once, unset fields which were
19 years ago
Tilghman Lesher 785483f304 Modifications to allow the output of SHELL() to be split per line (Issue 8676)
19 years ago
Tilghman Lesher 6b13c4d7d4 Add function to execute a shell command and return the output (Issue 8676)
19 years ago
Kevin P. Fleming 37182c873e finish const-ifying ast_func_read()
19 years ago
Tilghman Lesher 551fbf5007 Tweak description text to match new functionality (Issue 7959)
19 years ago
Tilghman Lesher ee8b36228a Add power and right/left shift functions (Issue 7959)
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
Luigi Rizzo 09f75aa6dc rename the structs struct tone_zone_sound and struct tone_zone
19 years ago
Russell Bryant b93f1f3e37 Merged revisions 48956 via svnmerge from
19 years ago
Russell Bryant 527dbe399e Simplify the if statements used to check to see if the argument was "num"
19 years ago
Kevin P. Fleming 518f25f65c Merged revisions 48577 via svnmerge from
19 years ago
Luigi Rizzo 7c5f06ddcd replace ast_build_string() with ast_str_*().
19 years ago
Kevin P. Fleming a2ec1d322c update to use trunk's version of the threadstorage API
19 years ago
Kevin P. Fleming b2bd05ee83 Merged revisions 48513 via svnmerge from
19 years ago
Tilghman Lesher 496d3e72f2 Merged revisions 48382 via svnmerge from
19 years ago
Luigi Rizzo 1b372d1b0f remove an extra comma in an initializer
19 years ago
Steve Murphy 17eba0de3d Merged revisions 48017 via svnmerge from
19 years ago
Steve Murphy 8ccbe1dc56 Merged revisions 48015 via svnmerge from
19 years ago
Paul Cadach fc58bec502 Merged revisions 44809 via svnmerge from
19 years ago
Joshua Colp 7d1771b575 Merged revisions 47625 via svnmerge from
19 years ago
Olle Johansson f003df1315 Issue #80898 - Restoring func_enum (otmar)
19 years ago
Olle Johansson 30deec45f8 show, list, view, display... whatever.
19 years ago
Olle Johansson 11d00cac15 Adding dialplan function IFMODULE, so you can create dialplans that handle
19 years ago
Steve Murphy 647704aca5 This new function, VERSION(), created via bug report 8176, may help dialplan programmers in the future. In the meantime, they can use the algorithm I outline on the bug report notes; If anyone invents something better, I'd hope they post it
19 years ago
Steve Murphy 6bbd50bce2 update the doc string for both AEL and extensions.conf users.
19 years ago
Tilghman Lesher 9ca7c56c74 Merged revisions 44808 via svnmerge from
19 years ago
Joshua Colp f54fc75796 Timeout values are in seconds (issue #7122 reported by jmls)
19 years ago
Paul Cadach 500353e095 Extend CALLERID() function for "pres" and "ton" values
19 years ago
Matt O'Gorman ae8cc3e18b bug #8076 check option_debug before printing to debug channel.
19 years ago
Joshua Colp 29d27bfe0d Merged revisions 43933 via svnmerge from
19 years ago
Tilghman Lesher fc88db013e Remove deprecated apps and funcs
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
Matthew Fredrickson 33ddb53663 Various updates from PCadach's chan_h323-live branch
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
Tilghman Lesher bfef0a23ff Missing field terminator
19 years ago
BJ Weschke f1b43be465 Some changes/fixes for func_curl. curl_global_init is only supposed to be 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.
19 years ago
Matt O'Gorman 05a695af72 everything that loads a config that needs a config file to run
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 d12f54f90b GNU make already knows how to quietly ignore non-existent files in 'include' directives
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
Joshua Colp 08b23695b4 Add 'l' option to CDR dialplan function which will cause it to pass the last CDR record to getvar instead of the first. (issue #7689 reported by voipgate)
19 years ago
Tilghman Lesher d99e7d4f8e Move curl version test to autoconf script
19 years ago
Kevin P. Fleming 000ba592b2 more Makefile cleanup and consistency stuff
19 years ago
Kevin P. Fleming 748431f7b6 move rules file to prepare for generic rules file
19 years ago
Tilghman Lesher ebc9c3765b Merged revisions 37143 via svnmerge from
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 a579371f43 use new (separate) dependencies file from menuselect
19 years ago
Kevin P. Fleming e61d3d91f3 The Eurostar Commit! (it's amazing how much work you can get done on a 150 minute train ride from Paris to London <G>)
19 years ago
Russell Bryant 53a56fcfe7 remove various commands that remove old modules since they have been there a
19 years ago
Russell Bryant 48ae9f0d4f - convert the 'uninstall' target to use separate targets to process each
19 years ago
Russell Bryant 55e8a60363 - specify that 'depend' is a .PHONY target
19 years ago
Russell Bryant 9db0520ff9 - specify that 'all' is a .PHONY target
19 years ago
Russell Bryant c399a06450 add the 'clean', 'clean-depend', and 'dist-clean' targets as .PHONY targets
19 years ago
Russell Bryant 9f2a6516cf don't blow up in the sub Makefiles if menuselect.makeopts is not present. This
19 years ago
Kevin P. Fleming 472c1ca282 simplify autoconfig include mechanism (make tholo happy he can use lint again :-)
19 years ago
Russell Bryant 503f99e2e8 remove the need to have to re-run make after a default menuselect.makeopts
19 years ago
Kevin P. Fleming e856010714 use module names, not file names, in menuselect
19 years ago
Olle Johansson 7a60aff3b1 Make tonezone writeable in CHANNEL() (from my old func_tonezone.c)
19 years ago
Luigi Rizzo 7ea0f04a80 this file contained the body twice, so remove the second instance.
19 years ago
Tilghman Lesher 92314f96c5 Deprecate SetGlobalVar, replacing it with a dialplan function
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
Russell Bryant d2872c914d - mark some applications deprecated that already have replacements
19 years ago
Russell Bryant a96606b329 add DB_DELETE function for the common case of retrieving and deleting a key in
19 years ago
Tilghman Lesher 9e81cc3e0c Escaping commas within fields isn't always desireable.
19 years ago
Russell Bryant 3d022d073a fix the build of func_realtime and aelparse with MTX_PROFILE enabled
19 years ago
Joshua Colp e08dc08ae2 Add SPRINTF dialplan function made by the ever insaneful Corydon (issue #7078 reported by Corydon76)
19 years ago
Tilghman Lesher 912f9f9dc7 Argument macro janitor for func_odbc, fixes #7171
19 years ago
Russell Bryant 8047e8067e fix bogus patch to allow setting the CDR amaflags. (The original patch in
19 years ago
Matt O'Gorman dd0ee63009 allow func_cdr to set amaflags patch provided by
19 years ago
Tilghman Lesher 9fd91e0829 Merged revisions 27051 via svnmerge from
19 years ago
Russell Bryant 932c5c7fd7 use the channel lock wrappers (issue #7120, Mithraen)
19 years ago
Russell Bryant 04ecb29d03 remove almost all of the checks of the result from ast_strdupa() or alloca().
19 years ago
BJ Weschke 3e2079e46c Fix output delimiters and add prefix parameter to func_odbc #7025 (Corydon76)
19 years ago
BJ Weschke a7b1476058 Provide the ability to adjust txgain/rxgain on a channel level via the CHANNEL() function
19 years ago
Russell Bryant a21507a60a suppress a compiler warning
19 years ago
Luigi Rizzo 2d5900391b remove variable declarations in the middle of two blocks.
19 years ago
BJ Weschke a9281a1142 Introducing the REALTIME() dialplan function
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
Luigi Rizzo 652ccf5037 more NULL "" equivalence in CLI fields.
19 years ago
Russell Bryant 501ac5189c update res_odbc to support pooled connections
19 years ago
Luigi Rizzo f32e294300 remove some unnecessary braces
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 0af770edd1 Bug 6670 - Additional parameters to the CHANNEL func
19 years ago