From 233895189cbebd860645ce8972cd9074d5455079 Mon Sep 17 00:00:00 2001 From: Henri Herscher Date: Tue, 6 Nov 2007 15:19:13 +0000 Subject: Added '*', '.', '-', '+' and '_' to the list of acceptable characters for SIP URI user part. git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@503 09dcff7a-b715-0410-9601-b79a96267cd0 --- orkaudio/audiocaptureplugins/voip/VoIp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'orkaudio/audiocaptureplugins/voip/VoIp.cpp') diff --git a/orkaudio/audiocaptureplugins/voip/VoIp.cpp b/orkaudio/audiocaptureplugins/voip/VoIp.cpp index 02eb13a..8b725d0 100644 --- a/orkaudio/audiocaptureplugins/voip/VoIp.cpp +++ b/orkaudio/audiocaptureplugins/voip/VoIp.cpp @@ -209,7 +209,7 @@ void GrabSipUserAddress(char* in, char* limit, CStdString& out) /* Taken from RFC 1035, section 2.3.1 recommendation for * domain names, we will add checks for '.' and '@' to allow * the host part */ - for(char* c = userStart; (ACE_OS::ace_isalnum(*c) || *c == '#' || *c == '@' || *c == '.' || *c == '-' || *c == ':') && c < limit ; c = c+1) + for(char* c = userStart; (ACE_OS::ace_isalnum(*c) || *c == '#' || *c == '*' || *c == '.' || *c == '+' || *c == '-' || *c == '_' || *c == ':' || *c == '@' ) && c < limit ; c = c+1) { if(*c == '@' && !passedUserPart) { @@ -234,7 +234,7 @@ void GrabSipUriUser(char* in, char* limit, CStdString& out) } // What stops a SIP URI user is a ':' (separating user from pwd) or an '@' (separating user from hostname) // but no need to test for these as we only allow alphanums and '#' - for(char* c = userStart; (ACE_OS::ace_isalnum(*c) || *c == '#') && c < limit ; c = c+1) + for(char* c = userStart; (ACE_OS::ace_isalnum(*c) || *c == '#' || *c == '*' || *c == '.' || *c == '+' || *c == '-' || *c == '_' ) && c < limit ; c = c+1) { out += *c; } -- cgit v1.2.3