Commit Graph

293 Commits (f47b03877b87d725b8ab442936df792c2c352aee)

Author SHA1 Message Date
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