Was getting this error message in Asterisk after I disabled IPv6 I quit getting theses messges

[Jul 25 14:43:35] NOTICE[7095] res_hep.c: Unable to send packet: Address Family mismatch between source/destination

 

 

Note: Run these commands as a user with root privileges.

Check to see if you’re installation is currently set up for IPv6:

# cat /proc/sys/net/ipv6/conf/all/disable_ipv6
  0

If the output is 0, IPv6 is enabled.
If the output is 1, IPv6 is already disabled.

Edit the /etc/sysctl.d/99-sysctl.conf (Debian) or /etc/sysctl.d/10-ipv6-privacy.conf (Armbian) file to set the kernel parameter to disable IPv6:

# vim /etc/sysctl.d/10-ipv6-privacy.conf

Scroll to the very bottom, and add the following line:

net.ipv6.conf.all.disable_ipv6 = 1

Reboot the system:

# reboot

Chack to see if ifdisabled IPv6

# cat /proc/sys/net/ipv6/conf/all/disable_ipv6
1