]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_ari.c: Add additional output to ARI requests when debug is enabled
authorMartin Nystroem <martin.nystrom@connectel.se>
Fri, 22 Mar 2024 12:23:58 +0000 (13:23 +0100)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 9 May 2024 13:48:09 +0000 (13:48 +0000)
When ARI debug is enabled the logs will now output http method and the uri.

Fixes: #666
(cherry picked from commit dd91f09481d98aace610097a5bd37c6f51ba4abe)

res/res_ari.c

index e094f24d9857992018038b3fc57284f18678d749..929e6c4ada83b79b040d54322bf170d9df3f99d8 100644 (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);
                }