#endif
return command_buf;
}
- #endif
-static const char *banner =
- " _____ ____ ____ _ ___ \n"
- " | ___/ ___| / ___| | |_ _| \n"
- " | |_ \\___ \\ | | | | | | \n"
- " | _| ___) | | |___| |___ | | \n"
- " |_| |____/ \\____|_____|___| \n"
- "\n"
- "*******************************************************\n"
- "* Anthony Minessale II, Ken Rice, *\n"
- "* Michael Jerris, Travis Cross *\n"
- "* FreeSWITCH (http://www.freeswitch.org) *\n"
- "* Paypal Donations Appreciated: paypal@freeswitch.org *\n"
- "* Brought to you by ClueCon http://www.cluecon.com/ *\n"
- "*******************************************************\n"
- "\n"
- "Type /help <enter> to see a list of commands\n\n\n";
-
static void print_banner(FILE *stream)
{
-#ifndef WIN32
- fprintf(stream, "%s%s", output_text_color, banner);
-#else
- fprintf(stream, "%s", banner);
-#endif
+ fprintf(stream,
+
+
+ "\n"
+ "*******************************************************\n"
+ "* Netborder SS7 Gateway *\n"
+ "* Powered by FreeSWITCH (http://www.freeswitch.org) *\n"
+ "*******************************************************\n"
+ "\n"
+ "Type /help <enter> to see a list of commands\n\n\n"
+ );
}
static void set_fn_keys(cli_profile_t *profile)
snprintf(cmd_str, sizeof(cmd_str), "log %s\n\n", profile->loglevel);
esl_send_recv(&handle, cmd_str);
}
+ if (global_profile->batch_mode) {
+ setvbuf(stdout, (char*)NULL, _IONBF, 0);
+ }
print_banner(stdout);
- esl_log(ESL_LOG_INFO, "FS 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");
output_printf("%s\n", handle.last_sr_reply);
+
while (running > 0) {
int r;
#ifdef HAVE_EDITLINE