Update URI validation regex to be more generic.

This commit is contained in:
Michał Słomkowski 2016-04-02 20:04:33 +02:00
parent 298b5ff500
commit 35f70f3195

View File

@ -18,7 +18,7 @@ sip::IncomingConnectionValidator::IncomingConnectionValidator(std::string validU
}
bool sip::IncomingConnectionValidator::validateUri(std::string uri) {
boost::regex addressRegex("[\"\\+\\w ]*<sip:([\\+\\w\\.]+@[\\w\\.]+)>");
boost::regex addressRegex("[\"\\+\\w\\. ]*<?sip:([\\+\\w\\.]+@[\\w\\.]+)>?");
boost::smatch s;