-
Notifications
You must be signed in to change notification settings - Fork 372
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
Creating SDP with both RTP and SRTP sections #435
Comments
That's not supported right now. The usual way to do this is to first send an SRTP invite, catch the 488 error response, and then re-send as a plain RTP invite. |
Hi |
Sounds like what is described in #432. Not supported right now as I'm not aware of an RFC that describes this usage. |
Well, I understand there is no RFC. This means I have to put an extra freeswitch server as b2bua before the rtpengine to achieve the above scenario unless you can suggest me some. |
It actually very easy to implement on application level, we do it to convert WebRTC offer (SAVPF) to AVP + SAVP and it works fine:
|
I've similar question. If I'm using freeswitch I can just add the option "rtp_secure_media=optional" and I see in the SDP of the INVITE ... that both, RTP and SRTP is offered to the client. Is there in the meantime an option to do the same with kamailio+rtpengine? Or is the only way to first offer RTP/SAVP and than handle 415 Unsupported Media Type or 488 Not Acceptable Here responses ? |
Still not supported by rtpengine, but we do support OSRTP (RFC 8643) |
Thanks for the answer. Has it just not been implemented yet, or has it not been implemented because it is not really compliant with the RFC? Does anyone know if there is any sample script how OSRTP can be used in a Kamailio script ? |
A little bit of both. I'm reluctant to implement something that looks like a nonstandard hack, especially without knowing what the expected behaviour is supposed to be, and without a way to test it.
I don't have a sample, but it's pretty simple. For an initial offer that is going towards an OSRTP client, use |
Thanks for clarification. So if I understand it correctly, when I put OSRTP=offer I should see in the SDP of the outgoing INVITE (Kamailio-> Zoiper in my case) something like: ... but also the crypto-stuff I've tested it with version 8.5.4.1, I can see m= ... is set to RTP/AVP, but there are no crypto lines. Are there any additional parameter which matter? |
No that should be enough. You may have to use |
With |
We now support legacy non-RFC "best effort" OSRTP in current master. |
Hi,
I'd like RTPEngine to rewrite an offer SDP with both RTP and SRTP media sections, because when sending out an INVITE I don't know in advance if the callee supports SRTP or not. Then, according to the response the media connection with that end point will be either RTP or SRTP.
Is there a way to achieve that?
Thanks
The text was updated successfully, but these errors were encountered: