add auto ip-change detection and some other goodies

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9138 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2008-07-22 22:23:50 +00:00
parent 1636bc635c
commit 5fc5658e5e
10 changed files with 322 additions and 20 deletions

View File

@@ -467,12 +467,14 @@ static int comp_callback(void *pArg, int argc, char **argv, char **columnNames)
return -1;
}
fprintf(h->out, "%20s\t", target);
fprintf(h->out, "[%20s]\t", target);
switch_copy_string(h->last, target, sizeof(h->last));
if ((++h->hits % 4) == 0) {
fprintf(h->out, "\n");
if (!switch_strlen_zero(target)) {
if ((++h->hits % 4) == 0) {
fprintf(h->out, "\n");
}
}
return 0;