From: Dwayne M. Hubbard Date: Wed, 4 Apr 2007 23:45:27 +0000 (+0000) Subject: ast_shrink_phone_number() must ignore whitespace, otherwise my CIDCO callerid box... X-Git-Tag: 1.6.0-beta1~3^2~2909 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a1d0a196be46394bddbd6277aace4fc1163dde6;p=thirdparty%2Fasterisk.git 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 --- 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]; } }