|
From: <gg...@ti...> - 2007-02-18 03:44:30
|
Hi,
=20
I think there is a problem with sipdht when the contact address is an =
IPv6
address (I=92m not really interested in IPv6 but my computer resolves
localhost to ::1 by default). In peer.c Ln.120 there is a sip:%s:%s and
url_format fails because that format is not valid for an IPv6 address. =20
=20
I have changed that line (peer.c Ln.120) to these ones, probably there =
is a
more elegant solution(The same change is needed in get/put/walk.c):
=20
if (strstr(laddr, ":") !=3D NULL)
peer->p_contact =3D url_format(peer->p_home, "sip:[%s]:%s",
laddr, lport);
else
peer->p_contact =3D url_format(peer->p_home, "sip:%s:%s",
laddr, lport);
=20
BR,
G.
|