From: Martin Nystroem Date: Fri, 22 Mar 2024 12:23:58 +0000 (+0100) Subject: res_ari.c: Add additional output to ARI requests when debug is enabled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd91f09481d98aace610097a5bd37c6f51ba4abe;p=thirdparty%2Fasterisk.git 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 --- diff --git a/res/res_ari.c b/res/res_ari.c index e094f24d98..929e6c4ada 100644 --- a/res/res_ari.c +++ b/res/res_ari.c @@ -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); }