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]: Linphone 5.x ignores IP address and port of a contact #755

Open Lastique opened 1 year ago

Lastique commented 1 year ago

Context

I'm having a problem with Linphone 5.x (specifically 5.0.12, but it also reproduced with prior 5.x releases) on Linux desktop. I have a contact "sip:conference@192.168.1.2:7060" (note the IP address and port are explicitly specified in the contact URI). When I'm initiating a video call to the contact, the SIP INVITE message is sent to address 127.0.0.1:5060, and consequently the call is never answered as noone is listening at that address and port.

I've collected logs from Linphone 5.0.12, see the link below. In the logs, it says "message sent to [UDP://127.0.0.1:5060]" for the first INVITE.

General information

Kubuntu 22.04 x86-64, Linphone 5.0.12 AppImage.

Expected behaviour

Linphone should use the IP and port from the SIP URI to send the SIP messages to.

To Reproduce

  1. Add a contact using a non-standard IP and port in the SIP URI.
  2. Initiate a video call to that contact.

Additional context

The same worked with Linphone 4.x (specifically, it works with 4.4.11) on the same system with the same contact - making a video call succeeds, I'm getting video and audio. In logs from 4.4.11 I'm seeing "message sent to [UDP://192.168.1.2:7060]" for the initial INVITE, as expected.

SDK logs URL

https://www.linphone.org:444//tmp/6407c2c3b4c30_4fcfb112955fbb02b332.gz