From 3a1d0a196be46394bddbd6277aace4fc1163dde6 Mon Sep 17 00:00:00 2001 From: "Dwayne M. Hubbard" Date: Wed, 4 Apr 2007 23:45:27 +0000 Subject: [PATCH] ast_shrink_phone_number() must ignore whitespace, otherwise my CIDCO callerid box gets LINE ERROR git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@60193 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/callerid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main/callerid.c b/main/callerid.c index f93c3527d0..002666aa93 100644 --- a/main/callerid.c +++ b/main/callerid.c @@ -886,7 +886,8 @@ void ast_shrink_phone_number(char *n) n[y++] = n[x]; break; default: - if (!strchr("()", n[x])) + /* ignore parenthesis and whitespace */ + if (!strchr("( )", n[x])) n[y++] = n[x]; } }