Skip to content

Add port in Contact: on INVITE

I run a SIP server on port 5060 and gnome-calls on the same private IP address.

Before this change gnome-calls sends Contact: header, where its sending port is not included. The SIP-server does not augment internally the received Contact: to include the port from which the message was sent. Since the received Contact: was without included port-number, port 5060 is assumed. When the other side hangs up, the SIP server sends to the Contact: a BYE verb. That BYE is sent to port 5060. But on port 5060 listens the SIP server, not gnome-calls. gnome-calls does not receive BYE.

This patch does add the local port to outgoing INVITE in the Contact header. This is likely not the best approach. I will integrate suggestions how this code change can be improved.

Closes #523

Merge request reports