[asterisk-users] pjsip rtp_ipv6=yes but endpoint registered via ipv4 (IP4 contact infor)

Benoit Panizzon benoit.panizzon at imp.ch
Tue Jan 9 07:48:21 CST 2018


Dear List

I fear I stumbled over a bug in asterisk 13.14.1.

My 'phones' are roaming around, sometimes some are connecting from ipv6
enabled networks, another time they are not.

If a connection is ipv6 I would prefer to use ipv6 to avoid ipv4-nat
problems.

I have not specified a transport in the endpoint section, so that the
appropriate transport which corresponds to the registration can be used.

Now I have noticed, if an phone is registered from an ipv4 only
endpoint and is performing an outgoing call, my asterisk server is
answering with an IP4 RTP IPv6 address:

Example:

<--- Received SIP request (1235 bytes) from UDP:157.161.4.172:5060 --->
[...]
v=0
o=MxSIP 0 20 IN IP4 157.161.4.172
s=SIP Call
c=IN IP4 157.161.4.172
t=0 0
m=audio 6018 RTP/AVP 9 8 97 91 101
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:97 CLEARMODE/8000
a=rtpmap:91 X-CLEAR-CHANNEL/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=sendrecv

<--- Transmitting SIP response (914 bytes) to UDP:157.161.4.172:5060
--->
[...]
v=0
o=- 0 22 IN IP4 2001:4060:dead:beef::1
s=Asterisk
c=IN IP4 2001:4060:dead:beef::1
t=0 0
m=audio 16172 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv


Errr... how should my client @ 157.161.4.172 send udp to
2001:4060:dead:beef::1?

Also when I compare with a real IPv6 client I notice from the client:

c=IN IP6 2001:4060:1:4133:204:13ff:fe30:2a80

from the Asterisk:

c=IN IP4 2001:4060:dead:beef::1

Shouldn't that also be IP6 from the asterisk?

Mit freundlichen Grüssen

-Benoît Panizzon-
-- 
I m p r o W a r e   A G    -    Leiter Commerce Kunden
______________________________________________________

Zurlindenstrasse 29             Tel  +41 61 826 93 00
CH-4133 Pratteln                Fax  +41 61 826 93 01
Schweiz                         Web  http://www.imp.ch
______________________________________________________



More information about the asterisk-users mailing list