Skip to content

Treat missing a=fmtp as defaults for AMR#2141

Open
alexbakker wants to merge 1 commit into
sipwise:masterfrom
alexbakker:missing-fmtp
Open

Treat missing a=fmtp as defaults for AMR#2141
alexbakker wants to merge 1 commit into
sipwise:masterfrom
alexbakker:missing-fmtp

Conversation

@alexbakker

Copy link
Copy Markdown
Contributor

Per RFC 4867 section 8.1, absent fmtp parameters imply defaults (bandwidth-efficient mode, no CRC, no robust-sorting, no interleaving). Previously, codec matching was rejected when either side had no a=fmtp attribute for the AMR payload type, causing AMR to be dropped as a "stray answer codec".

This patch changes this behavior to instead "parse" fmtp even when absent so that the format struct is populated with zero-initialized defaults and fmtp_parsed is set.

Per RFC 4867 section 8.1, absent fmtp parameters imply defaults (bandwidth-efficient mode, no CRC,
no robust-sorting, no interleaving). Previously, codec matching was rejected when either side had no
``a=fmtp`` attribute for the AMR payload type, causing AMR to be dropped as a "stray answer codec".

This patch changes this behavior to instead "parse" fmtp even when absent so that the format struct
is populated with zero-initialized defaults and fmtp_parsed is set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant