mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Plane commits (a.k.a. the Delta deltas): 1) Make muted reconnect 2) Add "X" option to meetme and add ${MEETME_EXIT_CONTEXT}, 3) Allow SIP call parking with supervised transfer, 4) Only create parking entries when calls actually get parked, 5) Add "sunshine" song, 6) Update hardware documentation, 7) Don't load empty strings from history file
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3572 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -689,7 +689,7 @@ static int remoteconsolehandler(char *s)
|
||||
{
|
||||
int ret = 0;
|
||||
/* Called when readline data is available */
|
||||
if (s && !ast_strlen_zero(s))
|
||||
if (s && !ast_all_zeros(s))
|
||||
ast_el_add_history(s);
|
||||
/* Give the console access to the shell */
|
||||
if (s) {
|
||||
@@ -1341,6 +1341,8 @@ static int ast_el_read_history(char *filename)
|
||||
fgets(buf, sizeof(buf), f);
|
||||
if (!strcmp(buf, "_HiStOrY_V2_\n"))
|
||||
continue;
|
||||
if (ast_all_zeros(buf))
|
||||
continue;
|
||||
if ((ret = ast_el_add_history(buf)) == -1)
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user