Print out the channel name as a prefix to the "agi debug" output. This makes

AGI debugging on busy systems much easier.

(closes issue #10730)
Reported by: junky
Patches: 
      agi_debug_chan.diff uploaded by junky (license 177)
	  20070923_10730.diff uploaded by mvanbaak (license 7)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89074 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2007-11-07 00:00:38 +00:00
parent e309393920
commit 4afb905cf0
3 changed files with 97 additions and 90 deletions

View File

@@ -52,7 +52,7 @@ typedef struct agi_command {
AST_LIST_ENTRY(agi_command) list;
} agi_command;
int ast_agi_fdprintf(int fd, char *fmt, ...);
int ast_agi_fdprintf(struct ast_channel *chan, int fd, char *fmt, ...);
int ast_agi_register(struct ast_module *mod, agi_command *cmd);
int ast_agi_unregister(struct ast_module *mod, agi_command *cmd);
void ast_agi_register_multiple(struct ast_module *mod, agi_command *cmd, int len);