[asterisk-bugs] [JIRA] (ASTERISK-30435) chan_iax2: IPv6 client can't qualify/register if 1st bind address is IPv4 and vice versa

tootai (JIRA) noreply at issues.asterisk.org
Tue Feb 21 12:48:03 CST 2023


    [ https://issues.asterisk.org/jira/browse/ASTERISK-30435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=261412#comment-261412 ] 

tootai commented on ASTERISK-30435:
-----------------------------------

Workaround: if 1st bindaddr is ipv4: add an ipv4/32 attached to interface (you can add as much as you want,  each of them being the connection point between a client ipv6 and  iax server).

In the client iax peer conf, replace the ipv6 of the client with the ipv4 you created and then start a socat connection like 

nohup socat UDP-LISTEN:4569,bind=172.31.0.1,reuseaddr,fork,su=nobody UDP6:[2001:db8:1:2::1]:4569

where 172.31.0.1 is the /32 IP you add to your interface and in the peer client host from iax conf and the [2001:db8:1:2::1] is the ipv6 client ip you replaced in iax conf file.

If 1st bindaddr is ipv6, you must reverse the above ips and commands. 

> chan_iax2: IPv6 client can't qualify/register if 1st bind address is IPv4 and vice versa 
> -----------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-30435
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30435
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_iax2
>    Affects Versions: 20.0.1, 18.16.0
>         Environment: Linux Debian 11 Linux Ubuntu 22
>            Reporter: tootai
>
> If bind address in iax conf looks like
> port 4569
> bindaddr 1.2.3.4
> bindaddr [2001:db8::1] ; or without [ ]
> registration of ipv6 client as well as qualify will fail, peer is always chown as UNREACHABLE but an only ipv6 client can connect as user.
> If we put ipv4 bindaddr after the ipv6 one, same append to ipv4 client.
> This means that both protocols can't be used at the same time



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list