I have a SIP Phone on my LAN. The outcall work's but incomingcall not.
When I call the SIP phone with my mobile phone, it goes straight to the voice mailbox.
This is my network
Phone --------------- eth1.100|iptables NAT (Debian buster)|eth0.100 ----- Public PBX
10.11.12.13/24 10.11.12.1/24 xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy
Actually i have this iptables rules :
# Internet acces for SIP phone
iptables -A INPUT -i eth0.100 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i eth1.100 -j ACCEPT
iptables -A POSTROUTING -t nat -o eth0.100 -j MASQUERADE
iptables -A FORWARD -i eth0.100 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth1.100 -j ACCEPT
# Open SIP port
iptables -A PREROUTING -t nat -i eth0.100 -p udp --src yyy.yyy.yyy.yyy --dport 5060 -j DNAT --to-destination 10.11.12.13:5060
I think there's something missing, maybe disable source port rewriting?
Would you have an iptables command for that?