HowTo configure siproxd
From SIPfoundry sipXecs IP PBX, The Open Source SIP PBX for Linux - Calivia
Contents |
HowTo Build siproxd
Download the source
libosip2: You still need the older version 2.2. Version 3.0.1 is part of the Fedora Extra repository, but we are going to install the 2.2 RPM from here.
wget http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc5/i386/RPMS.dries/libosip2-devel-2.2.0-1.2.fc5.rf.i386.rpm wget http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc5/i386/RPMS.dries/libosip2-2.2.0-1.2.fc5.rf.i386.rpm
We then downloaded the snapshot release 0.6.0:
wget http://siproxd.tuxworld.ch/siproxd-16Feb2007.tar.gz
Rename the snapshot file to siproxd-0.6.0.tar.gz. Then build the RPM:
rpmbuild -ta siproxd-0.6.0.tar.gz
If you get an error like this:
cp: cannot stat `doc/html/*': No such file or directory cp: cannot stat `doc/pdf/*': No such file or directory
It is because the directories doc/html and doc/pdf are empty in the source tarball. You can fix this by unpacking the tarball and the in the .spec file comment out the include statement for these two directories. After re-packing the tarball it should build fine.
Configure siproxd
Copy the example configuration file and adapt to your needs.
| File: /etc/siproxd.conf.example |
|
|
| File: /etc/siproxd_passwd.cfg |
###################################################################### # # Per user password file for siproxd # # format is: # <username> <password> # username and password must not contains white spaces # ###################################################################### user password |
siproxd behind NAT
see: http://sourceforge.net/mailarchive/forum.php?thread_id=6714142&forum_id=11829
A number of people have asked if it is not possible to run siproxd
on a host *inside* the private network and *not* of the NAT router
itself. The reason for these requests is, most of home users use some
out-of-the-box ADSL router that can not run any additional software.
I"m currently working to implement such functionality into siproxd,
so it can be run "in front" (or behind - depends on the point of view)
of an NAT router:
local (private)
network
+-------------+
-----+------------+----| ADSL router |------------>> Internet
| | +-------------+
| |
+------+ +-------+
| SIP | |siproxd|
|client| +-------+
+------+
Anyone looking for this feature is encouraged to download the latest
snapshot. Currently no documentation exists, but following I include
a short list of things to consider.
On your Router:
- forward incoming data for UDP/5060 to the siproxd host
- forward incoming data for UDP/7070-7079 to the siproxd host
Siproxd config:
- set both, "if_inbound" and "if_outbound" to the inbound interface
(usually the only network interface on that box)
- additionally define "host_outbound" with the IP address (or
hostname) of your public IP. You may want use a DYNDNS hostname
to be able to deal with dynamically changing IP addresses.
I was able to place an outgoing call via sipphone.com to my normal
telephone line and got two way audio - it can"t be that bad then :-)
Something that currently will fail is using symmetric RTP. If you can
configure this in your SIP client, disable it.
