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

Parsing of SDP #30

Open
fransbouwmans opened this issue Jan 22, 2025 · 0 comments
Open

Parsing of SDP #30

fransbouwmans opened this issue Jan 22, 2025 · 0 comments

Comments

@fransbouwmans
Copy link

The RFC for the SDP is clear in the order of messages.
However, this order may not be applied by all clients and I'm connecting to a specific client that has the media descriptor not as the last element.
As a result the library fails to connect to that client.
For a simple workaround, I set parsing to the beginning of the message prior to parsing the mediadescriptors.
It also seems that other clients (like MicroSIP are more forgiving and do work fine to the same client).

I currently add
par.setPos(0);
on line 215 of SdpMessage.java, prior to parsing the media descriptors.
This resolves my issue, but I do understand this is a deviation from the standard.
Perhaps this can be optional (i.e. enabled via command line/config).

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