sip-media-negotiation

Negotiate SDP offer/answer and codec parameters for SIP RTP sessions.

187|20|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/TheBushidoCollective/han --skill sip-media-negotiation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sip-media-negotiation
Source: https://github.com/TheBushidoCollective/han/tree/main/jutsu/jutsu-sip/skills/sip-media-negotiation
Command: npx skills add https://github.com/TheBushidoCollective/han --skill sip-media-negotiation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill covers SDP offer/answer, codec negotiation, and media session setup for SIP applications.

Core Features & Use Cases

  • SDP Parsing: Understand and process SDP lines.
  • Codec Negotiation: Agree on formats and parameters.
  • Media Setup: Establish and manage RTP sessions.

Quick Start

Outline a basic SDP offer and answer exchange between two endpoints.

Frequently Asked Questions about sip-media-negotiation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I negotiate SDP offer and answer in SIP applications?

SDP offer/answer negotiation exchanges session descriptions between SIP endpoints following RFC 3264 semantics. One endpoint sends an offer describing its media capabilities; the other responds with an answer confirming accepted formats, codecs, and transport parameters to establish the RTP session.

What codec negotiation means and why it matters for VoIP

Codec negotiation is the process where SIP endpoints agree on compression formats, sample rates, and parameters for audio or video streams. Both sides exchange supported codecs in SDP; the answer selects compatible ones to ensure real-time media can flow without transcoding delays.

How do I parse and generate SDP for media session setup?

Parse SDP by extracting media descriptions, attributes, bandwidth, and session origin data per RFC 4566. Generate SDP by structuring session-level and media-level lines with codec formats, RTP parameters, and connection details, then exchange via SIP INVITE or response for endpoint capability alignment.

Can I use SDP negotiation for real-time communication beyond audio calls?

Yes. SDP offer/answer applies to any SIP-based real-time communication: video calls, screensharing, instant messaging over RTP, and conferencing. The negotiation process handles multiple media types and their transport parameters identically.

What prerequisites do I need before implementing SIP media negotiation?

You need understanding of SIP signaling flow, RTP protocol basics, and media codecs (G.711, Opus, VP9, etc.). Familiarity with SDP syntax, RFC 3264 offer/answer rules, and your VoIP stack's media layer is required to correctly parse capabilities and align endpoints.

Why does codec mismatch break SIP calls?

If endpoints fail to negotiate a common codec during SDP exchange, no mutually supported format exists for RTP payload encoding. The call cannot proceed without either transcoding (costly latency) or fallback codecs, making successful negotiation critical for call setup.