Add new app

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-04-16 13:43:11 +00:00
parent 154334a414
commit d855fee050
2 changed files with 33 additions and 4 deletions

View File

@@ -1191,11 +1191,13 @@ int main(int argc, char *argv[])
ast_verbose("[ Reading Master Configuration ]");
ast_readconfig();
if (el_hist == NULL || el == NULL)
ast_el_initialize();
if (option_console) {
if (el_hist == NULL || el == NULL)
ast_el_initialize();
if (strlen(filename))
ast_el_read_history(filename);
if (strlen(filename))
ast_el_read_history(filename);
}
if (ast_tryconnect()) {
/* One is already running */