Parses a SIP or SIPS URI, tolerating an enclosing <...> and a leading display name.
<...>
A URI such as sip:alice@example.com:5060;transport=tcp or "A" <sip:a@b>.
sip:alice@example.com:5060;transport=tcp
"A" <sip:a@b>
The parsed URI.
If the scheme is not sip/sips or the host is missing.
sip
sips
1.0.3
import { parseUri } from 'edgeport/sip';parseUri('<sip:bob@example.com;transport=tcp>').host; // 'example.com' Copy
import { parseUri } from 'edgeport/sip';parseUri('<sip:bob@example.com;transport=tcp>').host; // 'example.com'
Parses a SIP or SIPS URI, tolerating an enclosing
<...>and a leading display name.