sip.js.useragent.makeuri.md
October 21, 2022 ยท View on GitHub
Home > sip.js > UserAgent > makeURI
UserAgent.makeURI() method
Create a URI instance from a string.
Signature:
static makeURI(uri: string): URI | undefined;
Parameters
| Parameter | Type | Description |
|---|---|---|
| uri | string | The string to parse. |
Returns:
URI | undefined
Remarks
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
Example
const uri = UserAgent.makeURI("sip:edgar@example.com");