Parses an SDP body into its connection address and media descriptions.
The SDP body text.
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 Copy
import { parseSdp } from 'edgeport/sip';const sdp = parseSdp(answerBody);const path = sdp.media[0]?.attributes.path; // the peer's msrp:// path
Parses an SDP body into its connection address and media descriptions.