mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
(closes issue #13881)
Reported by: hoowa Update the app CDR field for AGI commands that are not executing an application via "exec". git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@168516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1830,6 +1830,11 @@ static int agi_handle_command(struct ast_channel *chan, AGI *agi, char *buf)
|
||||
parse_args(buf, &argc, argv);
|
||||
c = find_command(argv, 0);
|
||||
if (c) {
|
||||
/* If the AGI command being executed is an actual application (using agi exec)
|
||||
the app field will be updated in pbx_exec via handle_exec */
|
||||
if (chan->cdr && !ast_check_hangup(chan) && strcasecmp(argv[0], "EXEC"))
|
||||
ast_cdr_setapp(chan->cdr, "AGI", buf);
|
||||
|
||||
res = c->handler(chan, agi, argc, argv);
|
||||
switch(res) {
|
||||
case RESULT_SHOWUSAGE:
|
||||
|
Reference in New Issue
Block a user