Commit Graph

1118 Commits (620e580ed671ca6bc34e2e6df64ac680dff7c371)

Author SHA1 Message Date
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
Tilghman Lesher ba857cc8a9 Merged revisions 73985 via svnmerge from
19 years ago
Joshua Colp 56503686c9 Merged revisions 73980 via svnmerge from
19 years ago
Joshua Colp 97f5ed8be3 Make sure the idText variable is empty, and put it in the right place for the manager ack packet. (issue #10152 reported by srt)
19 years ago
Tilghman Lesher 935bd057f8 Restore EXP2 and LOG2 functions, by providing mathematical identify functions, when the underlying C functions are not available.
19 years ago
Steve Murphy 1827bcba77 These changes fix 10145 and 10150, a prob with BSD and exp2/log2 not existing, as well as the bootstrap needing a small upgrade for openbsd. Many thanks to mvanbaak
19 years ago
Kevin P. Fleming d544d6377e eliminate another batch of compiler warnings (and a bug, although in code we aren't using)... note that this required manually editing the lexer output code (generated by flex), so some of them will come back if the lexer is rebuilt
19 years ago
Kevin P. Fleming a526627d8f comment out some code that is not used and does not have prototypes
19 years ago
Russell Bryant 2b0ec81639 resolve a compiler warning so i can build in dev mode
19 years ago
Steve Murphy 6a4efe5d5a In regards to changes for 9508, expr2 system choking on floating point numbers, I'm adding this update to round out (no pun intended) and make this FP-capable version of the Expr2 stuff interoperate better with previous integer-only usage, by providing Functions syntax, with 20 builtin functions for floating pt to integer conversions, and some general floating point math routines that might commonly be used also. Along with this, I made it so if a function was not a builtin, it will try and find it in the ast_custom_function list, and if found, execute it and collect the results. Thus, you can call system functions like CDR(), CHANNEL(), etc, from within $\[..\] exprs, without having to wrap them in $\{...\} (curly brace) notation. Did a valgrind on the standalone and made sure there's no mem leaks. Looks good. Updated the docs, too.
19 years ago
Joshua Colp f4943f3211 Merged revisions 73355 via svnmerge from
19 years ago
Russell Bryant d2a85e5f64 After some discussion on the asterisk-dev list, we determined that this approach
19 years ago
Steve Murphy 94b934c8f6 Merged revisions 72933 via svnmerge from
19 years ago
Russell Bryant bc8cd717ef Add a CLI command to output docs on CLI commands to a file
19 years ago
Russell Bryant 1bb2c2a78f Add a CLI command to dump the built-in manager action documentation
19 years ago
Russell Bryant 3371051d74 Merged revisions 72926 via svnmerge from
19 years ago
Russell Bryant 9aa28d2d3d Add "core dump funcdocs" CLI command
19 years ago
Russell Bryant f1468915c7 change the "core dump appdocs" CLI command to use the new API for creating
19 years ago
Joshua Colp 73d33590ba Merged revisions 72888 via svnmerge from
19 years ago
Russell Bryant 4a6f3770f9 Fix my recent change for sending large files via the http server. This code
19 years ago
Luigi Rizzo 2392758621 As the comment in the code says:
19 years ago
Russell Bryant 408dbc4304 Merge changes from team/russell/http_filetxfer
19 years ago
Luigi Rizzo 3caa225108 Make sure that we properly recurse in subdirectories to
19 years ago
Tilghman Lesher abe50d3e4b Merged revisions 72556 via svnmerge from
19 years ago
Brett Bryant a17e7a01a3 Merged revisions 72383 via svnmerge from
19 years ago
Brett Bryant 2a46445481 Merged revisions 72335 via svnmerge from
19 years ago
Jason Parker ed101a5319 Fix a segfault when trying to tab complete the "core show uptime" command.
19 years ago
Jason Parker e48dbce674 Add support for Thai language in say.c
19 years ago
Brett Bryant dee58f2531 Merged revisions 72260 via svnmerge from
19 years ago
Joshua Colp 809c1398d7 Merged revisions 72257 via svnmerge from
19 years ago
Joshua Colp 2c52ab7afb Fix -T option. (issue #10073 reported by xylome)
19 years ago
Joshua Colp 7feaaaaf04 Merged revisions 72148 via svnmerge from
19 years ago
Russell Bryant 36b0448bc1 Merged revisions 72112 via svnmerge from
19 years ago
Jason Parker 792beb4686 Merged revisions 71915 via svnmerge from
19 years ago
Steve Murphy af42e2ca7b Luigi's suggestion to move the llfrom decl was a good one. Done.
19 years ago
Russell Bryant 5590f67f58 Convert so more logging to ast_debug (issue #10045, dimas)
19 years ago
Joshua Colp 694088e06f Merged revisions 71422 via svnmerge from
19 years ago
Russell Bryant 8f2d952945 Merged revisions 71362 via svnmerge from
19 years ago
Russell Bryant 80166c6de8 Conversions to ast_debug()
19 years ago
Tilghman Lesher d6c0627c4f Merged revisions 71289 via svnmerge from
19 years ago
Steve Murphy d17beedd5a Merged revisions 71230 via svnmerge from
19 years ago
Joshua Colp 6f98665672 Behold the magic of casting!
19 years ago
Steve Murphy 6a2af3c983 Merged revisions 71063 via svnmerge from
19 years ago
Jason Parker 68ac7f7633 Merged revisions 71068 via svnmerge from
19 years ago
Brett Bryant aff5425dea Merged revisions 71066 via svnmerge from
19 years ago
Tilghman Lesher a1bc823136 Issue 9990 - New API ast_mkdir, which creates parent directories as necessary (and is faster than an outcall to mkdir -p)
19 years ago
Jason Parker 0b98b2a659 Nothing to see here.
19 years ago
Jason Parker 7a1c2d94bb Add manager events for RTCP statistics.
19 years ago