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 dd91f09481)
This commit is contained in:
Martin Nystroem
2024-03-22 13:23:58 +01:00
committed by Asterisk Development Team
parent a07b5ca39e
commit 583a168082

View File

@@ -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);
}