mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
version stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@299 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -45,6 +45,7 @@ extern "C" {
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <switch_version.h>
|
||||
#include <switch_platform.h>
|
||||
#include <switch_apr.h>
|
||||
#include <switch_sqlite.h>
|
||||
|
||||
@@ -37,10 +37,10 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define FREESWITCH_VERSION_MAJOR 1
|
||||
#define FREESWITCH_VERSION_MINOR 0
|
||||
#define FREESWITCH_VERSION_REVISION @SVN_VERSION@
|
||||
#define FREESWITCH_VERSION_FULL FREESWITCH_VERSION_MAJOR.FREESWITCH_VERSION_MINOR.FREESWITCH_VERSION_REVISION
|
||||
#define SWITCH_VERSION_MAJOR "1"
|
||||
#define SWITCH_VERSION_MINOR "0"
|
||||
#define SWITCH_VERSION_REVISION "@SVN_VERSION@"
|
||||
#define SWITCH_VERSION_FULL SWITCH_VERSION_MAJOR "." SWITCH_VERSION_MINOR "." SWITCH_VERSION_REVISION
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+1
-1
@@ -57,7 +57,7 @@ int main(int argc, char *argv[]) {
|
||||
switch_event_fire(&event);
|
||||
}
|
||||
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "freeswitch Version %s Started\n\n", SWITCH_SVN_VERSION);
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "freeswitch Version %s Started\n\n", SWITCH_VERSION_FULL);
|
||||
|
||||
/* wait for console input */
|
||||
switch_console_loop();
|
||||
|
||||
@@ -46,12 +46,17 @@ static int switch_console_process(char *cmd)
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Bye!\n");
|
||||
return 0;
|
||||
}
|
||||
if (!strcmp(cmd, "version")) {
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE, "Version %s\n", SWITCH_VERSION_FULL);
|
||||
return 1;
|
||||
}
|
||||
if (!strcmp(cmd, "help")) {
|
||||
switch_console_printf(SWITCH_CHANNEL_CONSOLE,
|
||||
"\n"
|
||||
"Valid Commands:\n\n"
|
||||
"help - umm yeah..\n"
|
||||
"%sshutdown - stop the program\n\n",
|
||||
"\n"
|
||||
"Valid Commands:\n\n"
|
||||
"version\n"
|
||||
"help - umm yeah..\n"
|
||||
"%sshutdown - stop the program\n\n",
|
||||
perlhelp
|
||||
);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user