Hi,

Thanks for raising this. I’ve raised a github issue to cover the baseresolver 
behaviour – you can track this at: 
https://github.com/Metaswitch/sprout/issues/1317.

In the meantime, can you try creating an AAAA record for your IPv6 address, and 
using this record in place of the IP address? You’ll need to change the 
configuration files in /etc/clearwater, run service clearwater-infrastructure 
restart, then restart all the Clearwater services.

Hope this helps,

Ellie

From: Clearwater [mailto:[email protected]] On 
Behalf Of Marco Costantini
Sent: 02 February 2016 02:37
To: [email protected]
Subject: Re: [Clearwater] All-In-One installation and IPv6

To offer further findings on this,
We turned the Sprout tracing on "Debug" and found some interesting things. 
Please look at the following lines:

02-02-2016 02:04:54.978 UTC Debug baseresolver.cpp:513: Attempt to parse 
[2400:6180:0:e0::18b:2001] as IP address
02-02-2016 02:04:54.978 UTC Verbose dnscachedresolver.cpp:240: Check cache for 
[2400:6180:0:e0::18b:2001] type 28
The baseresolver file calls "inet_pton" to parse a given IP address. After 
reading the docs (http://man7.org/linux/man-pages/man3/inet_pton.3.html), it 
seems that this method does not support parsing IPv6 addresses with square 
brackets (e.g. [2400:6180:0:e0::18b:2001]). However, this format is required in 
SIP where a port is given along-side the IPv6 address.
The second log line shows that the string was NOT found to be an IP address, 
was found to be a hostname, and triggered a dns lookup.
Please advise if you have any ideas on the best solution for this. Is this a 
bug? Perhaps, the baseresolver code can strip the square brackets from the IP 
string before calling 'inet_pton'.
Thank you,
Amauri and Marco.
Amaurco.

On Tue, Feb 2, 2016 at 11:31 AM, Marco Costantini 
<[email protected]<mailto:[email protected]>> wrote:
We have successfully performed an All-In-One installation on a machine with 
public IPv4 and IPv6 addresses. Using the 'force_ipv6' file, we are able to 
switch between IPv4 and IPv6 Clearwater configurations. Also, we are testing 
Clearwater with the use of two PJSUA (pjsip) clients.
When Clearwater is configured for IPv4, our tests succeed (registration, 
session established and media transmitted).
When on IPv6, our test fails. We believe we are running the test properly (we 
simply switched the IPv4 proxy URI to a valid IPv6 one). However, we get a 403 
FORBIDDEN when trying to register.
Looking into the sprout logs, this entry seems to be the most relevant.

`01-02-2016 22:05:07.272 UTC Error dnscachedresolver.cpp:567: Failed to 
retrieve record for [2400:6180:0:e0::18b:2001]: Domain name not found`
(we have changed the IP address here)
Our `/etc/hosts` file has entries for our home-domain -> IPv6 address of our 
clearwater install.
Question: What is the best way to debug this? We are happy to provide any 
additional logs.
Thank you,
Marco and Amauri.


_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org

Reply via email to