diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-05 22:09:06 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-05 22:09:06 +0000 |
commit | ab908a2a8ba667754deb0120a3f87f979a8d49e3 (patch) | |
tree | 243c62517db25a0b199483928c97afce6ce2a3d4 /res/res_agi.c | |
parent | 080a06a473ca38783c382fd5df05619033b245e0 (diff) |
Now that the version.h file was getting properly regenerated every time the svn
revision changed, every module that used the version was getting rebuilt after
every svn update. This severly annoyed me pretty quickly, so I have improved
the situation.
Now, instead of generating version.h, main/version.c is generated. version.c
includes the version information, as well as a couple of API calls for modules
to retrieve the version. So now, only version.c will get rebuilt, and the main
asterisk binary relinked, which is must faster than rebuilding http.c, manager.c,
asterisk.c, relinking the asterisk binary, chan_sip.c, func_version.c, res_agi ...
The only minor change in behavior here is that the version information reported by
chan_sip, for example, is the version of the Asterisk core, and not necessarily the
Asterisk version that the chan_sip module came from.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96717 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_agi.c')
-rw-r--r-- | res/res_agi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_agi.c b/res/res_agi.c index 9a637c46a..0c352c843 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -744,7 +744,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); + ast_agi_fdprintf(chan, fd, "agi_version: %s\n", ast_get_version()); /* ANI/DNIS */ ast_agi_fdprintf(chan, fd, "agi_callerid: %s\n", S_OR(chan->cid.cid_num, "unknown")); |