Asterisk and IPv6

Hi,

I am trying to test asterisk with ipv6 and I cant get it to work.
The user cannot login. Error: SIP/2.0 401 Unauthorized
--------------sip debug
<— Transmitting (no NAT) to [2001:9e0:8526:6a00:204:13ff:fe75:1949]:42894 —>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP [2001:9e0:8526:6a00:204:13ff:fe75:1949]:42894;branch=z9hG4bK-y7nd5g7uzx5t;received=2001:9e0:8526:6a00:204:13ff:fe75:1949;rport=42894
From: “pico-01” sip:1001@2a00:511:f10:121:400:421:2aff:fe00;tag=inu9c26owd
To: “pico-01” sip:1001@2a00:511:f10:121:400:421:2aff:fe00;tag=as72f98dd4
Call-ID: 313432393730363831353332383135-zi3yijq2f50g
CSeq: 11 REGISTER
Server: Asterisk PBX 11.7.0~dfsg-1ubuntu1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce="70c57d9c"
Content-Length: 0

--------------------sip.conf
[general]
context=default
allowguest=yes
srvlookup=yes
udpbindaddr=::
tcpenable=no
allow=gsm
allow=ulaw
bindport=5060

[pico-01]
username=1001
secret=&&
callerid=“Robert pico1” <1001>
type=friend
host=dynamic
allow=alaw
allow=ulaw
allow=all
allow=gsm
context=intern

--------------------extensions.conf
[intern]
exten => 1001,1,Dial(SIP/1001)
exten => 1002,1,Dial(SIP/pico-02)
exten => 1010,1,Playback(spy-sip.gsm)

any ideas??

Thank you

By the way…it does work with ipv4

401 is not an error. It is of little use without what went before it and how the peer responded to it. It is normal in a register sequence.

Your sip.conf doesn’t contain an entry for the address of record being used here (1001).

Your extensions.conf tries to dial via entries that don’t appear in your sip.conf, so will be interpreted as domain names.