diff options
author | dhubbard <dhubbard@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-04 23:45:27 +0000 |
---|---|---|
committer | dhubbard <dhubbard@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-04 23:45:27 +0000 |
commit | 9c1e9556cd43496ea9dd9b48497750b7476c055e (patch) | |
tree | 5dbb3f3a38c0ecf309b5bd7c9e1bffa6aa5eb041 /main/callerid.c | |
parent | 05fda0428ceb40e1c0e6ce9fef6742310e98a05f (diff) |
ast_shrink_phone_number() must ignore whitespace, otherwise my CIDCO callerid box gets LINE ERROR
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@60193 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/callerid.c')
-rw-r--r-- | main/callerid.c | 3 |
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]; } } |