edgeport - v1.0.3
    Preparing search index...

    Function buildMsrpOffer

    • Builds an SDP offer for an MSRP message session (active setup).

      The offer advertises TCP/MSRP with a=setup:active, so the Worker dials the peer's MSRP path from the answer rather than listening (Workers cannot accept inbound TCP).

      Parameters

      • opts: MsrpOfferOptions

        The local MSRP path, accept-types, and address/port placeholders.

      Returns string

      The SDP body text (CRLF-delimited).

      1.0.3

      import { buildMsrpOffer } from 'edgeport/sip';

      const offer = buildMsrpOffer({ path: 'msrp://client.invalid:2855/abcd;tcp', sessionId: '1' });