Missing SDP rtpmap for dynamic payload type (PJMEDIA_SDP_EMISSINGRTPMAP)

Hi everyone, I sent an invite to asterisk and it returned a 400 bad request packet. It was indicated that the reason is - 399 SIP “Missing SDP rtpmap for dynamic payload type (PJMEDIA_SDP_EMISSINGRTPMAP)” . I looked at the sdp, and it looks like the rtpmap does not contain any id without a corresponding ‘a’ entry. Here is the sdp payload we included in the invite:

v=0
o=1 8000 8000 IN IP4 192.168.200.1
s=SIP Call
c=IN IP4 192.168.200.1
t=0 0
m=audio 7878 RTP/AVP 18 0 8 101
a=rtpmap: 18 G729/8000
a=rtpmap: 0 PCMU/8000
a=rtpmap: 8 PCMA/8000
a=rtpmap: 101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20

Im pretty confused with this one… is there any issue that could cause asterisk to throw this error for some other (related) reason?

I have attached the pcap file if anyone wants to have a look
asterisk_cwr.zip (5.7 KB)

I appreciate anything that could help, thank you.

I suspect it is the space between “rtpmap:” and “101” that is causing the issue. The PJMEDIA SDP parser probably doesn’t like that. A quick look at the RFC makes me think that it is against spec to have a space there.

Thank you, I’ll try changing that.