1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-28 14:49: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 19f8ac390b
commit 90228e968c

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);
}