linphone-desktop icon indicating copy to clipboard operation
linphone-desktop copied to clipboard

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

Open brad2014 opened this issue 9 months ago • 2 comments

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

  • Device: Macbook M1 pro
  • OS: MacOS Sonoma 14.4.1
  • Version of the App: Desktop 5.2.4 - Qt5.15.2
  • Version of the SDK: Core 5.3.41

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

brad2014 avatar Apr 27 '24 17:04 brad2014

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.

kobaz avatar Jul 05 '24 02:07 kobaz

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.

tkoeppen avatar Jul 15 '24 19:07 tkoeppen