Commit Graph

595 Commits (aa5707b8891119741baae98cf7b51a00c0f99438)

Author SHA1 Message Date
Kevin P. Fleming d756129b1d Merged revisions 94824 via svnmerge from
18 years ago
Tilghman Lesher 2bed4ec968 Merged revisions 94808 via svnmerge from
18 years ago
Olle Johansson c92dafd551 Adding a new CLI command for "manager reload", which is important now that
18 years ago
Olle Johansson 130fe4000a Change manager so that registered accounts are stored in memory. This opens for a
18 years ago
Mark Michelson 74577dd091 I needed to increment the numbers used on the VERBOSITY_ATLEAST calls by 1.
18 years ago
Mark Michelson 83f152b95c Changed VERBOSITY_LEVEL to VERBOSITY_ATLEAST to be more accurate.
18 years ago
Mark Michelson 4f75e15665 After reading Russell's e-mail to the dev list stating that checking option_verbose is not
18 years ago
Olle Johansson 814d0ed4f8 - The Ping Action
18 years ago
Olle Johansson 7e38b474d9 Change description of new manager command
18 years ago
Olle Johansson 5af2cf109e Add manager command for showing all current channels.
18 years ago
Tilghman Lesher ce2f670228 Change cdr_manager to use a "CDR" level, rather than the (overcrowded) "call" level.
18 years ago
Russell Bryant fac7480820 Merged revisions 90348 via svnmerge from
18 years ago
Kevin P. Fleming c13ed407db restore behavior from the 1.4 branch... manager users created via users.conf should default to *all* permissions, not none
18 years ago
Kevin P. Fleming 57c2bcca86 Merged revisions 90098 via svnmerge from
18 years ago
Tilghman Lesher eac58d0fb3 Merged revisions 89536 via svnmerge from
18 years ago
Luigi Rizzo e0ff5fef5c remove a bunch of useless #include "options.h"
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
Luigi Rizzo 9335ace850 another bunch of include removals (errno.h and asterisk/logger.h)
18 years ago
Luigi Rizzo a0f06d0dd5 start using asterisk/network.h for network related 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
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
Luigi Rizzo 7f8ecd2cd3 make the 'name' and 'value' fields in ast_variable const char *
18 years ago
Kevin P. Fleming edc78d6023 improve linked-list macros in two ways:
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
Russell Bryant 40e7d22cd7 Merged revisions 84742 via svnmerge from
18 years ago
Dwayne M. Hubbard 71a0672560 Merged revisions 84274 via svnmerge from
18 years ago
Dwayne M. Hubbard bd5b6cea68 Merged revisions 84018 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
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
Joshua Colp e4c8ac7abd (closes issue #10695)
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
Tilghman Lesher 56b9568164 Don't reload a configuration file if nothing has changed.
18 years ago
Joshua Colp 218241f174 Use the linkedlists.h macros for the manager action list.
18 years ago
Russell Bryant 06f618a1ca Remove an XXX comment noting that it would be nice for a declaration to be
18 years ago
Russell Bryant f8483a0d04 Do a massive conversion for using the ast_verb() macro
18 years ago
Joshua Colp 2db4e2b19b Move manager users list over to an rwlist.
18 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.
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 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)
18 years ago
Russell Bryant d2a85e5f64 After some discussion on the asterisk-dev list, we determined that this approach
18 years ago
Russell Bryant 1bb2c2a78f Add a CLI command to dump the built-in manager action documentation
18 years ago
Russell Bryant 3371051d74 Merged revisions 72926 via svnmerge from
18 years ago
Russell Bryant 408dbc4304 Merge changes from team/russell/http_filetxfer
18 years ago
Tilghman Lesher abe50d3e4b Merged revisions 72556 via svnmerge from
18 years ago
Russell Bryant 80166c6de8 Conversions to ast_debug()
18 years ago
Tilghman Lesher d6c0627c4f Merged revisions 71289 via svnmerge from
18 years ago
Jason Parker 7a1c2d94bb Add manager events for RTCP statistics.
18 years ago
Kevin P. Fleming 5fdba27ea2 Merged revisions 69392 via svnmerge from
18 years ago
Brett Bryant bbefe59e9d Couple of manager ssl options weren't loading because of a typo.
18 years ago
Jason Parker bd3de6d0f1 Change displayconnects option in manager.conf to be per-user.
18 years ago
Joshua Colp 21f5078843 Add username completion for manager show user CLI command. (issue #9929 reported by eliel)
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
Russell Bryant 7b75537684 Minor formatting change to test closing mantis issues through commit tags
18 years ago
Russell Bryant 3cc39e0fd0 Minor formatting change to test closing mantis issues through commit tags
18 years ago
Jason Parker ac8fc3ad2d Make sure we default allowmultiplelogin to on/yes, per the default stated in the config.
18 years ago
Russell Bryant 4b3a3fb14c Add a new API call for creating detached threads. Then, go replace all of the
18 years ago
Joshua Colp 22cf94111d Merged revisions 65902 via svnmerge from
18 years ago
Russell Bryant 7ee1303796 Add an option that lets you only allow one connection at a time for each
18 years ago
Jason Parker 8b5634e4b4 Merged revisions 63982 via svnmerge from
18 years ago
Russell Bryant 08d37d451b Merged revisions 63886 via svnmerge from
18 years ago
Russell Bryant 7c5aab75b0 Merged revisions 63804 via svnmerge from
18 years ago
Russell Bryant 6606166454 Convert spaces to tabs for indentation.
18 years ago
Olle Johansson 6da70edbcf Add "CoreStatus" - from the moremanager branch.
18 years ago
Olle Johansson 51f99c5265 - Add manager command CoreSettings
18 years ago
Russell Bryant a751038fbe Merged revisions 61787 via svnmerge from
18 years ago
Russell Bryant fa9d9af754 When building a JSON encoded string in the GetConfigJSON manager action, escape
18 years ago
Russell Bryant 97d0661327 Merged revisions 61690 via svnmerge from
18 years ago
Tilghman Lesher 438beb3a1b Merged revisions 61683 via svnmerge from
18 years ago
Tilghman Lesher 47dd5a15af Issue 6082 - New DTMF event for manager
18 years ago
Olle Johansson c1d8971831 Add hint to ExtensionStatus AMI event in manager
18 years ago
Russell Bryant 0a9750ef9f Merged revisions 60603 via svnmerge from
18 years ago
Russell Bryant 5f629360ec Merged revisions 60137 via svnmerge from
18 years ago
Russell Bryant 53dca1a7e4 Merged revisions 58165 via svnmerge from
18 years ago
Olle Johansson e916cf45da Doxygen updates and corrections
18 years ago
Russell Bryant 0d3a211335 Introduce a new manager action, GetConfigJSON, which is intended to improve
18 years ago
Joshua Colp cd56d84085 Properly handle an error result from a manager action. This could have left the action list permanently locked for reading.
18 years ago
Olle Johansson 8ac0fb2bc3 New CLI command "Core show settings" to list some core settings
18 years ago
Joshua Colp cd1973e4bc It is with pleasure that I announce the return of rawman support through the HTTP server. (issue #9013 reported by Jynger)
19 years ago
Tilghman Lesher 5f3b3d2358 Merged revisions 53246 via svnmerge from
19 years ago
Russell Bryant b233892198 Merged revisions 53046 via svnmerge from
19 years ago
Russell Bryant 9e1370e6c6 Merged revisions 52688 via svnmerge from
19 years ago
Russell Bryant 9540b7fcea The changes for trunk are less extensive, but include
19 years ago
Joshua Colp 68c1f5338f Close file after we do the translation, and map memory for both reading/writing. (issue #8886 reported by cwegener)
19 years ago
Russell Bryant ac884e0c3a Merged revisions 51781 via svnmerge from
19 years ago
Russell Bryant 8137080816 Merged revisions 51750 via svnmerge from
19 years ago
Russell Bryant 606ee0dab4 Break out of the config processing loop for manager.conf once the correct user
19 years ago
Russell Bryant 0e8bd82efe Fix trunk version of manager support for users.conf. Now it actually pays
19 years ago
Russell Bryant 2c5d2168c1 Merged revisions 51233 via svnmerge from
19 years ago
Joshua Colp 2964e9eab6 Merged revisions 50895 via svnmerge from
19 years ago
Joshua Colp e82a8a1d0a Exit from session loop upon error (ie: they disconnected) and don't do any buffer manipulation in do_message. get_input will handle it.
19 years ago
Joshua Colp c64ced140f Merged revisions 50602 via svnmerge from
19 years ago
Kevin P. Fleming 4a6ed271f5 probably shouldn't leave the mmap'ed file hanging around in memory
19 years ago
Kevin P. Fleming d0f3b18d16 a little more const-ification
19 years ago
Kevin P. Fleming d0542012c0 Merged revisions 49680 via svnmerge from
19 years ago
Kevin P. Fleming 3d376fca97 use mmap() to read in the results of the manager action for an HTTP request, instead of reading it into a buffer
19 years ago
Kevin P. Fleming 87b9abc892 Merged revisions 49676 via svnmerge from
19 years ago
Joshua Colp af3e5903c8 It's pretty difficult to pthread_kill a thread that doesn't exist. (issue #8681 reported by bkruse)
19 years ago
Olle Johansson e5b5a92a56 Fix manager too.
19 years ago
Kevin P. Fleming adca0ff14b Merged revisions 49006 via svnmerge from
19 years ago
Russell Bryant 08cfbe97b8 Remove a debug message. If this is still needed for debugging something,
19 years ago
Luigi Rizzo 79fb4e4579 Replace ast_build_string with ast_str_*().
19 years ago
Luigi Rizzo 20b382cfff replace ast_build_string() with ast_str_*() functions.
19 years ago
Luigi Rizzo 055abfe9d9 simplify the ast_dynamic_str_*.... routines by
19 years ago
Luigi Rizzo 4e427d84bd unbreak the output for http session.
19 years ago
Luigi Rizzo 77e986e0d0 properly initialize a malloc'ed buffer
19 years ago
Luigi Rizzo 1b45dc4eee normalize the scanning of "general" options in the config file.
19 years ago
Luigi Rizzo f6c706c71b make sure the argument to ast_malloc() is > 0.
19 years ago
Luigi Rizzo 437f4288cd - Generalize the function ssl_setup() so that the certificate info
19 years ago
Steve Murphy cb5e37e56c Merged revisions 47986,47995,47997,48001,48003-48004,48008-48014,48016,48018-48019 via svnmerge from
19 years ago
Luigi Rizzo 605b9a914e remove duplicated code to start the server threads, use
19 years ago
Luigi Rizzo ce6804c877 Part of the transformations necessary to add TLS support,
19 years ago
Luigi Rizzo 0b798e298d don't use outputstr in the struct mansession, it's just
19 years ago
Luigi Rizzo 3dbc33ed4f initialize the dynamic string in a sane way.
19 years ago
Luigi Rizzo 29985ff8c3 do not return 500 Internal error if the AMI command provides
19 years ago
Luigi Rizzo 77ae04d7c1 mosty comment and documentation cleanup on waitevent.
19 years ago
Luigi Rizzo 0153bdd72c Move the code to purge stale sessions to a function,
19 years ago
Luigi Rizzo 5ce08d37ca Various simplifications of the code:
19 years ago
Luigi Rizzo 1c570d9ba0 More informative message on invalid commands.
19 years ago
Luigi Rizzo a8e9428317 another normalization of AMI vs HTTP identification.
19 years ago
Luigi Rizzo d1dcb0de2a always use managerid to determine whether this is an AMI or HTTP session,
19 years ago
Mark Spencer cc0c154f0e Restore some sense of security to manager
19 years ago
Luigi Rizzo b3867180cf comments-only change:
19 years ago
Joshua Colp 980ce017ec Add support for manager hooks, so you could fire off manager events over IRC if you were crazy enough. (issue #5161 reported by anthm with mods by moi)
19 years ago
Luigi Rizzo 0bf4235ff1 add a new cli/manager.conf option "debug" to enable/disable
19 years ago
Tilghman Lesher 10875731ec Merged revisions 47051 via svnmerge from
19 years ago
Russell Bryant 59dbf47c91 Fix the new send text manager command. There is no way this could have worked.
19 years ago
Olle Johansson 1aa8c2cffc Add manager sendtext action. (Issue 6131, ZX81 - thanks!)
19 years ago
Olle Johansson 692dc8fd80 Issue #3930 - Add manager command for listing dialplan (coded april 2005, in bugtracker since)
19 years ago
Russell Bryant 0ca6a42d7e fix various spelling mistakes in comments (issue #8237, jmls)
19 years ago
Luigi Rizzo 6b2b63a909 fix a problem that i recently introduced when
19 years ago
Mark Spencer b7517f1231 Fix comment preservation code (thanks murf!)
19 years ago
Luigi Rizzo a7d5fcd8b8 i really think it is safe to commit this version, that
19 years ago
Luigi Rizzo edd8e11889 minor comment changes, code rearrangement and field renaming
19 years ago
Olle Johansson e19576388d Doxygen corrections
19 years ago
Luigi Rizzo e7c2295b81 more fixes to comments and very minor code rearrangement.
19 years ago
Luigi Rizzo 32214ffc02 implement proper XML/HTML formatting of multiple messages
19 years ago
Luigi Rizzo 9934b7f4d2 more documentation of data structure and functions.
19 years ago
Russell Bryant bd53e7ee4c Extend the thread storage API such that a custom initialization function can
19 years ago
Luigi Rizzo 71c67605ca silent warning from a debugging message (which will go away
19 years ago
Luigi Rizzo eee51dbd1c remove trailing whitespace
19 years ago
Luigi Rizzo 9e9edb05ec ouch! remember to unlink temporary files once done with them.
19 years ago
Luigi Rizzo 3c2eaaf1f0 + move output_format variables in the http section of the file;
19 years ago
Luigi Rizzo c046fb40d8 another bunch of comments on the data structures.
19 years ago
Luigi Rizzo a518165207 despite the large changes, this commit only moves functions
19 years ago
Luigi Rizzo a18accc09e more comment and formatting fixes, small simplifications
19 years ago
Matt O'Gorman 1783aef1e8 rizzo compile then commit, maybe even run it too ^_^
19 years ago
Luigi Rizzo 71cf14207c comment and cleanup the main thread.
19 years ago
Luigi Rizzo eb3767cafe create a new (internal, for the time being) function astman_start_ack()
19 years ago
Luigi Rizzo df06a40b05 more indentation cleanup from previous commits,
19 years ago
Luigi Rizzo 46b5c26399 create proper handlers for "Challenge" and "Login" actions,
19 years ago
Luigi Rizzo becfe17739 fix indentation from a commit of a couple of days ago
19 years ago
Luigi Rizzo 8e63fb21da another batch of simplifications to authenticate()
19 years ago
Luigi Rizzo d171c3d864 remove unused fields and unimplemented options.
19 years ago
Luigi Rizzo 998732456f first pass as simplifying authenticate(), avoiding whitespace changes
19 years ago
Luigi Rizzo bc66d9b7d8 more code simplifications
19 years ago
Luigi Rizzo c93be15b7e simplify ast_strings_to_mask
19 years ago
Luigi Rizzo efd87b68ee add a comment to remember that a block of code is
19 years ago
Luigi Rizzo 2102d73bf4 + move the enum declaration for output formats near the head
19 years ago
Luigi Rizzo 3a3b26658e merge xml_translate() and html_translate() into one function since
19 years ago
Joshua Colp 17fabe225d Warning be gone!
19 years ago
Luigi Rizzo 3e2a2bfd7e simplify authority_to_str() using ast_build_string()
19 years ago
Luigi Rizzo 3abf04cc26 Improve the XML formatting of responses coming from web interface.
19 years ago
Luigi Rizzo f2d12f4d06 open a temporary file to receive the output from cli commands
19 years ago
Luigi Rizzo 0c7e8f99a4 document xml_copy_escape() and add an extra function, namely
19 years ago
Luigi Rizzo 5f395bf38f + comment some unclear fields of struct mansession;
19 years ago
Luigi Rizzo 5fda2a874a + comment some unclear requirements for master_eventq
19 years ago
Luigi Rizzo 6d10a245b6 protect access to first_action with actionlock.
19 years ago
Russell Bryant 43f1054d07 Merged revisions 44945 via svnmerge from
19 years ago
Nadi Sarrar 0752be2ec0 Merged revisions 44921 via svnmerge from
19 years ago
Luigi Rizzo 684d1f1698 basically fix indentation of a large function after previous
19 years ago
Luigi Rizzo 35cada23f0 s cannot be null here, so remove the useless test and error-handling block.
19 years ago
Luigi Rizzo acd1073909 simplify logic in preparation to reduce indentation
19 years ago
Luigi Rizzo 3f641c6048 make sure sockets are blocking when they should be blocking.
19 years ago
Kevin P. Fleming 3c876af5cf Merged revisions 44378 via svnmerge from
19 years ago
Matt O'Gorman ae8cc3e18b bug #8076 check option_debug before printing to debug channel.
19 years ago
Tilghman Lesher 2b55678e1f Remove deprecated CLI apps from the core
19 years ago
Tilghman Lesher 4a58847fe2 Remove 1.4 changes from UPGRADE.txt, remove deprecated callerid field, remove deprecated SetGlobalVar app
19 years ago
Tilghman Lesher 70af28270d Constify the result of a config retrieval function, to avoid mutilation (issue 7983).
19 years ago
Jason Parker 4c2874b994 Commit the changes from issue #5240.
19 years ago
Jason Parker fc60c151d3 After discussing this with other people, we decided we'd like to try to do this a little differently.
19 years ago
Anthony LaMantia 3f3402d69e 5240 update
19 years ago
Kevin P. Fleming fcb999c01c merge qwell's CLI verbification work
19 years ago
Kevin P. Fleming c2c4f86c72 merge markster's usersconf branch with some slight changes
19 years ago
Russell Bryant 283bcf4c9f - simplify and improve astmm by using thread storage instead of a dynamic
19 years ago
Kevin P. Fleming 0a27d8bfe5 merge new_loader_completion branch, including (at least):
19 years ago