Commit Graph

1055 Commits (203f3ba52268223db07a73f7debe946b72c287e6)

Author SHA1 Message Date
Joshua Colp 8bfdea3160 Add AGI commands for speech recognition. These mirror the dialplan applications mostly but present the information in a nicer fashion. The SPEECH RECOGNIZE command for example will return the results instead of having to query the dialplan functions.
18 years ago
Jason Parker 63342693ae Merged revisions 90607 via svnmerge from
18 years ago
Jason Parker 7bf4fc6c2a Only reload if the config file has changed.
18 years ago
Mark Michelson 6b08c442c7 Adding support for the "automixmonitor" dial and queue options.
18 years ago
Tilghman Lesher a31a852dbc Merged revisions 90160 via svnmerge from
18 years ago
Joshua Colp 48da910225 Merged revisions 90101 via svnmerge from
18 years ago
Jason Parker aa0f63d65f Remove "old"-style CLI handler, since nothing uses it anymore.
18 years ago
Joshua Colp 6aad89b97d Fix a few log messages.
18 years ago
Mark Michelson a42259c3ff Adding support for realtime music on hold. The following are the main points:
18 years ago
Olle Johansson 5ac0f923b3 A few more "moremanager" fixes
18 years ago
Steve Murphy ab92fc1f35 made AEL 8-bit transparent; mainly the lexer was tossing chars with the hi-order bit set. Not nice. Also, allow @ in extension names, and a backslash, also.
18 years ago
Joshua Colp 0619fb1248 Perform some module use counting audits. This is now done outside the scope of the application/dialplan function so they do not need to worry about it.
18 years ago
Joshua Colp 23eecf8c61 Merged revisions 89599 via svnmerge from
18 years ago
Tilghman Lesher f1de129e5f Merged revisions 89559 via svnmerge from
18 years ago
Tilghman Lesher c7e931eacf Merged revisions 89545 via svnmerge from
18 years ago
Tilghman Lesher 6792b619f7 Merged revisions 89534 via svnmerge from
18 years ago
Luigi Rizzo 51391e6b09 shuffle a little bit the content of header files to reduce dependencies.
18 years ago
Luigi Rizzo 3fc2646808 remove a number of #include <fcntl.h> which are either
18 years ago
Steve Murphy 86476c607f closes issue #11285, where an unload of a module that creates a dialplan context, causes a crash when you do a 'dialplan show' of that context. This is because the registrar string is defined in the module, and the stale pointer is traversed. The reporter offered a patch that would always strdup the registrar string, which is practical, but I preferred to destroy the created contexts in each module where one is created. That seemed more symmetric. There were only 6 place in asterisk where this is done: chan_sip, chan_iax2, chan_skinny, res_features, app_dial, and app_queue. The two apps destroyed the context, but left the contexts. All is fixed now and unloads should be dialplan friendly.
18 years ago
Luigi Rizzo e0ff5fef5c remove a bunch of useless #include "options.h"
18 years ago
Terry Wilson ff6b2ad8de Simplify comparison in parking fix
18 years ago
Terry Wilson 348025fd0b Merged revisions 89491 via svnmerge from
18 years ago
Steve Murphy 837b8ef417 OOOps! All the debug stuff I inserted was accidentally committed. I hereby revert it.
18 years ago
Steve Murphy 4670e38aac closes issue #11265; Thanks to snuffy for his work on neatening up the code and removing duplicated code.
18 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
18 years ago
Luigi Rizzo 6938f4b2b0 Fix building of modules under cygwin.
18 years ago
Luigi Rizzo 0595b5e2aa include "logger.h" and errno.h from asterisk.h - usage shows that they
18 years ago
Joshua Colp 1affda12a2 Merged revisions 89419 via svnmerge from
18 years ago
Luigi Rizzo a0f06d0dd5 start using asterisk/network.h for network related headers.
18 years ago
Luigi Rizzo 5490960453 remove a bunch of duplicate includes
18 years ago
Terry Wilson 38ebd439f7 Fix broken parking dial-back
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Steve Murphy 542f29ea0e This fixes a problem with pattern ranges; and corrects a situation in res_features, where an extension would be created with the name Zap/51, as an example. THe / is bad because it would tend to mean that the 51 is to be cid matched.
18 years ago
Luigi Rizzo 09d9cce1d8 access channel locks through ast_channel_lock/unlock/trylock and not
18 years ago
Tilghman Lesher 0f6892419e One more typo in config.c; and missed conversions due to the constifying of ast_variable_new parameters
18 years ago
Luigi Rizzo 7f8ecd2cd3 make the 'name' and 'value' fields in ast_variable const char *
18 years ago
Russell Bryant 51377db4a5 - Use the ARRAY_LEN macro in a couple places
18 years ago
Russell Bryant 799fc3b99f Fix a typo pointed out by outtolunc, thanks :)
18 years ago
Russell Bryant fa39f74761 Update the ParkedCall application to grab the first available parked call if no
18 years ago
Jason Parker d24cee9a81 Merged revisions 89248 via svnmerge from
18 years ago
Jason Parker cfbc4f5fb8 Doxygen fixes.
18 years ago
Steve Murphy a897556f7f This is the perhaps the biggest, boldest, most daring change I've ever committed to trunk. Forgive me in advance any disruption this may cause, and please, report any problems via the bugtracker. The upside is that this can speed up large dialplans by 20 times (or more). Context, extension, and priority matching are all fairly constant-time searches. I introduce here my hashtables (hashtabs), and a regression for them. I would have used the ast_obj2 tables, but mine are resizeable, and don't need the object destruction capability. The hashtab stuff is well tested and stable. I introduce a data structure, a trie, for extension pattern matching, in which knowledge of all patterns is accumulated, and all matches can be found via a single traversal of the tree. This is per-context. The trie is formed on the first lookup attempt, and stored in the context for future lookups. Destruction routines are in place for hashtabs and the pattern match trie. You can see the contents of the pattern match trie by using the 'dialplan show' cli command when 'core set debug' has been done to put it in debug mode. The pattern tree traversal only traverses those parts of the tree that are interesting. It uses a scoreboard sort of approach to find the best match. The speed of the traversal is more a function of the length of the pattern than the number of patterns in the tree. The tree also contains the CID matching patterns. See the source code comments for details on how everything works. I believe the approach general enough that any issues that might come up involving fine points in the pattern matching algorithm, can be solved by just tweaking things. We shall see. The current pattern matcher is fairly involved, and replicating every nuance of it is difficult. If you find and report problems, I will try to resolve than as quickly as I can. The trie and hashtabs are added to the existing context and exten structs, and none of the old machinery has been removed for the sake of the multitude of functions that use them. In the future, we can (maybe) weed out the linked lists and save some space.
18 years ago
Jason Parker 8b6c511200 Change a warning to a notice. Issue #11195, patch by eliel
18 years ago
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
18 years ago
Steve Murphy a87efea3c4 Merged revisions 89088 via svnmerge from
18 years ago
Russell Bryant 4afb905cf0 Print out the channel name as a prefix to the "agi debug" output. This makes
18 years ago
Mark Michelson 1d0687dc2c Instead of trying to callback a local channel on a failed attended transfer, call
18 years ago
Russell Bryant 4e871ae483 Merged revisions 89053 via svnmerge from
18 years ago
Mark Michelson 5a4867543d "show application <foo>" changes for clarity.
18 years ago
Jason Parker 2c582c7cfb Allow gtalk and jingle to use TLS connections again.
18 years ago
Russell Bryant 4c6c69bdcc Merged revisions 89037 via svnmerge from
18 years ago
Tilghman Lesher 87bcdb9273 Merged revisions 88539 via svnmerge from
18 years ago
Luigi Rizzo 08b10da53b Simplify the implementation and the API for stringfields;
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
Jason Parker 5a58a4c475 Switch res_jabber to use openssl rather than gnutls.
18 years ago
Jason Parker b1d5789cc5 Merged revisions 87908 via svnmerge from
18 years ago
Jason Parker 59c9ff7ef2 More changes to change return values from load_module functions.
18 years ago
Steve Murphy 8c5bf67f4a Merged revisions 87775 via svnmerge from
18 years ago
Joshua Colp a4e38b7cd5 Merged revisions 87571 via svnmerge from
18 years ago
Jason Parker c472a68a8a Correctly use defined return values in (some) load_module functions.
18 years ago
Steve Murphy c9f3efc381 Merged revisions 87168 via svnmerge from
18 years ago
Steve Murphy 16d06cb62f closes issue #11045 - each file needs to define ASTERISK_FILE_VERSION, if you are going to set MTX_PROFILE in the compiler flags; the problem was that the fixes were getting made to the generated .c file, and erased the next time someone regenerated that file from the corresponding .y or .flex file. Moral of story: keep your eyes open and make mods to the .y (or flex input file) and re-run bison (or flex) as the Makefile directs for that file, and then check in both. Also, res_config_sqlite was kinda missed, and has the same issue.
18 years ago
Steve Murphy b7ef49c931 closes issue #11005, where #include uses the current dir instead of the config dir (/etc/asterisk) for relative path includes for AEL
18 years ago
Steve Murphy d914cbee48 Merged revisions 86936 via svnmerge from
18 years ago
Jason Parker ebe4050128 Switch from AST_CLI (formerly NEW_CLI) to AST_CLI_DEFINE, since the former didn't make much sense
18 years ago
Jason Parker b0f3e6097e Convert NEW_CLI to AST_CLI.
18 years ago
Jason Parker 65761cbd7a More changes to NEW_CLI.
18 years ago
Tilghman Lesher 7e23779b01 On reload, re-read the files in the specified moh directory (closes issue #10536)
18 years ago
Russell Bryant ea02f3d0c5 Added support for reading the TOUCH_MONITOR_PREFIX channel variable.
18 years ago
Philippe Sultan ad83510903 Allocate more space for the base64 output we need to generate.
18 years ago
Russell Bryant cd929dbd72 Merged revisions 85517 via svnmerge from
18 years ago
Russell Bryant e97a723cf1 Merge a ton of NEW_CLI conversions. Thanks to everyone that helped out! :)
18 years ago
Joshua Colp 648f67d4c8 Fix up tree so that it compiles when MTX Profiling is enabled.
18 years ago
Philippe Sultan 510430a6a2 Make the status and priority configurable.
18 years ago
Philippe Sultan fb54978cca Merged revisions 84902 via svnmerge from
18 years ago
Philippe Sultan c9ba43a904 Fix indentation
18 years ago
Philippe Sultan 4e75bec027 Merged revisions 84890 via svnmerge from
18 years ago
Tilghman Lesher 10dc88ba02 Update to current coding standards, also changing the argument delimiter to ',' (Closes issue #10876)
18 years ago
Steve Murphy 3ffa04bbd3 Merged revisions 84511 via svnmerge from
18 years ago
Jason Parker 81d927886b Merged revisions 84410 via svnmerge from
18 years ago
Steve Murphy b3168a76c9 Merged revisions 84239 via svnmerge from
18 years ago
Russell Bryant efaa9cf607 Merged revisions 84236 via svnmerge from
18 years ago
Russell Bryant d78463be1e Corydon posted this janitor project to the bug tracker and mvanbaak provided
18 years ago
Russell Bryant 9e05e0db04 The trunk version of this patch also includes a couple more small clean fixes
18 years ago
Russell Bryant df30de142c Add a new option for files-based music on hold to ensure that the sort order
18 years ago
Joshua Colp 147688278c Merged revisions 84160 via svnmerge from
18 years ago
Steve Murphy b0abdf45a6 Merged revisions 84133 via svnmerge from
18 years ago
Kevin P. Fleming 5cbba2923c deal with more gcc 4.2 const pointer warnings
18 years ago
Philippe Sultan a5007c54d7 Added a CLI command that shows our buddy list, as suggested by Daniel McKeehan, thanks!
18 years ago
Joshua Colp 20a71bad79 Fix minor memory leak in pval.c. Overwriting a value without freeing the previous result is bad, mmmk?
18 years ago
Steve Murphy 4f013699e2 Merged revisions 83589 via svnmerge from
18 years ago
Steve Murphy f2b38cf2f3 Merged revisions 83558 via svnmerge from
18 years ago
Russell Bryant 9f64905d4e Merged revisions 83432 via svnmerge from
18 years ago
Joshua Colp c1d1440e59 Clean up code in res_adsi.
18 years ago
Russell Bryant 0de872da8d Merged revisions 82929 via svnmerge from
18 years ago
Jason Parker c7a9ec1691 (issue #10724)
18 years ago
Russell Bryant 3dc9e8f38a Add support for #include, var_metric, and cat_metric in res_config_sqlite
18 years ago
Russell Bryant 9388173f85 Make the MALLOC_DEBUG output for free() useful again. After changing calls to
18 years ago
Russell Bryant 13183a8f99 Merged revisions 82594 via svnmerge from
18 years ago
Joshua Colp 3d22579ca9 (closes issue #10715)
18 years ago
Tilghman Lesher bc494164c8 Add a direct execute method to res_odbc (closes issue #10722)
18 years ago
Russell Bryant 1282de797d Various code and documentation cleanups for res_config_sqlite
18 years ago
Russell Bryant a955df8eb9 Merged revisions 82296 via svnmerge from
18 years ago
Russell Bryant 83e24e0af2 Merged revisions 82278 via svnmerge from
18 years ago
Russell Bryant b8ff60d307 Remove an unused variable. I have no idea why this was marked with the unused
18 years ago
Russell Bryant 4eff19f413 Merged revisions 82245 via svnmerge from
18 years ago
Joshua Colp 7cb698fb31 (closes issue #10684)
18 years ago
Mark Michelson 6d61ac8cc2 Merged revisions 81682 via svnmerge from
18 years ago
Philippe Sultan cbbfbb65e8 Merged revisions 81650 via svnmerge from
18 years ago
Russell Bryant 8bcfddc8ec Merged revisions 81599 via svnmerge from
18 years ago
Jason Parker d72ea80a00 Doxygen cleanups/fixes.
18 years ago
Joshua Colp 51e26b7bea Merged revisions 81406 via svnmerge from
18 years ago
Joshua Colp 4ddc0e91bf Merged revisions 81403 via svnmerge from
18 years ago
Joshua Colp 83ea59acd9 Merged revisions 81401 via svnmerge from
18 years ago
Joshua Colp 3b35471691 Merged revisions 81369 via svnmerge from
18 years ago
Steve Murphy b5cd67adc3 This code was in team/murf/bug8684-trunk; it should fix bug 8684 in trunk. I didn't add it to 1.4 yet, because it's not entirely clear to me if this is a bug fix or an enhancement. A lot of files were affected by small changes like ast_variable_new getting an added arg, for the file name the var was defined in; ast_category_new gets added args of filename and lineno; ast_category and ast_variable structures now record file and lineno for each entry; a list of all #include and #execs in a config file (or any of its inclusions are now kept in the ast_config struct; at save time, each entry is put back into its proper file of origin, in order. #include and #exec directives are folded in properly. Headers indicating that the file was generated, are generated also for each included file. Some changes to main/manager.c to take care of file renaming, via the UpdateConfig command. Multiple inclusions of the same file are handled by exploding these into multiple include files, uniquely named. There's probably more, but I can't remember it right now.
18 years ago
Joshua Colp bc5950c4ce (closes issue #10579)
18 years ago
Russell Bryant e23538696e Merged revisions 81042 via svnmerge from
18 years ago
Steve Murphy 83e28341b5 an unreported crash I debugged, looked like it was backing up way too far after hitting the syntax error. An inspection of the code revealed that error tokens in lists were not rearranged when the rules were rearranged as part of a code neatening-up process. By moving the error tokens to where they should be, I also reduced the number of shift/reduce conflicts to 3 instead of 8. This introduces subtle differences in error messages, so the regressions had to be updated.
18 years ago
Russell Bryant 2290819e6d Merged revisions 80573 via svnmerge from
18 years ago
Russell Bryant c50975fd06 Fix a typo in the Asterisk MIB and fix astNumChanBridged so it acts as a counter again
18 years ago
Russell Bryant 84643967e1 Merged revisions 80469 via svnmerge from
18 years ago
Russell Bryant 44f70278a8 Merged revisions 80360 via svnmerge from
18 years ago
Steve Murphy 35ade91df6 As per 10472, mvanbaak thought the generated code would look better this way.
18 years ago
Jason Parker 1f9e0ce434 Fix Dial arguments in res_features.
18 years ago
Tilghman Lesher c78ddffb04 store and destroy implementations for sqlite (closes issue #10446) and odbc (closes issue #10447)
18 years ago
Tilghman Lesher 646234bd10 store and destroy implementations for realtime pgsql (closes issue #10372)
18 years ago
Russell Bryant 74200abe10 Merged revisions 79778 via svnmerge from
18 years ago
Tilghman Lesher 56b9568164 Don't reload a configuration file if nothing has changed.
18 years ago
Philippe Sultan bade686730 Merged revisions 79665 via svnmerge from
18 years ago
Jason Parker f38a688605 Modify the names of functions/variables in res_musiconhold to be useful.
18 years ago
Steve Murphy 9836efb5fb This commit closes bug 7605, and half-closes 7638. The AEL code has been redistributed/repartitioned to allow code re-use both inside and outside of Asterisk. This commit introduces the utils/conf2ael program, and an external config-file reader, for both normal config files, and for extensions.conf (context, exten, prio); It provides an API for programs outside of asterisk to use to play with the dialplan and config files.
18 years ago
Joshua Colp 9ebe338bc6 Merged revisions 79397 via svnmerge from
18 years ago
Joshua Colp 94b1dda1fa Merged revisions 79334 via svnmerge from
18 years ago
Tilghman Lesher c41121cdbb Only use the sanitysql if it's not zero-len
18 years ago
Joshua Colp 3dac92ecbf Merged revisions 79207 via svnmerge from
18 years ago
Tilghman Lesher 89588a043f Merged revisions 79142 via svnmerge from
18 years ago
Russell Bryant e113d36aa4 Merge a set of device state improvements from team/russell/events.
18 years ago
Russell Bryant 668a334f85 Add another big set of doxygen documentation improvements from snuffy.
18 years ago
Russell Bryant d8965ddabe Merged revisions 78488 via svnmerge from
18 years ago
Tilghman Lesher 72cc1dcfea Merged revisions 78437 via svnmerge from
18 years ago
Tilghman Lesher f78ff66a4d Merged revisions 78415 via svnmerge from
18 years ago
Russell Bryant c40a9e2818 Remove some test code from trunk as it doesn't need to be here. I'm just
18 years ago
Joshua Colp 9ef1b0a974 Extend the ast_senddigit and ast_dtmf_stream API calls to allow the duration of the DTMF digit(s) to be specified and make the SendDTMF application have the capability to use it.
18 years ago
Russell Bryant 4e0947c5f1 Convert code that checks the _softhangup member of ast_channel directory to use
18 years ago
Tilghman Lesher a19b2fe6e3 Twould help if we actually defined ->mod before comparing against it (reported and fixed by Juggie via IRC).
18 years ago
Joshua Colp 1d07328918 Merged revisions 77831 via svnmerge from
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 048bb3d9e3 Fix the return value of ast_agi_fdprintf() to include the result from ast_carefulwrite()
18 years ago
Russell Bryant 38bb9400de Improve ast_agi_fdprintf() by using the ast_str() API.
18 years ago