asterisk / asterisk

The official Asterisk Project repository.
https://www.asterisk.org
Other
1.99k stars 929 forks source link

[improvement]: ARI debug should contain endpoint and method #666

Closed nnew2 closed 2 months ago

nnew2 commented 2 months ago

Improvement Description

It would be really helpful if the Asterisk ARI debug would contain the actual endpoint and method.

For an example GET /ari/channels/1711100856.29624

Here's an ARI debug output and how it is logged today.

[Mar 22 08:12:58] VERBOSE[6273] res_ari.c: <--- ARI request received from: 127.0.0.1:48258 --->
user-agent: MyHTTPAgent
Content-Type: application/json
Accept: application/json
Authorization: Basic XXXXXXXXX
Host: localhost:8088
Connection: close
body:

[Mar 22 08:12:58] VERBOSE[6273] res_ari.c: <--- Sending ARI response to 127.0.0.1:48258 --->
204 No Content
jcolp commented 2 months ago

Is this something you are planning to work on?

nnew2 commented 2 months ago

I was not planning on doing it, but you know what, I think I will give it a go. It would be my first contribution ever.