rename to NBE SS7

This commit is contained in:
Moises Silva 2011-05-05 18:17:30 -04:00
parent be798b4ed9
commit 89a2ca8d00
4 changed files with 24 additions and 25 deletions

View File

@ -8,7 +8,7 @@
#include <signal.h> #include <signal.h>
#define CMD_BUFLEN 1024 #define CMD_BUFLEN 1024
#define PROMPT_PREFIX "sangoma-media-gateway" #define PROMPT_PREFIX "netborder-ss7"
static int WARN_STOP = 0; static int WARN_STOP = 0;
#ifdef WIN32 #ifdef WIN32
@ -854,7 +854,7 @@ static void print_banner(FILE *stream)
"\n" "\n"
"*******************************************************\n" "*******************************************************\n"
"* Sangoma Media Gateway *\n" "* Netborder SS7 Gateway *\n"
"* Powered by FreeSWITCH (http://www.freeswitch.org) *\n" "* Powered by FreeSWITCH (http://www.freeswitch.org) *\n"
"*******************************************************\n" "*******************************************************\n"
"\n" "\n"
@ -1002,13 +1002,13 @@ int main(int argc, char *argv[])
int rv = 0; int rv = 0;
#ifndef WIN32 #ifndef WIN32
char hfile[512] = "/etc/smg_cli_history"; char hfile[512] = "/etc/nbess7_cli_history";
char cfile[512] = "/etc/smg_cli.conf"; char cfile[512] = "/etc/nbess7_cli.conf";
char dft_cfile[512] = "/etc/smg_cli.conf"; char dft_cfile[512] = "/etc/nbess7_cli.conf";
#else #else
char hfile[512] = "smg_cli_history"; char hfile[512] = "nbess7_cli_history";
char cfile[512] = "smg_cli.conf"; char cfile[512] = "nbess7_cli.conf";
char dft_cfile[512] = "smg_cli.conf"; char dft_cfile[512] = "nbess7_cli.conf";
#endif #endif
char *home = getenv("HOME"); char *home = getenv("HOME");
/* Vars for optargs */ /* Vars for optargs */
@ -1054,8 +1054,8 @@ int main(int argc, char *argv[])
if (home) { if (home) {
snprintf(hfile, sizeof(hfile), "%s/.smg_cli_history", home); snprintf(hfile, sizeof(hfile), "%s/.nbess7_cli_history", home);
snprintf(cfile, sizeof(cfile), "%s/.smg_cli_conf", home); snprintf(cfile, sizeof(cfile), "%s/.nbess7_cli_conf", home);
} }
signal(SIGINT, handle_SIGINT); signal(SIGINT, handle_SIGINT);
@ -1368,7 +1368,7 @@ int main(int argc, char *argv[])
print_banner(stdout); print_banner(stdout);
esl_log(ESL_LOG_INFO, "Sangoma Media Gateway CLI Ready.\nenter /help for a list of commands.\n"); esl_log(ESL_LOG_INFO, "Netborder SS7 CLI Ready.\nenter /help for a list of commands.\n");
printf("%s\n", handle.last_sr_reply); printf("%s\n", handle.last_sr_reply);
while (running > 0) { while (running > 0) {

View File

@ -90,7 +90,7 @@ typedef struct private_object private_object_t;
#define MULTICAST_EVENT "multicast::event" #define MULTICAST_EVENT "multicast::event"
#define SOFIA_REPLACES_HEADER "_sofia_replaces_" #define SOFIA_REPLACES_HEADER "_sofia_replaces_"
#define SOFIA_USER_AGENT "SangomaMediaGateway/" SWITCH_VERSION_MAJOR "." SWITCH_VERSION_MINOR "." SWITCH_VERSION_MICRO "-" SWITCH_VERSION_REVISION #define SOFIA_USER_AGENT "NetborderSS7/" SWITCH_VERSION_MAJOR "." SWITCH_VERSION_MINOR "." SWITCH_VERSION_MICRO "-" SWITCH_VERSION_REVISION
#define SOFIA_CHAT_PROTO "sip" #define SOFIA_CHAT_PROTO "sip"
#define SOFIA_MULTIPART_PREFIX "sip_mp_" #define SOFIA_MULTIPART_PREFIX "sip_mp_"
#define SOFIA_MULTIPART_PREFIX_T "~sip_mp_" #define SOFIA_MULTIPART_PREFIX_T "~sip_mp_"

View File

@ -48,7 +48,7 @@
#include "private/switch_core_pvt.h" #include "private/switch_core_pvt.h"
/* pid filename: Stores the process id of the freeswitch process */ /* pid filename: Stores the process id of the freeswitch process */
#define PIDFILE "sangoma-media-gateway.pid" #define PIDFILE "netborder-ss7.pid"
static char *pfile = PIDFILE; static char *pfile = PIDFILE;
static int system_ready = 0; static int system_ready = 0;
@ -540,7 +540,7 @@ int main(int argc, char *argv[])
} }
if (local_argv[x] && !strcmp(local_argv[x], "-version")) { if (local_argv[x] && !strcmp(local_argv[x], "-version")) {
fprintf(stdout, "Sangoma Media Gateway Version: %s\n", SWITCH_VERSION_FULL); fprintf(stdout, "Netborder SS7 Version: %s\n", SWITCH_VERSION_FULL);
return 0; return 0;
known_opt++; known_opt++;
} }

View File

@ -1758,17 +1758,16 @@ SWITCH_DECLARE(const char *) switch_core_banner(void)
"* Brought to you by ClueCon http://www.cluecon.com/ *\n" "************************************************************\n" "\n"); "* Brought to you by ClueCon http://www.cluecon.com/ *\n" "************************************************************\n" "\n");
#else #else
return ( return (
"\n _____ ___ ___ _ _ _____ _ \n" "************************************************************************\n"
"/ ___| | \\/ | | (_) | __ \\ | | \n" "* .__ __. .______ _______ _______. _______. ______ *\n"
"\\ `--. __ _ _ __ __ _ ___ _ __ ___ __ _ | . . | ___ __| |_ __ _ | | \\/ __ _| |_ _____ ____ _ _ _ \n" "* | \ | | | _ \ | ____| / | / ||____ |*\n"
" `--. \\/ _` | '_ \\ / _` |/ _ \\| '_ ` _ \\ / _` | | |\\/| |/ _ \\/ _` | |/ _` | | | __ / _` | __|/ _ \\ \\ /\\ / / _` | | | |\n" "* | \| | | |_) | | |__ | (----` | (----` / / *\n"
"/\\__/ / (_| | | | | (_| | (_) | | | | | | (_| | | | | | __/ (_| | | (_| | | |_\\ \\ (_| | |_| __/\\ V V / (_| | |_| |\n" "* | . ` | | _ < | __| \ \ \ \ / / *\n"
"\\____/ \\__,_|_| |_|\\__, |\\___/|_| |_| |_|\\__,_| \\_| |_/\\___|\\__,_|_|\\__,_| \\____/\\__,_|\\__|\\___| \\_/\\_/ \\__,_|\\__, |\n" "* | |\ | | |_) | | |____ .----) | .----) | / / *\n"
" __/ | __/ |\n" "* |__| \__| |______/ |_______| |_______/ |_______/ /_/ *\n"
" |___/ |___/ \n" "* *\n"
"************************************************************\n" "* Powered by: FreeSWITCH (http://www.freeswitch.org) *\n"
"* Powered by: FreeSWITCH (http://www.freeswitch.org) *\n" "**************************************************************************\n" "\n");
"************************************************************\n" "\n");
#endif #endif
} }