diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-12 21:51:46 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-01-12 21:51:46 +0000 |
commit | 67837440f9c41169fd3ca5ac47f6729004b03003 (patch) | |
tree | e2e33260c88f3a85f9c9e182bbb66d1a524ffbc5 | |
parent | c926cd315552ac64854f61dad5f47eb866246a35 (diff) |
Merged revisions 168516 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r168516 | jpeeler | 2009-01-12 15:42:34 -0600 (Mon, 12 Jan 2009) | 5 lines
(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: http://svn.digium.com/svn/asterisk/trunk@168517 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | res/res_agi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 6151549e3..80d71ed67 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -2752,6 +2752,11 @@ static int agi_handle_command(struct ast_channel *chan, AGI *agi, char *buf, int the module we are using */ if (c->mod != ast_module_info->self) ast_module_ref(c->mod); + /* 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); if (c->mod != ast_module_info->self) ast_module_unref(c->mod); |