asterisk with IPv6

picorobert
Joined: Thu 23 of Apr, 2015

asterisk with IPv6

Posted:Thu 23 of Apr, 2015 (09:59 UTC)
Hi,

I am trying to test asterisk with IPv6. The problem is that i get an 401 error when trying to register with an ipv6 address.
When using ipv4, it works with no problems at al.


sip.conf


[ general ]
context=public
allowoverlap=no
udpbindaddr=::
tcpenable=no
transport=udp
srvlookup=yes
qualify=yes
;nat=yes



[pico-01]
        type=friend
        context=intern
        allow=ulaw,alaw,g729
        host=dynamic
        secret=xx


[pico-02]
        type=friend
        context=intern
        allow=ulaw,alaw,g729
        host=dynamic
        secret=xx


[pico-03]
        type=friend
        context=intern
        allow=ulaw,alaw,g729
        host=dynamic
        secret=xx

--------------------------------------
extenstions.conf


[intern]

exten => 101,1,Dial(SIP/pico-01)
same => n,Hangup

exten => 102,1,Dial(SIP/pico-02)
same => n,Hangup

exten => 103,1,Dial(SIP/pico-03)
same => n,Hangup

---------------------------------
sip debug

<--- Transmitting (no NAT) to [2001:9e0:8526:6a00:204:13ff:fe75:1949]:36832 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP [2001:9e0:8526:6a00:204:13ff:fe75:1949]:36832;branch=z9hG4bK-nd9ps24sy5sx;received=2001:9e0:8526:6a00:204:13ff:fe75:1949;rport=36832
From: "pico-03" <sip:pico-03@picopbx.nl>;tag=bht1jhlu78
To: "pico-03" <sip:pico-03@picopbx.nl>;tag=as3f7a6a05
Call-ID: 313432393731343530313232333835-wlo5jyd3ezt0
CSeq: 397 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="3e288052"
Content-Length: 0


Does anyone have any ideas with what is wrong?

thx