ast_shrink_phone_number() must ignore whitespace, otherwise my CIDCO callerid box...
authorDwayne M. Hubbard <dwayne.hubbard@gmail.com>
Wed, 4 Apr 2007 23:45:27 +0000 (23:45 +0000)
committerDwayne M. Hubbard <dwayne.hubbard@gmail.com>
Wed, 4 Apr 2007 23:45:27 +0000 (23:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@60193 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/callerid.c

index f93c352..002666a 100644 (file)
@@ -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];
                }
        }