Skip to content

Commit da7fe58

Browse files
committed
app_wrappers: Include channel name when call ends in InbandDial.
When there are a lot of nested Local channels (or on any busy system in general), it is difficult to tell what channel something happened on if the channel name isn't logged.
1 parent 895545d commit da7fe58

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/app_wrappers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ static int dial_exec(struct ast_channel *chan, const char *data)
8383
ast_channel_unlock(chan);
8484

8585
if (!ast_strlen_zero(hangupcause)) {
86-
ast_verb(4, "Call ended, DIALSTATUS: %s (HANGUPCAUSE: %s)\n", dialstatus, hangupcause);
86+
ast_verb(4, "Call ended on %s, DIALSTATUS: %s (HANGUPCAUSE: %s)\n", ast_channel_name(chan), dialstatus, hangupcause);
8787
} else {
88-
ast_verb(4, "Call ended, DIALSTATUS: %s\n", dialstatus);
88+
ast_verb(4, "Call ended on %s, DIALSTATUS: %s\n", ast_channel_name(chan), dialstatus);
8989
}
9090

9191
if (!strcmp(dialstatus, "ANSWER")) {

0 commit comments

Comments
 (0)