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