Commit Graph

687 Commits (b4eb773d5ea9befa25e8045a57dba550a690e541)

Author SHA1 Message Date
Terry Wilson f88ef55d74 Merged revisions 308815 via svnmerge from
14 years ago
Jeff Peeler 3d667d7c0f Send manager event for blackfilter only if it DOES NOT match.
14 years ago
Paul Belanger 3556e4c2d4 Replace ast_log(LOG_DEBUG, ...) with ast_debug()
14 years ago
David Vossel c26c190711 Asterisk media architecture conversion - no more format bitfields
14 years ago
Richard Mudgett f71322f239 Merged revisions 305923 via svnmerge from
14 years ago
Russell Bryant 1c469717a4 Merged revisions 302837 via svnmerge from
15 years ago
Russell Bryant b822431266 Merged revisions 302789 via svnmerge from
15 years ago
Russell Bryant 0a6082c45a Merged revisions 302785 via svnmerge from
15 years ago
Matthew Nicholson 8ad7304e66 Merged revisions 301595 via svnmerge from
15 years ago
Paul Belanger 0aacbecacc Merged revisions 293611 via svnmerge from
15 years ago
David Vossel 9189752c51 Merged revisions 292595 via svnmerge from
15 years ago
David Vossel a023be409e Merged revisions 291227 via svnmerge from
15 years ago
Olle Johansson 138d5165e3 Merged revisions 289951 via svnmerge from
15 years ago
Terry Wilson 9c1c787c36 Merged revisions 288572 via svnmerge from
15 years ago
Olle Johansson 3478cfffca Merged revisions 287471 via svnmerge from
15 years ago
Russell Bryant dce0822d60 Merged revisions 284065 via svnmerge from
15 years ago
Olle Johansson 96af228d76 Doxygen formatting changes
15 years ago
Paul Belanger e0dc0a7428 Merged revisions 279273 via svnmerge from
15 years ago
Tilghman Lesher d09cf65ff8 Merged revisions 278023 via svnmerge from
15 years ago
Mark Michelson 6fa79e8f77 Make ACLs IPv6-capable.
15 years ago
Tilghman Lesher d72336e83f Merged revisions 277261 via svnmerge from
15 years ago
Richard Mudgett ec37ffbdaf ast_callerid restructuring
15 years ago
Mark Michelson cd4ebd336f Add IPv6 to Asterisk.
15 years ago
Matthew Nicholson a1a08a7338 Fixed whitespace problems
15 years ago
Matthew Nicholson 269989c50f Altered my comment about TCP_NODELAY
15 years ago
Matthew Nicholson 2dc3b3a8c2 Set TCP_NODELAY on manager TCP sockets to prevent delays on outgoing packets. This regression was introduced in r48338.
15 years ago
Tilghman Lesher aed189605b Permission checking for the system application is backwards.
15 years ago
Paul Belanger c9a0c500ae Correct manager variable 'EventList' case.
15 years ago
David Vossel 3a875d8524 minor fixes for white/black event filters
15 years ago
Jeff Peeler 42c24b585a Add regular expression filtering for manager events.
15 years ago
Tilghman Lesher de625d9c08 Event well was going dry.
15 years ago
Tilghman Lesher 0807833f8d Verify event is not NULL before attempting to lower its usecount.
15 years ago
Richard Mudgett afd4454c44 Generic Advice of Charge.
15 years ago
Richard Mudgett 28264c52b9 Add ETSI Advice Of Charge (AOC) event reporting.
15 years ago
Tilghman Lesher 7718567b24 Eliminate stale manager events after a set interval, even if AMI clients don't query for them.
15 years ago
Terry Wilson 0390dae08d Merge the rest of the FullyBooted patch
15 years ago
Leif Madsen fa5350f7d7 Missing newlines added to Set-Cookie line in manager.c
15 years ago
Leif Madsen 193d495a8a Recorded merge of revisions 263456 via svnmerge from
15 years ago
Paul Belanger b2f59bea24 New 'manager show settings' CLI command.
15 years ago
Matthew Nicholson 2724f89bba Merged revisions 257070 via svnmerge from
15 years ago
Mark Michelson e24661fd18 Merge Call completion support into trunk.
15 years ago
Russell Bryant 3da9f8ed19 Resolve more compiler warnings on FreeBSD.
15 years ago
Jeff Peeler 80d3e91714 Optimization to manager events.
15 years ago
Olle Johansson 7c61a7105f Change api for pbx_builtin_setvar to actually return error code if a function can't be written to.
16 years ago
Olle Johansson 52b0cb912b Merged revisions 242850 via svnmerge from
16 years ago
Sean Bright e612d87695 Convert a few places to use ast_calloc_with_stringfields where applicable.
16 years ago
Tilghman Lesher 31e93b2865 Merged revisions 238915 via svnmerge from
16 years ago
Jeff Peeler 5b36dd59ea Enhance AMI redirect to allow channels to be redirected to different places.
16 years ago
Jeff Peeler 51df77df8b Merged revisions 232581 via svnmerge from
16 years ago
Jeff Peeler d01451c076 Make manager response to "Action: events" finish with empty line
16 years ago
Tilghman Lesher 5e2aa190fe Display a list of channel variables in each channel-oriented event.
16 years ago
Tilghman Lesher d8e0c58437 Expand codec bitfield from 32 bits to 64 bits.
16 years ago
Olle Johansson 037a6d287b Add destruction of iterators to avoid problems with refcounters
16 years ago
Russell Bryant b0778107c7 Resolve a warning from gcc 4.4.1.
16 years ago
David Brooks d87006ca1c AMI hook interface
16 years ago
Tilghman Lesher c6a34a201e Merged revisions 226138 via svnmerge from
16 years ago
Kevin P. Fleming cdd1f9e296 Finish implementaton of astobj2 OBJ_MULTIPLE, and convert ast_channel_iterator to use it.
16 years ago
Kevin P. Fleming d04158f5b1 Eliminate unnecessary include of version.h in manager.c.
16 years ago
Sean Bright 2ee2947a55 Properly terminate the response to the manager Ping action.
16 years ago
Tilghman Lesher 006b0b480b Properly initialize the session to prevent a crash.
16 years ago
Tilghman Lesher b8c75efa7e Ensure that we check for the special value CONFIG_STATUS_FILEINVALID.
16 years ago
Sean Bright 98f42ac6fa Merged revisions 212763 via svnmerge from
16 years ago
Tilghman Lesher 642bec4d6f AST-2009-005
16 years ago
Mark Michelson b1d9b989ee Merged revisions 207714 via svnmerge from
16 years ago
Russell Bryant 4cf8a968fd Add an API for reporting security events, and a security event logging module.
16 years ago
Mark Michelson e403a7fdfb Add timestamp to response to "Ping" manager action.
16 years ago
Russell Bryant 0264eef115 Merge the new Channel Event Logging (CEL) subsystem.
16 years ago
Russell Bryant 3c23511069 Don't claim a char * is a mansession object.
16 years ago
Kevin P. Fleming 82fb56886e More 'static' qualifiers on module global variables.
16 years ago
Russell Bryant 1630c85861 Constification and remove some unused code.
16 years ago
Sean Bright 68d44ce5ff Add ActionID to CoreShowChannel event.
16 years ago
Sean Bright bbd9f040e1 Include startup and reload date in the CoreStatus manager message.
16 years ago
Eliel C. Sardanons 2c882626a0 Implement a new element in AstXML for AMI actions documentation.
16 years ago
Kevin P. Fleming e6b2e9a750 Const-ify the world (or at least a good part of it)
16 years ago
Eliel C. Sardanons e45d681d15 Fix the CLI command 'manager show command' documentation and functionality.
16 years ago
Eliel C. Sardanons 9e5da09a6b Rollback commit 195367.
16 years ago
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
16 years ago
Russell Bryant 1d46bb0d0f Resolve a memory leak that would occur on an invalid channel given to Action: Status
16 years ago
Mark Michelson c668cbfbfc Reverting commit number 173028 as there are some
16 years ago
Mark Michelson 7db67f9ca7 Add a CLI command to log out a manager user
16 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.
17 years ago
Kevin P. Fleming 1a6711a42d Merged revisions 104015 via svnmerge from
17 years ago
Jason Parker 2aa1c03667 Even more sane permissions. This should be handled via a umask, like in many other places.
17 years ago
Jason Parker 7dd21605f3 Use slight more sane permissions
17 years ago
Russell Bryant d42f6f7ce5 Fix build on *BSD. These permissions constants are not available there.
17 years ago
Jeff Peeler 16a14a4cd8 Requested changes from Pari, reviewed by Russell.
17 years ago
Joshua Colp c81350d6f6 Just some minor coding style cleanup...
17 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
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