[asterisk-commits] tilghman: trunk r90851 - /trunk/res/res_agi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Dec 4 09:01:58 CST 2007
Author: tilghman
Date: Tue Dec 4 09:01:57 2007
New Revision: 90851
URL: http://svn.digium.com/view/asterisk?view=rev&rev=90851
Log:
Pass the Asterisk version to AGI scripts as part of the initial dump of info
Reported by: acunningham
Patch by: acunningham
(Closes issue #11398)
Modified:
trunk/res/res_agi.c
Modified: trunk/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/trunk/res/res_agi.c?view=diff&rev=90851&r1=90850&r2=90851
==============================================================================
--- trunk/res/res_agi.c (original)
+++ trunk/res/res_agi.c Tue Dec 4 09:01:57 2007
@@ -51,6 +51,7 @@
#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 @@
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"));
More information about the asterisk-commits
mailing list