Don't allow SIP URI without username in configuration.uri.
Remove useless condition in "if" statement.