* and # are potentially parts of phone numbers
authorMark Spencer <markster@digium.com>
Mon, 1 Sep 2003 15:59:57 +0000 (15:59 +0000)
committerMark Spencer <markster@digium.com>
Mon, 1 Sep 2003 15:59:57 +0000 (15:59 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1455 65c4cc65-6c06-0410-ace0-fbb531ad65f3

callerid.c

index 59d9a68..0a0883e 100755 (executable)
@@ -508,7 +508,7 @@ int ast_isphonenumber(char *n)
        if (!n || !strlen(n))
                return 0;
        for (x=0;n[x];x++)
-               if (!strchr("0123456789", n[x]))
+               if (!strchr("0123456789*#", n[x]))
                        return 0;
        return 1;
 }