]> 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)
committerMartin Nystroem <martin.nystrom@connectel.se>
Mon, 25 Mar 2024 14:51:34 +0000 (14:51 +0000)
When ARI debug is enabled the logs will now output http method and the uri.

Fixes: #666
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);
                }