mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 16:20:37 +00:00
ARI: Add debug logging for events and responses
This adds DEBUG level logging for ARI websocket events and HTTP responses similar to what is available for AMI. Logging for ARI HTTP requests is already adequate for debugging purposes. ........ Merged revisions 412565 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -5174,7 +5174,7 @@ static int match_filter(struct mansession *s, char *eventdata)
|
||||
{
|
||||
int result = 0;
|
||||
|
||||
ast_debug(3, "Examining event:\n%s\n", eventdata);
|
||||
ast_debug(3, "Examining AMI event:\n%s\n", eventdata);
|
||||
if (!ao2_container_count(s->session->whitefilters) && !ao2_container_count(s->session->blackfilters)) {
|
||||
return 1; /* no filtering means match all */
|
||||
} else if (ao2_container_count(s->session->whitefilters) && !ao2_container_count(s->session->blackfilters)) {
|
||||
|
||||
Reference in New Issue
Block a user