mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 11:06:31 +00:00
res_ari.c: Add additional output to ARI requests when debug is enabled
When ARI debug is enabled the logs will now output http method and the uri.
Fixes: #666
(cherry picked from commit 29106567e7
)
This commit is contained in:
committed by
Asterisk Development Team
parent
a2276abdc5
commit
b496feae38
@@ -1006,6 +1006,7 @@ static int ast_ari_callback(struct ast_tcptls_session_instance *ser,
|
||||
|
||||
ast_str_append(&buf, 0, "<--- ARI request received from: %s --->\n",
|
||||
ast_sockaddr_stringify(&ser->remote_address));
|
||||
ast_str_append(&buf, 0, "%s %s\n", ast_get_http_method(method), uri);
|
||||
for (var = headers; var; var = var->next) {
|
||||
ast_str_append(&buf, 0, "%s: %s\n", var->name, var->value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user