edgeport - v1.0.3
    Preparing search index...

    Function parseUri

    • Parses a SIP or SIPS URI, tolerating an enclosing <...> and a leading display name.

      Parameters

      • input: string

        A URI such as sip:alice@example.com:5060;transport=tcp or "A" <sip:a@b>.

      Returns SipUri

      The parsed URI.

      If the scheme is not sip/sips or the host is missing.

      1.0.3

      import { parseUri } from 'edgeport/sip';

      parseUri('<sip:bob@example.com;transport=tcp>').host; // 'example.com'