toSipUri

fun String?.toSipUri(domain: String): SipUri

Returns a Uri with the PhoneAccount.SCHEME_SIP scheme from a SIP user (this) and domain, in the form sip:user@domain.

If this is null, it returns 'sip:@domain'.

The string should not start with a scheme. If it does, use String.toUri instead for the conversion.

Throws

if the string already contains a scheme.