I continued my tests and definitely the problems is when iax.conf is listening on a mix of ipv4/ipv6 IPs
*1
[general]
bindport=4569
bindaddr=fd99:1234:beef:cafe::ff47 ; no ipv4
*2
[general]
bindport=4569
bindaddr=fd99:a:b:70::12 ; no ipv4
*3
[general]
bindport=4569
bindaddr=10.1.58.11 ; more than once to bind to multiple
bindaddr=fd99:a:b:58::11
*1 and *2 have no problem to discuss together, evrything is OK.
Now *3 with *2:
Tx-Frame Retry[002] ā OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
Timestamp: 00011ms SCall: 02779 DCall: 00000 [fd99:a:b:70::12]:4569
CALLTOKEN : Present
On *2
Tx-Frame Retry[001] ā OSeqno: 000 ISeqno: 000 Type: IAX Subclass: POKE
Timestamp: 00005ms SCall: 14222 DCall: 00000 [fd99:a:b:58::11]:4569
CALLTOKEN : Present
In both cases, on the other asterisk, there is nothing in the *CLI.
Now tcpdump:
in *3 -remember, ipv4 AND ipv6- I see the iax packets coming in
18:32:56.448450 ens1 In IP6 fd99:a:b:70::12.4569 > fd99:a:b:58::11.4569: UDP, length 14
18:32:56.947908 ens1 In IP6 fd99:a:b:70::12.4569 > fd99:a:b:58::11.4569: UDP, length 14
18:33:01.947190 ens1 In IP6 fd99:a:b:70::12.4569 > fd99:a:b:58::11.4569: UDP, length 14
But they never get answered and doensānt appears in the cli, as well as POKE packets sended from *3 are NEVER showed in tcpdump !
Keeping this same configuration and using socat to bind ipv6 fd99:a:b:70::12 to an ipv4 address does the job, all is good. I even tested with a brand new asterisk install which is *1, same behavior.
Output of netstat -pan|grep asterisk on *3
tcp 0 0 0.0.0.0:36038 0.0.0.0:* LISTEN 590/asterisk
tcp 0 0 0.0.0.0:5061 0.0.0.0:* LISTEN 590/asterisk
tcp 0 0 10.1.58.11:40701 95.XXX.YYY.ZZZ:5061 ESTABLISHED 590/asterisk
tcp6 0 0 :::5061 :::* LISTEN 590/asterisk
tcp6 0 0 2001:db8:1234::ee:42195 2001:db8:1234::aa1:5061 ESTABLISHED 590/asterisk
tcp6 0 0 2001:db8:1234::aa1:5061 2001:db8:1234::ee:53195 ESTABLISHED 590/asterisk
tcp6 0 0 2001:db8:b1:932c::47065 2001:db8:230:1205::5061 ESTABLISHED 590/asterisk
tcp6 0 0 fd99:a:b:58::11:45069 fd99:a:b:70::12:5061 ESTABLISHED 590/asterisk
udp 0 0 0.0.0.0:4520 0.0.0.0:* 590/asterisk
udp 0 0 10.1.58.11:4569 0.0.0.0:* 590/asterisk
udp 0 0 0.0.0.0:5000 0.0.0.0:* 590/asterisk
udp 0 0 0.0.0.0:5060 0.0.0.0:* 590/asterisk
udp 0 0 0.0.0.0:46855 0.0.0.0:* 590/asterisk
udp6 0 0 fd99:a:b:58::11:4569 :::* 590/asterisk
udp6 0 0 2001:db8:b1:932c:::4569 :::* 590/asterisk
udp6 0 0 :::5060 :::* 590/asterisk
udp6 0 0 :::59188 :::* 590/asterisk
unix 3 STREAM CONNECTE 25887 590/asterisk
unix 3 STREAM CONNECTE 25888 590/asterisk
unix 3 STREAM CONNECTE 25886 590/asterisk /var/run/asterisk/asterisk.ctl
unix 3 STREAM CONNECTE 24693 3318/rasterisk
unix 2 [ ACC ] STREAM LISTENING 18520 590/asterisk /var/run/asterisk/asterisk.ctl
unix 3 STREAM CONNECTE 16923 590/asterisk
unix 3 STREAM CONNECTE 16922 590/asterisk
unix 3 STREAM CONNECTE 16924 590/asterisk
unix 3 STREAM CONNECTE 16925 590/asterisk
Thanks for your support