. All rights reserved. */ /* ========================================================================== */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* ========================================================================== */ ]]> Describe your package here Describe your package requirements here Currently there are no FAQ items provided. siproxd 0.5.13_pfs1 siproxd: Settings pkg_edit.php?xml=siproxd.xml&id=0 siproxd Modify siproxd users and settings.
Services
siproxd.xml /pkg_edit.php?xml=siproxd.xml&id=0
siproxd siproxd.sh siproxd Settings /pkg_edit.php?xml=siproxd.xml&id=0 Users /pkg.php?xml=siproxdusers.xml installedpackages->package->$packagename->configuration->settings http://www.pfsense.com/packages/config/siproxdusers.xml Inbound interface if_inbound Select the inbound interface. interfaces_selection Outbound interface if_outbound Select the outbound interface. interfaces_selection Listening port port Enter the port on which to listen for SIP traffic (default 5060). Do not change this unless you know what you're doing. input Enable RTP proxy rtpenable Enable or disable the RTP proxy. (default is enabled) select RTP port range (lower) rtplower Enter the bottom edge of the port range siproxd will allocate for incoming RTP traffic. This range must be one not blocked by the firewall (default 7070). input RTP port range (upper) rtpupper Enter the top edge of the port range siproxd will allocate for incoming RTP traffic. This range must be one not blocked by the firewall (default 7079). input RTP stream timeout rtptimeout After this number of seconds, an RTP stream is considered dead and proxying it will be stopped (default 300sec). input Default expiration timeout defaulttimeout If a REGISTER request dose not contain an Expires header or expires= parameter, this number of seconds will be used and reported back to the UA in the answer. input Enable proxy authentication authentication If this is checked, clients will be forced to authenticate themselves at the proxy (for registration only). checkbox Outbound proxy hostname outboundproxyhost Enter the hostname of an outbound proxy to send all traffic to. This is only useful if you have multiple masquerading firewalls to cross. input Outbound proxy port outboundproxyport Enter the port of the outbound proxy to send all traffic to. This is only useful if you have multiple masquerading firewalls to cross. input function sync_package_siproxd() { conf_mount_rw(); config_lock(); global $config; $conf =& $config['installedpackages']['siproxd']['config'][0]; $fout = fopen("/usr/local/etc/siproxd.conf","w"); fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); if($_POST['if_inbound'] != "") { fwrite($fout, "if_inbound = " . convert_friendly_interface_to_real_interface_name($_POST['if_inbound']) . "\n"); } if($_POST['if_outbound'] != "") { if($config['interfaces'][$_POST['if_outbound']]['ipaddr'] == "pppoe") { fwrite($fout, "if_outbound = ng0\n\n"); } else { fwrite($fout, "if_outbound = " . convert_friendly_interface_to_real_interface_name($_POST['if_outbound']) . "\n\n"); } } if($_POST['port'] != "") { fwrite($fout, "sip_listen_port = " . $_POST['port'] . "\n\n"); } else { fwrite($fout, "sip_listen_port = 5060\n\n"); } fwrite($fout, "daemonize = 1\n\nsilence_log = 0\n\nlog_calls = 1\n\nuser = nobody\nchrootjail = /usr/local/siproxd/\n\nregistration_file = siproxd_registrations\n\npid_file = siproxd.pid\n\n"); if($_POST['rtpenable'] != "") { fwrite($fout, "rtp_proxy_enable = " . $_POST['rtpenable'] . "\n\n"); } else { fwrite($fout, "rtp_proxy_enable = 1\n\n"); } if($_POST['rtplower'] != "") { if($_POST['rtpupper'] != "") { fwrite($fout, "rtp_port_low = " . $_POST['rtplower'] . "\n"); fwrite($fout, "rtp_port_high = " . $_POST['rtpupper'] . "\n\n"); } } if($_POST['rtptimeout'] != "") { fwrite($fout, "rtp_timeout = " . $_POST['rtptimeout'] . "\n\n"); } else { fwrite($fout, "rtp_timeout = 300\n\n"); } if($_POST['defaulttimeout'] != "") { fwrite($fout, "default_expires = " . $_POST['defaulttimeout'] . "\n\n"); } else { fwrite($fout, "default_expires = 600\n\n"); } if($_POST['authentication']) { fwrite($fout, "proxy_auth_realm = Authentication_Realm\nproxy_auth_pwfile = /usr/local/etc/siproxd_passwd.cfg\n\n"); } fwrite($fout, "debug_level = 0x00000000\n\n"); if($_POST['outboundproxyhost'] != "") { if($_POST['outboundproxyport'] != "") { fwrite($fout, "outbound_proxy_host = " . $_POST['outboundproxyhost'] . "\n"); fwrite($fout, "outbound_proxy_port = " . $_POST['outboundproxyport'] . "\n"); } } fclose($fout); write_rcfile(array( "file" => "siproxd.sh", "start" => "/usr/local/sbin/siproxd", "stop" => "/usr/bin/killall siproxd" ) ); restart_service("siproxd"); conf_mount_ro(); config_unlock(); } sync_package_siproxd(); sync_package_siproxd();