Home > sip.js > UserAgent > makeURI
Create a URI instance from a string.
Signature:
static makeURI(uri: string): URI | undefined;
Parameter | Type | Description |
---|---|---|
uri | string | The string to parse. |
Returns:
URI | undefined
Returns undefined if the syntax of the URI is invalid. The syntax must conform to a SIP URI as defined in the RFC. 25 Augmented BNF for the SIP Protocol https://tools.ietf.org/html/rfc3261\#section-25
const uri = UserAgent.makeURI("sip:[email protected]");