aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_agi.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-04 15:01:57 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-04 15:01:57 +0000
commitfc56a37a49a699195905d0d13d551c6034909722 (patch)
treea283595cec6c8383d905c1c44c49585d507c5f2f /res/res_agi.c
parent8e49ea6b36d2dcbd3cead23f4a73421f88ab7bc3 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@90851 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_agi.c')
-rw-r--r--res/res_agi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 86c05f9af..9d08359fe 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"));