Skip to content

Instantly share code, notes, and snippets.

@stonith
Created November 3, 2014 08:30
Show Gist options
  • Save stonith/709c0fd871eb2320c779 to your computer and use it in GitHub Desktop.
Save stonith/709c0fd871eb2320c779 to your computer and use it in GitHub Desktop.
Panasonic Globarange SIP Override
# Originally found here: http://bryars.eu/projects/use-the-panasonic-globarange-with-asterisk/
# Implement asterisk as per article as well as iptables entries
# Override dns entries with dnsmasq on ASUS MerlinWRT router where 192.168.1.3 is ip of asterisk server configured above
/jffs/configs/dnsmasq.conf.add
address=/proxy.joip.com/192.168.1.3
address=/www.joip.com/192.168.1.3
address=/provisioning.joip.com/192.168.1.3
# Add port fwd rules to allow voip provider to reach asterisk server for SIP and RTP
iptables -t nat -I VSERVER 2 -p udp -m udp -s <voip provider network> --dport 5060 -j DNAT --to 192.168.1.3
iptables -t nat -I VSERVER 2 -p udp -m udp -s <voip provider network> --dport 50000:50100 -j DNAT --to 192.168.1.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment