Commit Graph

1465 Commits (3b070a815d489936b4f3b6a18593e75da2d33836)

Author SHA1 Message Date
Kevin P. Fleming 34ed13becd remove some debugging code that doesn't compile on 64-bit platforms
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 9d7ddb3c63 add missing paths.h
18 years ago
Steve Murphy 8e90425a6c A free in add_pri was ultimately the source of the grief we were having with parking. This set of changes fixes that problem, and introduces some more error messages, and puts debugs into ifdefs for what could be short-term usage. Txs to Terry W. for his help, guidance, and especially patience.
18 years ago
Luigi Rizzo 04e1e0069f more header removal/normalization
18 years ago
Tilghman Lesher 8f4fb30cfe Add support for new recorded character sounds
18 years ago
Luigi Rizzo a23c055c3d move asterisk/paths.h outside asterisk.h and into those files
18 years ago
Luigi Rizzo 915b97d300 move internal function declarations to include/asterisk/_private.h
18 years ago
Kevin P. Fleming 4d522da4aa switch compile-time option checking to string storage mode in this branch too
18 years ago
Mark Michelson dda649ead2 Merged revisions 89457 via svnmerge from
18 years ago
Joshua Colp 5e4e4c5594 Minor documentation tweak and if an incorrect parameter is given to core show translation return the usage information.
18 years ago
Luigi Rizzo a7a0ca9f93 initial makefile changes to build loadable modules under cygwin
18 years ago
Steve Murphy f62bf52e55 Get rid of some debug messages in pbx.c
18 years ago
Steve Murphy 4ea5eced10 These changes were made in response to niklas@tese.se's letter of 11-17-2007, where he had 20 and 201 in two different contexts, included in the same context. In that particular case, we were behaving the same as 1.4, but after experimenting, I quickly found that if 20 and 201 were in the same extension, 1.4 would return 201, and this code returns 20. These changes now enable the current code to replicate the behavior of 1.4 in respect to MATCHMORE in cases like this.
18 years ago
Luigi Rizzo ed9b9733b6 another few errno.h removals
18 years ago
Luigi Rizzo 9335ace850 another bunch of include removals (errno.h and asterisk/logger.h)
18 years ago
Luigi Rizzo 0595b5e2aa include "logger.h" and errno.h from asterisk.h - usage shows that they
18 years ago
Steve Murphy 406f6f2909 a correction to code involved in an extension removal
18 years ago
Olle Johansson cc0e8cc412 Add some debugging to the routines that finds our local IP address.
18 years ago
Steve Murphy 1a5cdeb138 a quick fix to pbx_dundi.c to make it so it will compile. Hope I did the right thing. And some additions to removal of extens to take care of hashtab pointers in all cases.
18 years ago
Luigi Rizzo 1e6489a175 trim more redundant headers
18 years ago
Luigi Rizzo 907c86a781 remove unnecessary includes
18 years ago
Luigi Rizzo 5663ff6518 fix breakage induced by previous mistake
18 years ago
Luigi Rizzo a0f06d0dd5 start using asterisk/network.h for network related headers.
18 years ago
Luigi Rizzo f9ae0522f5 main is called main not amain!
18 years ago
Luigi Rizzo a9395206f9 conditional targets for building the windows version
18 years ago
Luigi Rizzo 7cd78079ae more cygwin/mingw32 compatibility fixes
18 years ago
Luigi Rizzo 6cca49b9d0 define RTLD_LOCAL for platforms that don't have it.
18 years ago
Luigi Rizzo 130b6291cb netdb.h is used for gethostbyname, and it was not included in some
18 years ago
Luigi Rizzo 2940cf943f Loader for cygwin where asterisk is really a big dll
18 years ago
Luigi Rizzo 5862c55451 use poll as detected by configure
18 years ago
Luigi Rizzo 5490960453 remove a bunch of duplicate includes
18 years ago
Steve Murphy 7953c2c46f My goodness, haven't handled an extension deletion. Add code to ast_context_remove_extension2() to remove an extension from the trie. Done by marking it deleted. The scoreboard won't update for it any more. Also, a couple of calls to insert hashtab had a spurious ->exten, which was removed.
18 years ago
Luigi Rizzo 04497db215 remove duplicate headers.
18 years ago
Luigi Rizzo fdb7f7ba3d Start untangling header inclusion in a way that does not affect
18 years ago
Mark Michelson fd7b3e7261 Fixing a problem pointed out by Qwell
18 years ago
Mark Michelson 3107395445 Added some locks that should have been around astman_send_error,
18 years ago
Steve Murphy ab32ff2ad8 This corrects a hashtab removal, given a bad argument
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
Kevin P. Fleming 547306835e Merged revisions 89325 via svnmerge from
18 years ago
Luigi Rizzo 02733f3290 add a small new function to retrieve variables from a config
18 years ago
Tilghman Lesher 8309f54e39 If we're going to be passing a negative value for the size of a stringfield,
18 years ago
Steve Murphy eee92d0881 Get rid of a previously missed ast_log call for debug, no longer nec.
18 years ago
Steve Murphy 0bad49b3dd Perhaps I went overboard on initializing things. I can remove unnecc. stuff later. A few bug fixes. Killing small bugs on the way to killing bigger ones. Removed locking on hashtabs; there's plenty of locks already being taken. A small bug in the root_tree hashtab compare func.
18 years ago
Luigi Rizzo 09d9cce1d8 access channel locks through ast_channel_lock/unlock/trylock and not
18 years ago
Mark Michelson 6260590ec2 Merged revisions 89288 via svnmerge from
18 years ago
Mark Michelson eee4ed80cf Merged revisions 89286 via svnmerge from
18 years ago
Steve Murphy 620e580ed6 Had trouble playing with parking; spent a long time trying to reason out MATCHMORE mode. made these updates and xfers on zaptel lines seem to work ok now
18 years ago
Tilghman Lesher 8820ae5b2e Merged revisions 89275 via svnmerge from
18 years ago
Tilghman Lesher 5112f2b7e9 Typo
18 years ago
Tilghman Lesher 36d9a5aaf3 Add callerid to the Hangup manager event.
18 years ago
Steve Murphy 20d24e1027 Rescaled the weights of the patterns to give something more independent of pattern length; and make . less likely to win. Question: which should win for 14102241145-- _1xxxxxxx. or _XXXXXXXXXXX -- right now, the pure X pattern will win.
18 years ago
Steve Murphy 225c94d950 A further problem highlighted by 11233 has been resolved; a certain combination of patterns in a certain order, led to a malformed trie, due to a ptr not being initialized in the loop. Also, some tree printing prettifications.
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
Tilghman Lesher b4839d4d4a Typo
18 years ago
Luigi Rizzo 7f8ecd2cd3 make the 'name' and 'value' fields in ast_variable const char *
18 years ago
Russell Bryant d3414c7552 Fix up various coding guidelines issues ...
18 years ago
Joshua Colp 7d561b994c Merged revisions 89260 via svnmerge from
18 years ago
Kevin P. Fleming a34bbab643 use simpler technique for removing known entries from lists
18 years ago
Russell Bryant b30b1bc46f - Simplify removing an item from a list
18 years ago
Steve Murphy fd1f6df25f This hopefully will fix the re-opened 11233. Hadn't covered the case of a context with no patterns. (blush)
18 years ago
Steve Murphy f0a7e86177 closes issue #11233 -- where some fine points in the algorithm to build the tree needed to be corrected. Many thanks for the test case, jtodd
18 years ago
Tilghman Lesher 9cd09c5214 Merged revisions 89239 via svnmerge from
18 years ago
Jason Parker cfbc4f5fb8 Doxygen fixes.
18 years ago
Steve Murphy fd1fbb0223 Thanks to snuff-work, who brought up that these fixes might need to be made.
18 years ago
Jason Parker 50879dcb1d Merged revisions 89194 via svnmerge from
18 years ago
Steve Murphy 98429d37b2 Based on a note in asterisk-dev by Brian Capouch, I determined I too agressive in not initializing arrays passed to pbx_substitute_variables_xxxx; I reviewed the code (again) and hopefully found every possible spot where substitute_variables is called conditionally, and made sure the char array involved was set to a null string.
18 years ago
Tilghman Lesher 061e5a1674 Merged revisions 89184 via svnmerge from
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 ec8497c58f Merged revisions 89125 via svnmerge from
18 years ago
Mark Michelson 0881f07aed AST_LIST_REMOVE_CURRENT takes only one argument.
18 years ago
Luigi Rizzo 339d27ebe9 use %d and cast to int instead of %zd for size_t object,
18 years ago
Kevin P. Fleming c18691dec0 Merged revisions 89105 via svnmerge from
18 years ago
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
18 years ago
Luigi Rizzo d0b2d2dc62 remove a debugging message which i forgot in.
18 years ago
Russell Bryant 5480c54e56 Fix another CLI command so it doesn't run the real code when called for initialization.
18 years ago
Joshua Colp f440f8ba48 Fix up some PBX logic that became broken. The code would exit prematurely when it should have been collecting more digits.
18 years ago
Tilghman Lesher 7c56918262 Commit some cleanups to the format type code.
18 years ago
Steve Murphy 9f08e7e132 Merged revisions 89036 via svnmerge from
18 years ago
Joshua Colp 0971b51cfc Remove native bridging check for DTMF based transfers. Thanks to the last batch of RTP changes it is no longer required for the media stream to go through Asterisk if DTMF is going over signalling. It will simply reinvite back as needed.
18 years ago
Russell Bryant 5ab1541da9 Fix the memory show allocations CLI command so that it doesn't spew out all
18 years ago
Steve Murphy 117d3d834e Hoping to avoid a crash in OSX for a problem blitzrage found
18 years ago
Olle Johansson 402cfcfbbc Formatting. Illegaly using some spare spaces from Russell's space-bucket.
18 years ago
Olle Johansson 6519abeffc Additional TDD changes (preparing for SIP changes - adding TDD support to SIP)
18 years ago
Mark Michelson 5a4867543d "show application <foo>" changes for clarity.
18 years ago
Olle Johansson 8b917df39b Merged revisions 89042 via svnmerge from
18 years ago
Luigi Rizzo 81456f8493 Fix embedding of modules on FreeBSD:
18 years ago
Russell Bryant 9bfd82cec2 Merged revisions 88805 via svnmerge from
18 years ago
Mark Michelson 57c4409689 Merged revisions 88826 via svnmerge from
18 years ago
Luigi Rizzo b80dc41707 Move the last instance of AST_LIBS to the only place it is used,
18 years ago
Russell Bryant aecb21e822 Merged revisions 88719 via svnmerge from
18 years ago
Russell Bryant 7df9905e71 Merged revisions 88709 via svnmerge from
18 years ago
Russell Bryant 6677325afc Merged revisions 88624 via svnmerge from
18 years ago
Luigi Rizzo ba6664ef7d remove a cygwin-specific function remap that does not work.
18 years ago
Luigi Rizzo 08b10da53b Simplify the implementation and the API for stringfields;
18 years ago
Tilghman Lesher eb856fbb48 Revert commit #86119. Some users intentionally do not want colorized terminals, so this was a misfeature.
18 years ago
James Golovich 05dd7fec2c Set CLI command to the correct name. Rev 85460 introduced two 'database show' commands when this one
18 years ago
Russell Bryant 927901fdef Show the channel unique ID in the "show channel concise" output
18 years ago
Jason Parker 4cb45f18a1 Merged revisions 88283 via svnmerge from
18 years ago
Tilghman Lesher e8c781b215 Add pbx_lua as a method of doing extensions
18 years ago
Tilghman Lesher b6c7daa804 Don't re-cache the filename, but check to see if it already exists
18 years ago
Tilghman Lesher b5c2bcb169 'h' extension doesn't execute past first priority
18 years ago
Tilghman Lesher 90db1316ed Modify WaitExten to include an optional dialtone
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 c2aee728e9 Conditionally free lock_info->thread_name to avoid a useless warning
18 years ago
Joshua Colp 284721fdb1 Drop any more references to type in the Exception dialplan function.
18 years ago
Tilghman Lesher b6ec350910 Optimize pbx_substitute_variables
18 years ago
Jason Parker e985a00a32 Update documentation to give an example of how to use the return status of RaiseException
18 years ago
Mark Michelson e0d13e169c The priority gets incremented after raising an exception, so the priority should be set to 0
18 years ago
Mark Michelson e5f87bbac3 Jumped the gun a bit in the RaiseException app. It would always return -1
18 years ago
Jason Parker efe87112fb Merged revisions 87567 via svnmerge from
18 years ago
Kevin P. Fleming a4b8ca220d clean up assembler and preprocessor files if they are here too
18 years ago
Russell Bryant f7782d60d1 Merged revisions 87396 via svnmerge from
18 years ago
Joshua Colp 255e26c480 Drop the RTCP Read too short message to debug. There are some phones out there that send a sort of keep alive packet in the RTCP that trigger this every 5 seconds.
18 years ago
Russell Bryant 70db49ae2f Merged revisions 87373 via svnmerge from
18 years ago
Joshua Colp 0769dd6e1e Merged revisions 87294 via svnmerge from
18 years ago
Tilghman Lesher 446a6cdc94 Use the same delimited character as the FILTER function in FIELDQTY and CUT.
18 years ago
Kevin P. Fleming c6a8d45f43 Merged revisions 87069 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 8b13d258c6 Merged revisions 86880 via svnmerge from
18 years ago
Steve Murphy 50d5fd877e Merged revisions 86881 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
Tilghman Lesher 8711a1dba7 Merged revisions 86787 via svnmerge from
18 years ago
Russell Bryant a54eca55cf Merged revisions 86750 via svnmerge from
18 years ago
Kevin P. Fleming 6a0ae0aca4 merging patches that don't compile is bad... mmkay?
18 years ago
Joshua Colp 150964ab0e Merged revisions 86663 via svnmerge from
18 years ago
Joshua Colp e4b75ab0e0 Merged revisions 86630 via svnmerge from
18 years ago
Russell Bryant 56879bf978 Merged revisions 85532 via svnmerge from
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
Joshua Colp 306b944208 Merged revisions 86502 via svnmerge from
18 years ago
Russell Bryant 155aaf947f Merged revisions 86330 via svnmerge from
18 years ago
Tilghman Lesher 9203f4fedb Code cleanup of acl.c
18 years ago
Russell Bryant ac4d66cc73 Merged revisions 86237 via svnmerge from
18 years ago
Tilghman Lesher 727a908023 Simplify some preprocessor logic by using #elif
18 years ago
Tilghman Lesher 6b9841b141 Support color on certain platforms, even when started at boot (before TERM is set)
18 years ago
Tilghman Lesher 616ec5d340 Merged revisions 86066 via svnmerge from
18 years ago
Tilghman Lesher bd27085c00 Merged revisions 85921 via svnmerge from
18 years ago
Joshua Colp c4230bb28f Permit building under DEBUG_THREADLOCALS. Thanks snuff.
18 years ago
Joshua Colp 3c33254f0c Merged revisions 85818 via svnmerge from
18 years ago
Jason Parker ed690fc348 Switch dundi to new tos config format.
18 years ago
Russell Bryant 9808799f2a Merged revisions 85686 via svnmerge from
18 years ago
Russell Bryant 4c1b8cb9fa Merged revisions 85649 via svnmerge from
18 years ago
Russell Bryant ac9a6dce25 Merged revisions 85647 via svnmerge from
18 years ago
Joshua Colp a5122f03ad Merged revisions 85559 via svnmerge from
18 years ago
Joshua Colp 901522a116 Add packetization data for G.722.
18 years ago
Joshua Colp c7ea8f9c87 Merged revisions 85552 via svnmerge from
18 years ago
Russell Bryant c2ba92b385 Move the CLI commands that were in builtins[] into the cli_cli[] array of CLI
18 years ago
Russell Bryant 27031927cf Merged revisions 85545 via svnmerge from
18 years ago
Russell Bryant 42b2f932d2 Merged revisions 85543 via svnmerge from
18 years ago
James Golovich 741c0ba9df Fix compiling cli.c due to differences with new cli system (closes issue
18 years ago
Russell Bryant eec3f78368 Merged revisions 85533 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
Tilghman Lesher c0fcb59d38 Merged revisions 85356 via svnmerge from
18 years ago
Joshua Colp d19257304e Process outstanding log messages before shutting down the logger thread.
18 years ago
Tilghman Lesher e9221b062e Merged revisions 85158 via svnmerge from
18 years ago
Joshua Colp 6f2e7b4310 Merged revisions 85057 via svnmerge from
18 years ago
Joshua Colp 648f67d4c8 Fix up tree so that it compiles when MTX Profiling is enabled.
18 years ago
Joshua Colp de64c85b54 Merged revisions 85023 via svnmerge from
18 years ago
Joshua Colp 914cd4a7cf Merged revisions 84990 via svnmerge from
18 years ago
Tilghman Lesher 977d8e2c8a Merged revisions 84851 via svnmerge from
18 years ago
Joshua Colp 5b3347c715 Merged revisions 84818 via svnmerge from
18 years ago
Russell Bryant 40e7d22cd7 Merged revisions 84742 via svnmerge from
18 years ago
Joshua Colp 094e9d8397 Don't register the exception function with module information. Since it is in the core there is none and it will explode.
18 years ago
Tilghman Lesher cfc8e90501 Merged revisions 84581 via svnmerge from
18 years ago
Tilghman Lesher c2f7cc4bd4 Create a universal exception handling extension, "e" (closes issue #9785)
18 years ago
Tilghman Lesher 5139a2f6f7 Add MSet for people who prefer the old, deprecated syntax of Set (Closes issue #10549)
18 years ago
Joshua Colp fe1d4b1d04 Don't swap channel priority if using epoll as polling should/will only happen off the first channel.
18 years ago
Dwayne M. Hubbard 71a0672560 Merged revisions 84274 via svnmerge from
18 years ago
Russell Bryant 9334e72e76 Merged revisions 84271 via svnmerge from
18 years ago
Russell Bryant 7a542a0a39 Change simple uses of snprintf to ast_copy_string. This was provided by
18 years ago
Russell Bryant d78463be1e Corydon posted this janitor project to the bug tracker and mvanbaak provided
18 years ago
Russell Bryant 9217a05b01 Simplify code by using the -= and %= operators.
18 years ago
Russell Bryant 7c01bf15df Don't set the full command string until after verifying that there is not
18 years ago
Joshua Colp 8de5a4857e Don't register the dnsmgr refresh CLI command twice.
18 years ago
Matthew Fredrickson 32c5558676 Let's use process time instead of wall clock time for show translation
18 years ago
Tilghman Lesher 8b2b13a750 Merged revisions 84078 via svnmerge from
18 years ago
Tilghman Lesher d3904a21c4 Merged revisions 84049 via svnmerge from
18 years ago
Dwayne M. Hubbard bd5b6cea68 Merged revisions 84018 via svnmerge from
18 years ago
Tilghman Lesher 0efe82bf9e Merged revisions 83773 via svnmerge from
18 years ago
Tilghman Lesher ddc6f8100e Permit custom locations for astdb and the keys directory (though default to the current locations) (Closes issue #10267)
18 years ago
Tilghman Lesher 7abaa82162 Merged revisions 83637 via svnmerge from
18 years ago
Tilghman Lesher 02c997c64c Add the MeetmeList and Reload manager commands, which supplement the need to have Command privilege. (closes issue #10736)
18 years ago
Tilghman Lesher 48f56ba8b4 Fixes for FreeBSD... testing for every conceivable math function now
18 years ago
Russell Bryant 9f64905d4e Merged revisions 83432 via svnmerge from
18 years ago
Tilghman Lesher 78a94595f6 Check for the presence of trunc and round, and make the ISOC99 detection a little more sane (closes issue #10776)
18 years ago
Jason Parker 857f785a40 More NEW_CLI conversions.
18 years ago
Russell Bryant 5cbdfc9925 Merged revisions 83348 via svnmerge from
18 years ago
Russell Bryant 86e254caba trivial formatting change
18 years ago
Russell Bryant 06fd2e1a05 trivial formatting change
18 years ago
Russell Bryant 2d7b84b2cf minor spelling fixes in a comment
18 years ago
Russell Bryant f8911d2bbc minor grammar fix
18 years ago
Russell Bryant 2fde4885db trivial formatting change
18 years ago
Russell Bryant 6aa1638d8a Don't start the event processing thread until after forking.
18 years ago
Joshua Colp 6489076887 Fix memory leaks in pbx_dundi, cdr_pgsql, and the configuration file parser.
18 years ago
Russell Bryant fc1fdac8f2 Merged revisions 83121 via svnmerge from
18 years ago
Joshua Colp 25597993d7 Extend manager show connected with additional information.
18 years ago
Jason Parker c7a9ec1691 (issue #10724)
18 years ago
Russell Bryant c3b4322469 Merged revisions 82867 via svnmerge from
18 years ago
Russell Bryant 96d9f820e9 Merged revisions 82676 via svnmerge from
18 years ago
Doug Bailey 410bdaf535 Fix memory leak introduced when POST support was added.
18 years ago
Joshua Colp abe84c029f Merged revisions 82514 via svnmerge from
18 years ago
Steve Murphy 6a98adc357 Merged revisions 82444 via svnmerge from
18 years ago
Russell Bryant 37dbcf6422 Merged revisions 82339 via svnmerge from
18 years ago
Russell Bryant 79d79ac840 Merged revisions 82337 via svnmerge from
18 years ago
Tilghman Lesher 22436131f7 Merged revisions 82291 via svnmerge from
18 years ago
Tilghman Lesher 82cf384e03 Merged revisions 82285 via svnmerge from
18 years ago
Steve Murphy 95ee34a654 This fix closes issue #10642 -- it's not perfect, but should retain most blank lines in config files, via read/write cycles.
18 years ago
Mark Michelson 3a6e79ad80 Fixes Solaris build warnings
18 years ago
Russell Bryant 7e19df05b9 Merged revisions 82280 via svnmerge from
18 years ago
Russell Bryant 2a3ed7b879 remove unused functions that made this file not build under dev mode
18 years ago
Steve Murphy c88e216a14 This solves an unreported solaris compile problem (missing -lnsl -lsocket).
18 years ago
Steve Murphy c6b6a67364 Merged revisions 82261 via svnmerge from
18 years ago
Joshua Colp 0dc7b3e8f8 (closes issue #10666)
18 years ago
Joshua Colp e4c8ac7abd (closes issue #10695)
18 years ago
Joshua Colp a7d3a24fa5 (closes issue #10692)
18 years ago
Jason Parker 10f28b2d79 Add a counter to the 'database deltree' CLI command.
18 years ago
Jason Parker ccb6b0065d Add counter to 'database show' CLI command.
18 years ago
Steve Murphy 6cc72a0e0d Changes applied from marta's team/marta/astobj2 branch to solve a race condition
18 years ago
Russell Bryant 9dba50322d Merged revisions 81997 via svnmerge from
18 years ago
Joshua Colp a565584d05 Fix memory issue that crept up with Russell's testing. It is *not* proper to free the frame we get in ast_write.
18 years ago
Luigi Rizzo 8e62c6c4d0 various changes to the documentation, and redefinition of
18 years ago
Russell Bryant 8bcfddc8ec Merged revisions 81599 via svnmerge from
18 years ago
Jason Parker d72ea80a00 Doxygen cleanups/fixes.
18 years ago
Steve Murphy dcb85e2456 this set of changes fixes issue # 10643 by keeping track of the last object defined in a file, and attaching any accumulated comments to that object (category header or variable declaration). The file_save routine also had to be upgraded to output these trailing comments. Config.h was modified to include the trailing comment list on categories and variables.
18 years ago
Joshua Colp 1df4047b4a Finish up commit from revision 81452 by removing last remnants of strlcat/strlcpy checks.
18 years ago
Russell Bryant 664d1d879b Don't check for and include strlcpy and strlcat in editline. We also include
18 years ago
Russell Bryant 9bda1c5a94 Merged revisions 81448 via svnmerge from
18 years ago
Joshua Colp 352fd9d942 Merged revisions 81437 via svnmerge from
18 years ago
Joshua Colp 611d112eb7 Merged revisions 81435 via svnmerge from
18 years ago
Tilghman Lesher 3305af34d6 Once we get past the file checks, we're loading, so clear the FILEUNCHANGED flag (fixes #include) (closes issue #10629)
18 years ago
Tilghman Lesher 87044d37a0 We shouldn't use a filename blindly without checking to make sure it's unused first
18 years ago
Mark Michelson 1bfe10997b Merged revisions 81426 via svnmerge from
18 years ago
Steve Murphy 837ae96aeb Merged revisions 81392 via svnmerge from
18 years ago
Tilghman Lesher 262578a60f A schedule id of 0 is not possible and is used to flag that we want to add a new item
18 years ago
Tilghman Lesher 43adcde7bf Always force reread of the config when we're rotating the log file (closes issue #10598)
18 years ago
Joshua Colp 56e74f0dde (closes issue #10603)
18 years ago
Steve Murphy 876ebb3ec7 init newer so compile won't complain.
18 years ago
Russell Bryant 8555b694ee make trunk build again. murf will have to review this to see if it was the right fix, as it is related to his last change.
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
Russell Bryant 8a6c04a0a9 Try to clarify the rules on changing ast_event and ast_event_ie
18 years ago
Russell Bryant 94d9d29f18 Fix parenthesis from my last commit
18 years ago
Russell Bryant 22de9a1c68 Change pointer aritmetic on void * to char *
18 years ago
Russell Bryant dce06fed1d there is not actually code that sends these over the network in trunk yet
18 years ago
Joshua Colp e311ae98d1 Return ast_event_get_ie_raw to using an iterator and fix logic in ast_event_iterator_next.
18 years ago
Joshua Colp a3b8cb670e This concludes bringing trunk back to a working state.
18 years ago
Joshua Colp c9445d4a68 To keep others happy... revert part of my additions so trunk works.
18 years ago
Russell Bryant d99440e2ed Merged revisions 81342 via svnmerge from
18 years ago
Joshua Colp 2351d789fd Add API calls for iterating through an event. This should allow events to have multiple information elements (while there was nothing preventing it before you could not actually access any except the first one).
18 years ago
Joshua Colp f4fa5a228a Add some read/write locking magic to make logger reload operate again.
18 years ago
Tilghman Lesher f5a14167f3 Support better rotation of log files to be more like system logging (closes issue #10398)
18 years ago
Russell Bryant 040a5f20f9 * Constify the uid field of channel datastores
18 years ago
Russell Bryant 43e9b0f67c (closes issue #7852)
18 years ago
Joshua Colp 44aacc96f1 Merged revisions 80974 via svnmerge from
18 years ago
Russell Bryant 7ddccc897f Merged revisions 80820 via svnmerge from
18 years ago
Tilghman Lesher f8c93488d5 Fix documentation for Set (closes issue #10549)
18 years ago
Steve Murphy 9931947a6e Merged revisions 80789 via svnmerge from
18 years ago
Joshua Colp c755851bc8 Return trunk to a working state by including compat.h in minimime.
18 years ago
Jason Parker b875ca68e1 Convert minimime to use the proper uint*_t types, rather than u_int*_t
18 years ago
Russell Bryant 4328c75281 Merged revisions 80424 via svnmerge from
18 years ago
Russell Bryant 50d7fc81aa Merged revisions 80362 via svnmerge from
18 years ago
Joshua Colp 91d9c110af Merged revisions 80255 via svnmerge from
18 years ago
Steve Murphy 6f9f77e0ca Merged revisions 80166 via svnmerge from
18 years ago
Joshua Colp 937d83f7e4 Minor tweak. Don't manipulate volume of the audio in the buffer if no audio is actually there.
18 years ago
Steve Murphy 337c44236d This change set fixes bug 8126 in trunk. It is implemented via compile time options, activated via the menuselect stuff, which defaults to the old way. non-zero sample data added. Translate tables expressed in microseconds instead of milliseconds, with 5-digit data now instead of 3, giving 2 more digits of precision.
18 years ago
Jason Parker 100e2387db Merged revisions 79904 via svnmerge from
18 years ago
Tilghman Lesher 8b63009338 Change this flag... might not otherwise unlock in an OOM situation
18 years ago
Russell Bryant f5bf66bcd7 This commit adds a scheduler API call, ast_sched_replace that can be used
18 years ago
Tilghman Lesher 56b9568164 Don't reload a configuration file if nothing has changed.
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 5fbd7ebd24 Merged revisions 79553 via svnmerge from
18 years ago
Joshua Colp 9264d5007a (closes issue #10427)
18 years ago
Steve Murphy 4f98b05cd5 Don't ask me why, but waitfordigit will immediately return a 1 on my system, unless the outfd is initialized to -1 before calling the nandfds func
18 years ago
Russell Bryant 5f0c3e7dbc constify the return value of reason2str
18 years ago
Steve Murphy 526d1f39a2 Merged revisions 79099 via svnmerge from
18 years ago
Joshua Colp e927902fe7 Bring up to date with poll changes.
18 years ago
Steve Murphy cc6a96c580 Merged revisions 79049 via svnmerge from
18 years ago
Steve Murphy f223818927 Merged revisions 79044 via svnmerge from
18 years ago
Russell Bryant e113d36aa4 Merge a set of device state improvements from team/russell/events.
18 years ago
Joshua Colp 845cba6792 Merged revisions 78955 via svnmerge from
18 years ago
Joshua Colp 22114b509d Add support for using epoll instead of poll. This should increase scalability and is done in such a way that we should be able to add support for other poll() replacements.
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
Russell Bryant 668a334f85 Add another big set of doxygen documentation improvements from snuffy.
18 years ago
Joshua Colp 218241f174 Use the linkedlists.h macros for the manager action list.
18 years ago
Joshua Colp b4778de562 (closes issue #10225)
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
Joshua Colp 431c60f818 Merged revisions 78275 via svnmerge from
18 years ago
Doug Bailey 3e426df072 Change the fsk filter used in CID and TDD decode to an integer based implementation
18 years ago
Mark Michelson c4c0e45c8b Merged revisions 78103 via svnmerge from
18 years ago
Jason Parker 3f0a1faed2 Merged revisions 78180 via svnmerge from
18 years ago
Joshua Colp 5a1e2bfb50 Merged revisions 78172 via svnmerge from
18 years ago
Russell Bryant befb383d16 Merged revisions 78095 via svnmerge from
19 years ago
Steve Murphy 79b9bc6a2f Merged revisions 77945 via svnmerge from
19 years ago
Joshua Colp 1e4bd7a192 Instead of adding the SOLARIS check to each HAVE_SYSINFO check let's just make the sysinfo autoconf logic a bit pickier about what it considers a usable sysinfo.
19 years ago
Joshua Colp a7aaa0bbc2 Solaris does not have a sysinfo like we know of on Linux.
19 years ago
Joshua Colp 28fec17d59 Merged revisions 77867 via svnmerge from
19 years ago
Joshua Colp d51079b70a Merged revisions 77863 via svnmerge from
19 years ago
Russell Bryant 4e0947c5f1 Convert code that checks the _softhangup member of ast_channel directory to use
19 years ago
Joshua Colp 96b96a5f72 Convert CLI helpers list to rwlist.
19 years ago
Joshua Colp 3aaf122439 Add support for call forwarding and timeouts to the dialing API.
19 years ago
Jason Parker fc0ea46f04 Merged revisions 77795 via svnmerge from
19 years ago
Luigi Rizzo f66dbeb8f3 print formats as 0x%x instead of %d in a warning message.
19 years ago
Russell Bryant 06f618a1ca Remove an XXX comment noting that it would be nice for a declaration to be
19 years ago
Russell Bryant ad094d5109 Merged revisions 77785 via svnmerge from
19 years ago
Russell Bryant a2fc80d4a6 Merged revisions 77780 via svnmerge from
19 years ago
Joshua Colp 3733874f49 Merged revisions 77771 via svnmerge from
19 years ago
Joshua Colp 7bd9b905e4 Merged revisions 77460 via svnmerge from
19 years ago
Mark Michelson 57d5d489a7 Merged revisions 77380 via svnmerge from
19 years ago
Tilghman Lesher 03c973ab2d Merged revisions 77350 via svnmerge from
19 years ago
Tilghman Lesher 620a5a11e4 Merged revisions 77348 via svnmerge from
19 years ago
Russell Bryant f8483a0d04 Do a massive conversion for using the ast_verb() macro
19 years ago
Russell Bryant 3ed2deb7df Ensure that the read from /dev/urandom returns a positive result
19 years ago
Russell Bryant 77a75d46b2 Add a link to the list of assigned RTP payload types for convenience.
19 years ago
Luigi Rizzo 5a96f8aa72 document how the RTP marker bit is passed for video frames,
19 years ago
Luigi Rizzo f1aadc8161 add an entry for h263plus in an empty slot of the rtp types.
19 years ago
Mark Michelson b37f7ab577 Merged revisions 77154 via svnmerge from
19 years ago
Luigi Rizzo a1a5701821 change the debug level to 3 for an exceedingly annoying message
19 years ago
Luigi Rizzo 8f4d728fe0 Merged revisions 77022 via svnmerge from
19 years ago
Joshua Colp 2db4e2b19b Move manager users list over to an rwlist.
19 years ago
Joshua Colp 58004e3741 Don't bother calling AST_RWLIST_EMPTY on a list before AST_RWLIST_TRAVERSE, it's just a double check.
19 years ago
Tilghman Lesher 55b1ee298e Merge the dialplan_aesthetics branch. Most of this patch simply converts applications
19 years ago
Russell Bryant eaebbdab61 (closes issue #10271)
19 years ago
Russell Bryant f1f72312bb (closes issue #10192)
19 years ago
Joshua Colp 93b72115d1 Add support for using /dev/urandom to get random numbers on systems that support it.
19 years ago
Russell Bryant d5b4fde291 Merged revisions 76132 via svnmerge from
19 years ago
Luigi Rizzo 925ebbb2b3 expose struct ast_ha so external code can do things such as printing it
19 years ago
Tilghman Lesher 4af3f12b29 Reduce some logging contention by switching several locks over to rwlocks
19 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.
19 years ago
Russell Bryant f3b1eab2f3 Remove some debug code that was added in revision 75894, which removed some
19 years ago
Luigi Rizzo 20448013df comment out some terribly expensive debugging code
19 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
19 years ago
Steve Murphy 5ac24b25d3 This corrects the problem with flags and %lld formats on 64-bit machines, where uint64_t is NOT acceptable for %lld, and also works on 32-bit machines. At least, with gcc.
19 years ago
Russell Bryant 9ffd55b6f9 Merged revisions 75403 via svnmerge from
19 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.
19 years ago
Luigi Rizzo 72b99a2817 Introduce ast_parse_arg() , a generic function to parse strings
19 years ago
Kevin P. Fleming 7413c78ddb Merged revisions 75306 via svnmerge from
19 years ago
Joshua Colp 344e6fd016 Change the function name slightly... just for kpfleming!
19 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.
19 years ago
Joshua Colp b8cd949cce Applications no longer need to call ast_module_user_add and ast_module_user_remove. This is now taken care of in the pbx_exec function outside of the application.
19 years ago
Russell Bryant c2603c1aeb resolve a compiler warning
19 years ago
Luigi Rizzo e950538bdd Small improvement to the STUN support so it can be used by
19 years ago
Joshua Colp 1f86a8bc2d Merged revisions 74922 via svnmerge from
19 years ago
Joshua Colp 8f3a5481dc Merged revisions 74888 via svnmerge from
19 years ago
Luigi Rizzo 75e2b34c4d more cleanup, this time to stun_handle_packet(). Among other things:
19 years ago
Luigi Rizzo 3d41c1ce94 a little bit of code cleanup to rtp.c, mostly to function
19 years ago
Joshua Colp fde3d4b086 Use linkedlist macros for UDPTL protocol list.
19 years ago
Luigi Rizzo deb98f98a0 add a bit of documentation on what the stun code in rtp.c does
19 years ago
Jason Parker 7c29e430c9 Merged revisions 74388 via svnmerge from
19 years ago
Jason Parker 8a5cea16bc Merged revisions 74374 via svnmerge from
19 years ago
Joshua Colp 1458095191 Merged revisions 74265 via svnmerge from
19 years ago