I configured a small FreePBX system on my Raspberry pi 4 (raspbx). It works fine, but I want to use my softphones outside of my network too (from the internet). Due to DS Lite, I don’t have an IPv4 address. Therefore I configured IPv6 for pjsip and opened the 5060 port on my router. But when I am connected to the mobile internet my device has no IPv6 and because IPv4 and IPv6 are not compatible I cannot reach my SIP. I searched the Internet for the solution and I found one: IPv4 to IPv6 tunnel with socat. I bought a small server and configured the tunnel. After some try and error my Softphone registered successfully over my servers IPv4 to the PBX.
I can make calls to the system, but the softphones do not ring if I call them. Does anybody have an idea?
My tunnel: socat UDP4-LISTEN:5060,fork,su=nobody UDP6:[…]:5060
My IPv6 configuration (pjsip.transport_customs):
I don’t know how SIP works, but maybe FreePBX registers the server as the requesting device (instead of the softphone, because the traffic goes through the server) and trys to communicate back when calling the extension.
I would appreciate some help. Jonas