BelledonneCommunications / linphone-desktop

Linphone is a free VoIP and video softphone based on the SIP protocol. Mirror of git://git.linphone.org/linphone-desktop.git
https://linphone.org/
GNU General Public License v3.0
391 stars 200 forks source link

[Bug]: Unable to use two SIP servers, one which uses UDP with media_encryption=none and one which uses TLS with media_encryption=srtp #836

Open brad2014 opened 2 months ago

brad2014 commented 2 months ago

Context

I want to run linphone so that it simultaneously registers two accounts.

  1. uses transport=UDP and media_encryption=none
  2. uses transport=TLS and media_encryption=srtp

If in preferences I disable srtp, then outbound calls on account 1 work, but outbound calls on account 2 give "Remote party cannot accept the call".

If in preferences I enable srtp, then outbound calls on account 2 work, but outbound calls on account 1 immediately hang up (no error message).

How do I configure linphone so that each registered account has a its own media_encryption policy?

General information

Expected behaviour

There would be a UI toggle or linphonerc configuration entry that would enable media_encryption=srtp only for Proxy_2.

To Reproduce

Add two accounts, one which requires TLS+SRTP and one which requires UDP+RTP.

Additional context

No response

SDK logs URL

No response

kobaz commented 1 hour ago

Linphone is missing the ability to set per-sip-account transport options like media encryption. This is definitely a bad design that these encryption options are global.