Update URI validation regex to be more generic.
This commit is contained in:
parent
298b5ff500
commit
35f70f3195
@ -18,7 +18,7 @@ sip::IncomingConnectionValidator::IncomingConnectionValidator(std::string validU
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool sip::IncomingConnectionValidator::validateUri(std::string uri) {
|
bool sip::IncomingConnectionValidator::validateUri(std::string uri) {
|
||||||
boost::regex addressRegex("[\"\\+\\w ]*<sip:([\\+\\w\\.]+@[\\w\\.]+)>");
|
boost::regex addressRegex("[\"\\+\\w\\. ]*<?sip:([\\+\\w\\.]+@[\\w\\.]+)>?");
|
||||||
|
|
||||||
boost::smatch s;
|
boost::smatch s;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user