Minor AGI patch
authorMark Spencer <markster@digium.com>
Mon, 14 Jul 2003 14:39:52 +0000 (14:39 +0000)
committerMark Spencer <markster@digium.com>
Mon, 14 Jul 2003 14:39:52 +0000 (14:39 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1182 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_agi.c

index 1208a1b..f03b8e9 100755 (executable)
@@ -193,6 +193,9 @@ static void setup_env(struct ast_channel *chan, char *request, int fd, int enhan
        fdprintf(fd, "agi_priority: %d\n", chan->priority);
        fdprintf(fd, "agi_enhanced: %s\n", enhanced ? "1.0" : "0.0");
 
+    /* User information */
+    fdprintf(fd, "agi_accountcode: %s\n", chan->accountcode ? chan->accountcode : "");
+    
        /* End with empty return */
        fdprintf(fd, "\n");
 }