BelledonneCommunications / linphone-sdk

Mirror for linphone-sdk (https://gitlab.linphone.org/BC/public/linphone-sdk.git)
GNU Affero General Public License v3.0
99 stars 79 forks source link

Manual connection between two devices via proxy server with custom SIP #384

Open ParticleCore opened 4 months ago

ParticleCore commented 4 months ago

Currently trying to use the SDK only to establish the audio stream connection between two devices, but having a hard time with the available docs.

The objective scenario is the following:

  1. Custom signaling is done via websockets (this I already have working)
    • When a device wants to call another, a simple websocket message is sent signaling it, and when a response is returned then it proceeds to the next step, the audio stream connection
  2. Device connections go through a proxy server (ex. 201.23.154.2:3004 via UDP or TCP)
    • this wouldn't be a SIP server, but a custom local server that is public and meant to allow the devices to communicate with each other outside their local network
  3. Devices begin sending audio between each other

I've been able to run the whole thing just fine when using a full SIP integration (SIP addresses and SIP server), but I am not able to find a way to only establish the connection between two devices on its own using an IP.

Is there a way to achieve this? I couldn't find anything so far.