Skip to content
Snippets Groups Projects
Commit 193f6631 authored by Mark Spencer's avatar Mark Spencer
Browse files

* and # are potentially parts of phone numbers

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1455 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 03373895
No related branches found
No related tags found
No related merge requests found
...@@ -508,7 +508,7 @@ int ast_isphonenumber(char *n) ...@@ -508,7 +508,7 @@ int ast_isphonenumber(char *n)
if (!n || !strlen(n)) if (!n || !strlen(n))
return 0; return 0;
for (x=0;n[x];x++) for (x=0;n[x];x++)
if (!strchr("0123456789", n[x])) if (!strchr("0123456789*#", n[x]))
return 0; return 0;
return 1; return 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment