Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 846 Bytes

sip.js.useragent.makeuri.md

File metadata and controls

35 lines (20 loc) · 846 Bytes

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:[email protected]");