mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-08 22:27:07 +00:00
- Convert the list of URI handlers to use the linked list macros. While doing
this, implementing locking of this list to make it thread-safe. - Add a "redirect" option to http.conf that allows redirecting one URI to another. I was inspired to do this while playing with the Asterisk GUI. I got tired of typing this URL to get to the GUI: http://localhost:8088/asterisk/static/config/cfgadvanced.html So, now I have the following line in http.conf: redirect=/=/asterisk/static/config/cfgadvanced.html Now, I can type the following into my browser and go to the GUI: http://localhost:8088 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -147,7 +147,7 @@ int ssl_setup(struct tls_config *cfg);
|
||||
typedef struct ast_str *(*ast_http_callback)(struct sockaddr_in *requestor, const char *uri, struct ast_variable *params, int *status, char **title, int *contentlength);
|
||||
|
||||
struct ast_http_uri {
|
||||
struct ast_http_uri *next;
|
||||
AST_LIST_ENTRY(ast_http_uri) entry;
|
||||
const char *description;
|
||||
const char *uri;
|
||||
int has_subtree;
|
||||
|
Reference in New Issue
Block a user