1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-07 04:15:32 +00:00

sip: origin: Only set own IP if it has changed

This helps to reduce some logspam.
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-06-17 02:09:34 +02:00
parent 2c7569c608
commit bf8bc5db3c

View file

@ -480,6 +480,9 @@ sip_r_register (int status,
nua_get_params (nua, TAG_ANY (), TAG_END ());
if (sip->sip_contact && sip->sip_contact->m_url && sip->sip_contact->m_url->url_host) {
if (g_strcmp0 (origin->own_ip, sip->sip_contact->m_url->url_host) == 0)
return;
g_free (origin->own_ip);
origin->own_ip = g_strdup (sip->sip_contact->m_url->url_host);
g_debug ("Own IP as reported by the registrar: %s", origin->own_ip);