aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-09 23:02:19 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-09 23:02:19 +0000
commit245dfccf9e9aa3d5eddfabf93f44d2c7688fc3eb (patch)
treef2ade755c3ce5b33821c6ee66295dc466cf6e067 /pbx
parent89c6f5009a1db3546b01b6338a672c304035e6b1 (diff)
Merged revisions 97645 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r97645 | russell | 2008-01-09 17:01:48 -0600 (Wed, 09 Jan 2008) | 2 lines Strip terminal sequences from the verbose messages ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97646 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_gtkconsole.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/pbx/pbx_gtkconsole.c b/pbx/pbx_gtkconsole.c
index 2348a8d64..5e47ac668 100644
--- a/pbx/pbx_gtkconsole.c
+++ b/pbx/pbx_gtkconsole.c
@@ -45,6 +45,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/cli.h"
#include "asterisk/utils.h"
#include "asterisk/paths.h"
+#include "asterisk/term.h"
AST_MUTEX_DEFINE_STATIC(verb_lock);
@@ -96,11 +97,16 @@ static int cleanup(void *useless)
}
-static void __verboser(const char *stuff)
+static void __verboser(const char *_stuff)
{
char *s2[2];
struct timeval tv;
int ms;
+ char *stuff;
+
+ stuff = ast_strdupa(_stuff);
+ term_strip(stuff, stuff, strlen(stuff) + 1);
+
s2[0] = (char *)stuff;
s2[1] = NULL;
gtk_clist_freeze(GTK_CLIST(verb));