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
417 stars 211 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 7 months ago

brad2014 commented 7 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 4 months 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.

tkoeppen commented 4 months ago

Using MacOS version Desktop 5.2.5 - Qt5.15.2 Core 5.3.68 I may have a related topic:

  1. configure 1st sip account with ICE=true
  2. configure 2nd sip account with ICE=false

ICE=false seems not to be detected for the 2nd account. After deleting 1st account in Linphone and restart the client app, the 2nd SIP account works, as ICE=false seems to be correct recognized now. Will debug this further to see, if this is related.