]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
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 f93c3527d076e69b5e20f40c7d8b86e9d636979c..002666aa930cb95db0da06407cbcac7916188982 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];
                }
        }