1 AUTHOR: Jim Gifford <lfs-hints@jg555.com>
5 LICENSE: GNU Free Documentation License Version 1.2
7 SYNOPSIS: How to setup siproxd to use a SIP Phone under LFS
9 DESCRIPTION: This hint will show you how to use a SIP phone
12 PREREQUISITES: Files listed in hint must be downloaded
18 This hint will help you configure a SIP proxy server for use with LFS.
19 The one problem with using a SIP phone is generally most of use are not
20 connected directly to the internet with out phones. The phones are part
21 of are LAN and have IP addresses that are internal to our network. The
22 SIP proxy server allows the phone to communicate to the outside and
23 makes sure the proper phone gets the calls routed to them.
28 Download location http://osip.atosc.org/download/osip
32 Download location http://siproxd.sourceforge.net
38 Siproxd is an proxy/masquerading daemon for the SIP protocol.
39 It handles registrations of SIP clients on a private IP network
40 and performs rewriting of the SIP message bodies to make SIP
41 connections possible via an masquerading firewall.
42 It allows SIP clients (like kphone, linphone) to work behind
43 an IP masquerading firewall or router.
48 Before you can setup siproxd you will need to setup lisosip2.
50 ./configure --prefix=/usr &&
59 Before compiling siproxd you will need to create a user and a group.
61 In /etc/passwd add : siproxd:x:117:117::/dev/null:/bin/false
63 In /etc/group add : siproxd:x:117:
68 ./configure --prefix=/usr --sysconfdir=/etc/siproxd &&
74 To configure siproxd use the following commands to make a siproxd.conf file
77 cp siproxd.conf.example siproxd.conf
79 Now you will need to change the following entries in the file
81 if_inbound = eth0 to if_inbound = {Your LAN Interface}
82 if_outbound = ppp0 to if_outbound = {Your Internet Interface}
84 #hosts_allow_reg = 192.168.1.8/24 to hosts_allow_reg = {Your LAN Network)
89 # Begin $rc_base/init.d/siproxd
91 # Based on sysklogd script from LFS-3.1 and earlier.
92 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
94 source /etc/sysconfig/rc
99 echo "Creating IPTables Rules for Siproxd..."
100 iptables -A INPUT -i {if_inbound from siproxd} -p udp --dport 5006 -j ACCEPT
101 iptables -A INPUT -i {if_inbound from siproxd} -p udp --dport 7070:7080 -j ACCEPT
102 echo "Starting Siproxd..."
103 loadproc /usr/sbin/siproxd
107 iptables -D INPUT -i {if_inbound from siproxd} -p udp --dport 5006 -j ACCEPT
108 iptables -D INPUT -i {if_inbound from siproxd} -p udp --dport 7070:7080 -j ACCEPT
109 killproc /usr/sbin/siproxd
110 echo "Stopping Siproxd..."
119 echo "Usage: $0 {start|stop|restart}"
124 # End $rc_base/init.d/siproxd
127 Phone/Software Configuration
129 You will need to specify the IP address of the server that you loaded
130 the software on as the outgoing proxy.
135 I am a member of freeworlddialup.com, they provide some test #'s you can
136 use. For example 958 would give you your phone #. 612 would give you the
139 Check the providor your using, they may have the same features with different
142 You can also call me at 275410, if I'm around I will answer.
147 Here are some links for software phones, utilizing your sound card and a microphone.
149 Cornfed SIP User Agent http://www.cornfed.com/products
150 linphone http://www.linphone.org
151 Kphone http://www.wirlab.net/kphone/index.html
155 Questions or Comments
157 If you have any question's or comments you can either email me at lfs-hints@jg555.com
158 or call me via FDW at 275410.
164 CHANGELOG: 1.2 Updated Verion
165 1.1 Forgot Phone Configuration. Update Script to delete iptables rules
168 New Version of this document can be viewed from http://cvs.jg555.com/viewcvs.cgi/lfs-hints