Fix user=phone stuff (bug #3575)
authorMark Spencer <markster@digium.com>
Sun, 13 Feb 2005 17:02:39 +0000 (17:02 +0000)
committerMark Spencer <markster@digium.com>
Sun, 13 Feb 2005 17:02:39 +0000 (17:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5020 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c
include/asterisk/file.h

index a4c3001..91de845 100755 (executable)
@@ -3824,7 +3824,7 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, char *cmd, c
                        x=1;
 
                for (; x<strlen(p->username); x++) {
-                       if (!strchr(AST_DIGIT_ANY, p->username[x])) {
+                       if (!strchr(AST_DIGIT_ANYNUM, p->username[x])) {
                                onlydigits = 0;
                                break;
                        }
index 9edfcaa..30600ba 100755 (executable)
@@ -26,6 +26,7 @@ extern "C" {
 
 /*! Convenient for waiting */
 #define AST_DIGIT_ANY "0123456789#*ABCD"
+#define AST_DIGIT_ANYNUM "0123456789"
 
 #define SEEK_FORCECUR  10