thanks. thats the part I was missing. just found that out a few ago. now if I can just get my android sip client to work when not on the same lan as my freepbx server. its not passing any audio when my android phone is not on same lan/wifi as the server. calls connects and the sip client registers just fine. just dont get any audio in/out of the sip client when placing a call. iv forwarded 5060 udp 5061 udp and 10000-20000 udp from outside (internet) to my internal lan (freepbx server).
iv been playing with nat settings and not having much luck. if it matters my freepbx server is behind 2 routers/firewalls so I guess that would be a double nat which I have setup correctly as I have other ports forwarded to the same server that are working just fine and ufw is turned off.
Update 1: Had to put both my LAN segments into NAT Settings/Lan Networks under General SIP Settings (192.168.1.1/24 which is my ISP router that faces the internet and 10.1.1.0/24 which is my router and faces the my isp router. In my case my freepbx server is on the 10.1.1.0 lan.
Update 2 : Spoke too soon. im not sure what is going on. cant get audio when not on the lan. I thought I had it for a second there. must not have been fully disconnected my wifi.
Update 3 : Hopefully last update. So I used the build in call recorder of freepbx as a sort of diags tool. I found that even though I didn’t hear any audio on my android phone in or out while my phone was not on the same lan as my freepbx server a call was recorded and it had both sides of the audio. that lead me to look at settings inside my sip client. in this case it was zoiper (Can anyone recommend a better sip client for android?). I ended up enabling the stun server setting inside zoiper. after making a few test calls it looks like its working. Yay. I hope this info is of help to anyone else having similar issues as me.
More importantly thanks for all the hard work put into this project. I am finding it most fun to play with and learn from. Lots of info and posts from people having issues and learning as well. The more we share and read the more we learn.Fun stuff.