sipsorcery-org / sipsorcery

A WebRTC, SIP and VoIP library for C# and .NET. Designed for real-time communications apps.
https://sipsorcery-org.github.io/sipsorcery
Other
1.39k stars 424 forks source link

UAC send manuel Acknowledge(OK) with SDP #1096

Closed keremcadirci closed 2 months ago

keremcadirci commented 3 months ago

I need to initiate a call (send Invite) without an SDP and later send SDP with Acknowledge Message of the received OK.

Use Case: I want to make a outbound SIP call and join the RTP session to the Janus audiobridge room. Janus Audiobride offers an API so that a SIP participant can send its RTP stream to the Janus audiobridge room and get the RTP stream of the room. Janus API gets SIP RTP information as an input and respond with SDP information that janus will accept the RTP stream. https://janus.conf.meetecho.com/docs/audiobridge

Imprementation: 1- I'm creating a call with UAC without sending an SDP:

        SIPCallDescriptor sipCallDescriptor = new SIPCallDescriptor( sipURITo+"" , null);
        sipCallDescriptor.From = new SIPURI(roomId.ToString(), "192.168.12.96:5080", null).ToString();
        SIPRequest sipRequest = uac.Call(sipCallDescriptor,sipEndPoint);

2- Get SIP OK Message with SDP: Send SDP information (host and port) to Janus with join (with rtp attributes) api 3- Get Janus response (joined with rtp attributes) Answer to SIP OK with an Acknowledge with SDP.

keremcadirci commented 3 months ago

With this implementation (12538df) I assume that SDP negotiation is made manually outside of sipsorcery