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)
releases/certified-20.7
Martin Nystroem 1 year ago 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);
}

Loading…
Cancel
Save