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]; } }