Fixed IAX uri regexp: proto can be iax or iax2.

git-svn-id: http://voip.null.ro/svn/yate@5530 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2013-06-07 09:40:47 +00:00
parent 48698ca93c
commit 24e89ec1b0
1 changed files with 1 additions and 1 deletions

View File

@ -2309,7 +2309,7 @@ void IAXURI::parse()
if (m_parsed)
return;
String tmp(*this), _port;
static const Regexp r("^\\([Ii][Aa][Xx]2\\+:\\)\\?\\([^[:space:][:cntrl:]@]\\+@\\)\\?\\([[:alnum:]._-]\\+\\)\\(:[0-9]\\+\\)\\?\\(/[[:alnum:]]*\\)\\?\\([@?][^@?:/]*\\)\\?$");
static const Regexp r("^\\([Ii][Aa][Xx]2\\?:\\)\\?\\([^[:space:][:cntrl:]@]\\+@\\)\\?\\([[:alnum:]._-]\\+\\)\\(:[0-9]\\+\\)\\?\\(/[[:alnum:]]*\\)\\?\\([@?][^@?:/]*\\)\\?$");
if (tmp.matches(r))
{
m_username = tmp.matchString(2);