aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-22 16:17:14 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-22 16:17:14 +0000
commit8be09a0397102f2c7d1252d650cb92ded46151a1 (patch)
treefc8c6d665ae5b60d138559ee8d5ca8edbce44ff4 /res
parentc1afb692bc88c3b96e19b687b6a1bafc51d2a35a (diff)
Change the method of retrieving the Asterisk version string.
Using this method makes it so res_fax doesn't have to be rebuilt on every svn update. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@271833 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_fax.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/res/res_fax.c b/res/res_fax.c
index daccc7d0a..bcafa9428 100644
--- a/res/res_fax.c
+++ b/res/res_fax.c
@@ -57,8 +57,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/manager.h"
#include "asterisk/dsp.h"
#include "asterisk/indications.h"
-
-#include "asterisk/version.h"
+#include "asterisk/ast_version.h"
static const char app_receivefax[] = "ReceiveFAX";
static const char synopsis_receivefax[] = "Receive a FAX and save as a TIFF/F file.";
@@ -1770,7 +1769,7 @@ static char *cli_fax_show_version(struct ast_cli_entry *e, int cmd, struct ast_c
}
ast_cli(a->fd, "FAX For Asterisk Components:\n");
- ast_cli(a->fd, "\tApplications: " ASTERISK_VERSION "\n");
+ ast_cli(a->fd, "\tApplications: %s\n", ast_get_version());
AST_RWLIST_RDLOCK(&faxmodules);
AST_RWLIST_TRAVERSE(&faxmodules, fax, list) {
ast_cli(a->fd, "\t%s: %s\n", fax->tech->description, fax->tech->version);