summaryrefslogtreecommitdiff
path: root/orkaudio/audiocaptureplugins/voip/VoIp.cpp
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2007-11-06 15:19:13 +0000
committerHenri Herscher <henri@oreka.org>2007-11-06 15:19:13 +0000
commit233895189cbebd860645ce8972cd9074d5455079 (patch)
tree7b5659c2e8e10cd1ff3ef02f877df62697b2cca1 /orkaudio/audiocaptureplugins/voip/VoIp.cpp
parent09c14de14f45d448da90f5dbcec4836e0a9c3585 (diff)
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
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/VoIp.cpp')
-rw-r--r--orkaudio/audiocaptureplugins/voip/VoIp.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}