summaryrefslogtreecommitdiff
path: root/main/callerid.c
diff options
context:
space:
mode:
authorDwayne M. Hubbard <dwayne.hubbard@gmail.com>2007-04-04 23:45:27 +0000
committerDwayne M. Hubbard <dwayne.hubbard@gmail.com>2007-04-04 23:45:27 +0000
commit3a1d0a196be46394bddbd6277aace4fc1163dde6 (patch)
tree5dbb3f3a38c0ecf309b5bd7c9e1bffa6aa5eb041 /main/callerid.c
parent5f629360ecc045e196ed5e55492b55214b1f763a (diff)
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
Diffstat (limited to 'main/callerid.c')
-rw-r--r--main/callerid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/callerid.c b/main/callerid.c
index f93c3527d..002666aa9 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];
}
}