From: Tilghman Lesher Date: Tue, 4 Dec 2007 15:01:57 +0000 (+0000) Subject: Pass the Asterisk version to AGI scripts as part of the initial dump of info X-Git-Tag: 1.6.0-beta1~3^2~569 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4aff8846220b2a82a8ffeca0f8171f23758653cb;p=thirdparty%2Fasterisk.git Pass the Asterisk version to AGI scripts as part of the initial dump of info Reported by: acunningham Patch by: acunningham (Closes issue #11398) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90851 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_agi.c b/res/res_agi.c index 86c05f9afc..9d08359fea 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -51,6 +51,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/lock.h" #include "asterisk/strings.h" #include "asterisk/agi.h" +#include "asterisk/version.h" #include "asterisk/speech.h" #define MAX_ARGS 128 @@ -370,6 +371,7 @@ static void setup_env(struct ast_channel *chan, char *request, int fd, int enhan ast_agi_fdprintf(chan, fd, "agi_language: %s\n", chan->language); ast_agi_fdprintf(chan, fd, "agi_type: %s\n", chan->tech->type); ast_agi_fdprintf(chan, fd, "agi_uniqueid: %s\n", chan->uniqueid); + ast_agi_fdprintf(chan, fd, "agi_version: %s\n", ASTERISK_VERSION); /* ANI/DNIS */ ast_agi_fdprintf(chan, fd, "agi_callerid: %s\n", S_OR(chan->cid.cid_num, "unknown"));