1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-07-07 09:29:30 +00:00

SIP dial() convert the port from int to string

This commit is contained in:
Дилян Палаузов 2022-11-18 13:48:55 +00:00 committed by Evangelos Ribeiro Tzaras
parent a3085c9c91
commit 9f74a167b3

View file

@ -365,7 +365,7 @@ dial (CallsOrigin *origin,
dial_target = g_strdup (address);
} else {
if (self->port > 0)
dial_target = g_strconcat (address, "@", self->host, ":", self->port, NULL);
dial_target = g_strdup_printf ("%s@%s:%d", address, self->host, self->port);
else
dial_target = g_strconcat (address, "@", self->host, NULL);
}