1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-07-02 15:09:31 +00:00
Purism-Calls/tests
Evangelos Ribeiro Tzaras 8b126484cb sip: Use per origin IP instead of a global IP
Sofia detects a NAT by presence of the "received" parameter in the Via header in
the response to a REGISTER. Sofia will then update the Contact header to use the
IP as reported by the registrar.

The "received" parameter MUST be included in the response according to
https://datatracker.ietf.org/doc/html/rfc3261#section-18.2.1
when the registrar detects a difference between the domain part of the top Via
header and the packet source address but practice has shown that this will not
always be the case.

Addditionally this change allows us to have origins bound to different network
interfaces which would be useful when a registrar can only be accessed through a
VPN.

This also fixes an issue with SDP introduced in
36880c3d34 which was only seen on some SIP
providers:

The session name ("s=") line is not relevant for establishing a connection,
the connection data (c=") line is.

See https://datatracker.ietf.org/doc/html/rfc4566 section 5.3 and 5.7
2022-01-08 21:25:09 +00:00
..
mock tests: Add ringer tests 2021-12-05 09:50:25 +01:00
common.h tests: Add tests for Origin and Calls 2018-10-03 14:21:28 +00:00
meson.build tests: Add ringer tests 2021-12-05 09:50:25 +01:00
mock-call.c call: Move name property to base class 2021-12-20 12:25:19 +01:00
mock-call.h call: Move name property to base class 2021-12-20 12:25:19 +01:00
mock-contacts-provider.h tests: Add ringer tests 2021-12-05 09:50:25 +01:00
mock-libfeedback.h tests: Add ringer tests 2021-12-05 09:50:25 +01:00
setup-call.c tests: Add tests for Origin and Calls 2018-10-03 14:21:28 +00:00
setup-call.h tests: Add tests for Origin and Calls 2018-10-03 14:21:28 +00:00
setup-origin.c provider: Use GListModel to track origins 2021-02-25 08:44:56 +05:30
setup-origin.h Turn providers into plugins courtesy of libpeas 2018-11-23 15:51:46 +00:00
setup-provider.c tests: Add tests for Origin and Calls 2018-10-03 14:21:28 +00:00
setup-provider.h tests: Add tests for Origin and Calls 2018-10-03 14:21:28 +00:00
test-call.c test: call: Codestyle 2021-12-20 12:25:18 +01:00
test-manager.c Remove CallsCredentials and adapt to changes 2021-07-20 10:17:17 +02:00
test-origin.c tests: Add tests for Origin and Calls 2018-10-03 14:21:28 +00:00
test-plugins.c Fix old-style warnings all over the codebase 2021-06-03 19:46:45 +00:00
test-provider.c provider: Use GListModel to track origins 2021-02-25 08:44:56 +05:30
test-ringer.c call: Move state property into base class 2021-12-20 12:25:19 +01:00
test-sip.c sip: Use per origin IP instead of a global IP 2022-01-08 21:25:09 +00:00
test-util.c tests: util: Unit test call icon name function 2021-12-07 11:05:12 +01:00