Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SessionDescription::to_string creates invalid rtpmap attribute #7

Open
babymotte opened this issue Sep 18, 2024 · 0 comments
Open

SessionDescription::to_string creates invalid rtpmap attribute #7

babymotte opened this issue Sep 18, 2024 · 0 comments

Comments

@babymotte
Copy link

I have the following SDP file:

v=0
o=- 123456 123456 IN IP4 192.168.178.118
s=SAP Tester
i=2 channels: Left, Right
c=IN IP4 239.69.26.110/32
t=0 0
a=keywds:Dante
a=recvonly
m=audio 5004 RTP/AVP 97
a=rtpmap:97 L24/48000/2
a=ptime:1
a=ts-refclk:ptp=IEEE1588-2008:00-1D-C1-FF-FE-53-48-B5:0
a=mediaclk:direct=0

When I parse this using this library and then print it out using the to_string method, I get this:

v=0
o=- 123456 123456 IN IP4 192.168.178.118
s=SAP Tester
i=2 channels: Left, Right
c=IN IP4 239.69.26.110/32
t=0 0
a=keywds:Dante
a=recvonly
m=audio 5004 RTP/AVP 97
a=rtpmap:97 L24/48000 2
a=ptime:1
a=ts-refclk:ptp=IEEE1588-2008:00-1D-C1-FF-FE-53-48-B5:0
a=mediaclk:direct=0

Notice how the a=rtpmap field is formatted differently.

When I publish this SDP on my local network using the SAP protocol and look at the UDP package in wireshark, wireshark tells me that the SDP is malformed because of this. Is this a bug in the library or just an SAP specific dialect the library is not aware of?

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

No branches or pull requests

1 participant