Commit Graph

411 Commits (283f63c594d0c4327c51fdae0587a6a9f1cb15d3)

Author SHA1 Message Date
Eliel C. Sardanons 311c997896 Avoid autocompleting passed the action name argument in the CLI command.
16 years ago
Eliel C. Sardanons 8c5643b2f9 Do not lock the 'sessions' container, lock the allocated 'session'.
16 years ago
Eliel C. Sardanons 68a37433bc Fix a crash when logging out from the AMI and avoid astobj2 warning messages.
16 years ago
Kevin P. Fleming a3af213506 Remove rarely-used event_log/LOG_EVENT support
16 years ago
David Vossel ca138fc807 Consistent SSL/TLS options across conf files
16 years ago
Joshua Colp 68a9f7aca1 Fix a bug where we tried to send events out when no sessions container was present.
16 years ago
David Vossel 8f0b88c8c8 TLS/SSL private key option
16 years ago
Russell Bryant cba19c8a67 Convert the ast_channel data structure over to the astobj2 framework.
16 years ago
Tilghman Lesher ce6ebaef97 Support HTTP digest authentication for the http manager interface.
16 years ago
Doug Bailey 9c2ff7bb1e Merged revisions 189391 via svnmerge from
16 years ago
Tilghman Lesher 1030a25ac9 Modify headers and macros, according to Russell's suggestions on the -dev list
16 years ago
Tilghman Lesher 39808fa953 Merged revisions 187428 via svnmerge from
16 years ago
Mark Michelson 4d42c73c55 Merged revisions 186719 via svnmerge from
16 years ago
Tilghman Lesher be40f3a33c Merge changes from str_substitution that are unrelated to that branch.
16 years ago
Mark Michelson f1707e95e5 Address Russell's comments regarding rev 185704.
16 years ago
Mark Michelson 378c2e9d2a Allow the AMI Hangup command to accept a Cause header.
16 years ago
Russell Bryant f745326750 Use ast_random() instead of rand() to ensure we use the best RNG available.
16 years ago
Joshua Colp 951cbf11d4 Reset the thread local string buffer when handling the UserEvent action.
16 years ago
Mark Michelson e909bfcea9 Fix an fd leak that would occur in HTTP AMI sessions
17 years ago
Russell Bryant 1d46bb0d0f Resolve a memory leak that would occur on an invalid channel given to Action: Status
17 years ago
Mark Michelson c668cbfbfc Reverting commit number 173028 as there are some
17 years ago
Mark Michelson 7db67f9ca7 Add a CLI command to log out a manager user
17 years ago
Steve Murphy 268ac221a2 Merged revisions 172030 via svnmerge from
17 years ago
Tilghman Lesher 071301029c Merged revisions 169364 via svnmerge from
17 years ago
Russell Bryant c2999a8366 Introduce ast_careful_fwrite() and use in AMI to prevent partial writes.
17 years ago
Jeff Peeler 4e4093ab48 (closes issue #13993)
17 years ago
Russell Bryant 0859a4e30c Merged revisions 164806 via svnmerge from
17 years ago
Tilghman Lesher c8223fc957 Merge ast_str_opaque branch (discontinue usage of ast_str internals)
17 years ago
Tilghman Lesher 58716e94ba Allocate enough space initially for the message.
17 years ago
Eliel C. Sardanons 1e8e12efcf Janitor, use ARRAY_LEN() when possible.
17 years ago
Jason Parker 85034a7f8e Another place this is missing
17 years ago
Jason Parker b147256fb5 Fix typo when ListCategories returns none.
17 years ago
Sean Bright 4dc60e7560 Merged revisions 159976 via svnmerge from
17 years ago
Michiel van Baak 1b6a5b7524 Merged revisions 159897 via svnmerge from
17 years ago
Kevin P. Fleming aa0e888629 add support for event suppression for AMI-over-HTTP
17 years ago
Sean Bright fd8caa1778 This is basically a complete rollback of r155401, as it was determined that
17 years ago
Matthew Nicholson f3d086256c Added EVENT_FLAG_AGI and used it for manager calls in res_agi.c
17 years ago
Jason Parker ea1446635e Make sure we add the Event header for CoreShowChannels.
17 years ago
Tilghman Lesher 777d5ee470 Ping is missing the standard double-newline after the event.
17 years ago
Tilghman Lesher c2d30ffaa5 Merged revisions 156688 via svnmerge from
17 years ago
Pari Nannapaneni f50966c16a changing comment style to conform coding guidelines
17 years ago
Pari Nannapaneni 7a2b0102f1 Patch by Ryan Brindley -- Make sure that manager refuses any duplicate 'new category' requests in updateconfig
17 years ago
Sean Bright 30d1744ffc Add ability to pass arbitrary data to the ao2_callback_fn (called from
17 years ago
Tilghman Lesher 2cc8e25222 Slightly optimize ast_devstate_str and rename global functions devstate2str and config_text_file_save to have an ast_ prefix
17 years ago
Kevin P. Fleming bd4eb070f3 bring over all the fixes for the warnings found by gcc 4.3.x from the 1.4 branch, and add the ones needed for all the new code here too
17 years ago
Kevin P. Fleming 1ddc834b39 cleaup of the TCP/TLS socket API:
17 years ago
BJ Weschke 09e9b5d208 Using the GetVar handler in AMI is potentially dangerous (insta-crash [tm]) when you use a dialplan function that requires a channel and then you don't provide one or provide an invalid one in the Channel: parameter. We'll handle this situation exactly the same way it was handled in pbx.c back on r61766.
17 years ago
Mark Michelson 4ad187cba4 Merged revisions 150304 via svnmerge from
17 years ago
Mark Michelson 8a1d9d1678 Merged revisions 150298,150301 via svnmerge from
17 years ago
Mark Michelson 9851feb8fb The priority was unnecessary for the manager atxfer, so it has
17 years ago
Michiel van Baak 90751b16ca Merge the cli_cleanup branch.
17 years ago
Tilghman Lesher 08af5bb312 Create a new config file status, CONFIG_STATUS_FILEINVALID for differentiating
17 years ago
Mark Michelson 5dfefa5ee6 Merged revisions 140488 via svnmerge from
17 years ago
Jeff Peeler 4a122b5d8c Merged revisions 139927 via svnmerge from
17 years ago
Jeff Peeler 618b3eb8f8 Merged revisions 139621 via svnmerge from
17 years ago
Sean Bright b69c8e6ab5 Another big chunk of changes from the RSW branch. Bunch of stuff from main/
17 years ago
Kevin P. Fleming 7df8b8b848 make datastore creation and destruction a generic API since it is not really channel related, and add the ability to add/find/remove datastores to manager sessions
17 years ago
Brandon Kruse ab64d7181a Revert tilghman and pari's code changes, as
17 years ago
Brett Bryant 41a6477d82 Fixes problem where manager users loaded from users.conf would be
17 years ago
Tilghman Lesher 0e76506c40 Russell pointed out that using ast_strdupa() within a loop like this is
17 years ago
Tilghman Lesher 6a80af637c Fix trunk devmode
17 years ago
Pari Nannapaneni b5a207c6be updateconfig is not uri decoding variables,values from the GET url
17 years ago
Tilghman Lesher 49715c05f1 Merged revisions 130959 via svnmerge from
17 years ago
Michiel van Baak e58fecde43 Merged revisions 130573 via svnmerge from
17 years ago
Tilghman Lesher 4ff527903e Code wasn't ready to be merged - see -dev list discussion
17 years ago
Brett Bryant d185405755 Janitor project to convert sizeof to ARRAY_LEN macro.
17 years ago
Olle Johansson 6f400edeab Changing name of global api call to ast_*
17 years ago
Olle Johansson 45e79490ba Implement flags for AGI in the channel structure so taht "show channels" and
17 years ago
Tilghman Lesher 885d17506b Keep ast_app_inboxcount API compatible with 1.6.0.
17 years ago
Brett Bryant 2aae0ba13d Updates all usages of ast_tcptls_session_instance to be managed by reference counts so that they only get destroyed when all threads are done using
17 years ago
Russell Bryant 44e1c94465 Merged revisions 119742 via svnmerge from
17 years ago
Brett Bryant d32c2d6fd9 Add new functionality to http server that requires manager authentication for any path that includes a directory named 'private'. This patch also
17 years ago
Luigi Rizzo d5c75ee032 + Implement a variant of astman_get_header() to return the first or
17 years ago
Luigi Rizzo 18065a175d Use casts or intermediate variables to remove a number
17 years ago
Olle Johansson 29b1d73567 Add support for codec settings in originate via call file and manager.
17 years ago
Mark Michelson 7daebcd610 Adding support for "urgent" voicemail messages. Messages which are
17 years ago
Tilghman Lesher 73581f3905 Optionally display the value of several variables within the Status command.
17 years ago
Tilghman Lesher b5a127daac Modify TIMEOUT() to be accurate down to the millisecond.
17 years ago
Russell Bryant c0308de13e Merged revisions 114591 via svnmerge from
17 years ago
Russell Bryant a3f3613d66 Correct action_ping() and action_events() with regards to Manager 1.1
17 years ago
Russell Bryant 0bb3c15606 Merged revisions 114284 via svnmerge from
17 years ago
Mark Michelson 115d5024a1 Merged revisions 114051 via svnmerge from
17 years ago
Mark Michelson 2580dfc6fb Merged revisions 112468 via svnmerge from
17 years ago
Terry Wilson 1eb31edde2 Re-add HTTP post support by moving to res_http_post.c
17 years ago
Tilghman Lesher ef4eff9a9b Add the "config reload <conffile>" command, which allows you to tell Asterisk
17 years ago
Mark Michelson 43d70915bb This ensures that the manager interface is not enabled by default. Prior to this
17 years ago
Kevin P. Fleming 75cb5032e6 actually implement HTTP request dispatching based on both URI and method; reduce duplication of data when generating responses using ast_http_error()
17 years ago
Kevin P. Fleming e191b51a08 start the process of changing HTTP request dispatching to do it based on *both* URI and method, so that POST support can move into a module; move http.c's private function prototypes into _private.h
17 years ago
Terry Wilson b02bc230af Go through and fix a bunch of places where character strings were being interpreted as format strings. Most of these changes are solely to make compiling with -Wsecurity and -Wformat=2 happy, and were not
17 years ago
Joshua Colp 760fc3403c Make sure values are interpreted as character strings and not format strings.
17 years ago
Mark Michelson 963a2cec51 Make this compile
17 years ago
Mark Michelson d236e3d1b1 Fixing a potential buffer overflow in the manager command ModuleCheck.
17 years ago
Russell Bryant 8bbef5f996 Rename ast_tcptls_server_instance to session_instance, since this pertains to
17 years ago
Mark Michelson 2ed30d47e8 Adding the Atxfer manager command. With this, you may initiate
17 years ago
Mark Michelson 6cf6059402 There are several places in manager.c where BUFSIZ is used for a buffer
17 years ago
Tilghman Lesher cfc1df4c1a Whitespace changes only
17 years ago
Russell Bryant 96e04792bd add a destroy API call for a server instance
17 years ago
Russell Bryant cc55483858 More public API name changes to use an appropriate ast_ prefix
17 years ago
Russell Bryant efb1e30a38 Rename public object server_instance to ast_tcptls_server_instance
17 years ago
Tilghman Lesher 133a18478c Merged revisions 104704 via svnmerge from
17 years ago
Russell Bryant 0036cde5f3 Rename version.h to ast_version.h. Next, I will be re-adding version.h as an
17 years ago
Tilghman Lesher f92a3e119e Move Originate to a separate privilege and require the additional System privilege to call out to a subshell.
18 years ago
Kevin P. Fleming 1a6711a42d Merged revisions 104015 via svnmerge from
18 years ago
Jason Parker 2aa1c03667 Even more sane permissions. This should be handled via a umask, like in many other places.
18 years ago
Jason Parker 7dd21605f3 Use slight more sane permissions
18 years ago
Russell Bryant d42f6f7ce5 Fix build on *BSD. These permissions constants are not available there.
18 years ago
Jeff Peeler 16a14a4cd8 Requested changes from Pari, reviewed by Russell.
18 years ago
Joshua Colp c81350d6f6 Just some minor coding style cleanup...
18 years ago
Tilghman Lesher fa4c9a958b CoreSettings and CoreStatus are missing the terminating "\r\n". Also, some
18 years ago
Russell Bryant b995c78c31 Merge changes from team/group/sip-tcptls
18 years ago
Joshua Colp e8dee9f956 Make sure the user's manager secret exists, even if it is blank.
18 years ago
Tilghman Lesher 3968dd1c3d Conversion to load manager.conf into memory did not convert the password
18 years ago
Tilghman Lesher 247ca0a827 oops, missed the case of a 0 permission (which should mean everybody is allowed, not nobody)
18 years ago
Tilghman Lesher 857e3412f4 Several manager changes:
18 years ago
Joshua Colp 96f5a494cf Move ModuleLoad and ModuleCheck manager commands from loader.c to manager.c. Previously they would get registered twice because of the way manager.c operates.
18 years ago
Russell Bryant 54bc2c20b6 Now that the version.h file was getting properly regenerated every time the svn
18 years ago
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