edgeport - v1.0.3
    Preparing search index...

    Function parseSdp

    • Parses an SDP body into its connection address and media descriptions.

      Parameters

      • text: string

        The SDP body text.

      Returns Sdp

      The parsed SDP.

      1.0.3

      import { parseSdp } from 'edgeport/sip';

      const sdp = parseSdp(answerBody);
      const path = sdp.media[0]?.attributes.path; // the peer's msrp:// path