WebRTC offers from Alexa do not include the rtpmap attribute for payload types 0 and 8, and this makes GetCodecForPayloadType() return a fatal error. The current SDP specification (RFC8866) explicitly tells that rtpmap is not mandatory in case of these static payload types:
consider u-law PCM encoded single-channel audio sampled at 8 kHz. This is completely defined in the RTP audio/video profile as payload type 0, so there is no need for an "a=rtpmap:" attribute
Description
WebRTC offers from Alexa do not include the rtpmap attribute for payload types 0 and 8, and this makes GetCodecForPayloadType() return a fatal error. The current SDP specification (RFC8866) explicitly tells that rtpmap is not mandatory in case of these static payload types:
This patch fixes the issue.
Reference issue
https://github.com/bluenviron/mediamtx/discussions/2539