Asterisk IPv6

I’ve installed Asterisk 1.8.3.2 and I have it working with IPv4, but when I configure our phones to IPv6 asterisk show the following error messages:

[Apr 13 09:56:45] NOTICE[2166]: chan_sip.c:23511 handle_request_register: Registration from ‘sip:1000@[2001::17:172:31:5:5]’ failed for ‘[2001::1:10:1:0:50]:5060’ - Not a local domain

Can someone help with this problem, I’m very new to this.
Thank you

Do you have a domain= line in your sip.conf? If so, try removing it.