Setting up Siproxd

Linux  OpenWRT 

Sources: [1][], [2][], [3][], [4][] [1]: http://wargle.blogspot.ca/2008/09/get-sip-phone-to-work-with-openwrt-on.html [2]: https://forum.openwrt.org/viewtopic.php?id=9397 [3]: http://siproxd.sourceforge.net/index.php?op=odoc [4]: http://wiki.openwrt.org/oldwiki/SIPwithTransparentProxyAndNokiaE61HowTo

Install Siproxd.

Edit /etc/config/siproxd. If you change rtp_port_low and/or rtp_port_high, make sure to change the next step accordingly.

config siproxd general
    option if_inbound        br-lan
    option if_outbound       eth1
    option rtp_port_low      8000
    option rtp_port_high     8050
    option registration_file /tmp/siproxd_registrations-general
    option rtp_timeout       150
    option default_expires   150

Edit /etc/config/firewall to transparently redirect SIP traffic to Siproxd.

config redirect
    option src       'lan'
    option dest      'wan'
    option proto     'udp'
    option src_dport '5060-5062'
    option dest_ip   '192.168.2.1'
    option dest_port '5060'
    option target    'DNAT'

config rule
    option src       'wan'
    option proto     'udp'
    option dest_port '5060-5062'
    option target    'ACCEPT'

config rule
    option src       'wan'
    option proto     'udp'
    option dest_port '8000-8050'
    option target    'ACCEPT'