summaryrefslogtreecommitdiff
path: root/net/siproxd
Commit message (Collapse)AuthorAgeFilesLines
* siproxd: improve network device resolutionTony Ambardar2023-11-242-4/+11
| | | | | | | | | | | Resolve network devices by first trying 'network_get_device' (L3) and falling back to 'network_get_physdev' (L2) on failure, which allows using Wireguard interfaces. Both are needed to avoid breaking existing usage for some interfaces (e.g. 'wan'). Also add myself as a maintainer. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* treewide: replace AUTORELEASE with real PKG_RELEASEKuan-Yi Li2023-07-191-1/+1
| | | | | | | | | | | | | | | | | | Based on Paul Fertser <fercerpav@gmail.com>'s guidance: Change AUTORELEASE in rules.mk to: ``` AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile)) ``` then update all affected packages by: ``` for i in $(git grep -l PKG_RELEASE:=.*AUTORELEASE | sed 's^.*/\([^/]*\)/Makefile^\1^';); do make package/$i/clean done ``` Signed-off-by: Kuan-Yi Li <kyli@abysm.org>
* siproxd: update to latest gitSebastian Kemper2022-02-201-5/+7
| | | | | | | | | | | This includes time64 fixes plus allows reproducible builds. Also switch to $(AUTORELEASE) Closes #613 Closes #742 Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* siproxd: fix UID variable conflict in initTony Ambardar2021-01-242-6/+6
| | | | | | | | | | | | | | Variable 'UID' is set readonly in some calling contexts, yielding errors during e.g. ImageBuilder usage: Enabling rpcd ./etc/init.d/siproxd: line 14: UID: readonly variable Enabling siproxd Enabling sysctl Rename UID and GID variables as SIPROXD_UID and SIPROXD_GID. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: rev bumpSebastian Kemper2020-10-031-1/+1
| | | | | | Increases revision due to SONAME bump of libosip2. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* siproxd: add max clients configuration and defaultTony Ambardar2020-09-222-22/+29
| | | | | | | | | | | | | | | | Add a configuration option SIPROXD_MAX_CLIENTS used for compile-time sizing of the maximum supported proxy clients. Set this to a default value of 32, which is more suitable for a small network or CPE router and uses much less memory than the upstream value of 512 (e.g. RSS of 2 MB vs 17 MB). Drop the following patch in favour of the new config option: * 005-reduce-rtpproxy-urlmap-size.patch Also fix an incorrect configure option, and silence many warnings due to unused VCS 'ident' variables in the sources. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: update to version 0.8.3, improve logging and memory usageTony Ambardar2020-09-046-49/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | This release includes bug fixes and improvements accumulated over the last 4 years of development snapshots [1]. Bump upstream version, build new plugins 'stats' and 'blacklist', and add an 'sqlite3' package dependency for siproxd-mod-blacklist. Disable procd capturing stderr to syslog, since siproxd in 'foreground' mode writes both to syslog and stderr, duplicating log messages. Include a patch to drastically reduce memory usage (RSS from 17MB to 5MB on ipq40xx platform): * 005-reduce-rtpproxy-urlmap-size.patch Drop the following patches now included upstream: * 010-syslog-msg.patch * 020-gcc10.patch * 100-musl-compat.patch [1] http://siproxd.sourceforge.net/index.php?op=changelog. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* sixproxd: fix compilation with GCC 10Rosen Penev2020-07-192-1/+12
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* siproxd: capture debug output in syslogguidosarducci2018-12-082-1/+2
| | | | | | | Although siproxd normally logs to syslog, it's debug output appears to go only to stderr. Adjust procd setup to also capture stderr in syslog. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: add OpenWrt siproxd wiki link to package infoguidosarducci2018-12-081-1/+1
| | | | | | | | This has the advantage of being available in the package catalog and hence anytime both pre- and post-installation for someone looking for information, using only the 'opkg info siproxd' command. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: restructure code and use procd for initguidosarducci2018-05-242-84/+89
| | | | | | | | | Switch to use procd for init, with support for jails. Clean up code and restructure callback processing to be more robust and understandable. This also fixes a bug processing multiple siproxd config sections, as reported by Michael Kuron. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: don't apply default values already built-inguidosarducci2018-05-241-10/+0
| | | | Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: remove underscores from package namesSebastian Kemper2018-04-101-4/+4
| | | | | | | Underscores should not be used in package base names as they're used as semantic separators by opkg. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* siproxd: improve syslog messagesguidosarducci2018-03-171-0/+20
| | | | | | | | | | Use explicit ident string ("siproxd") instead of NULL, as the latter is not guaranteed to prepend the program name (e.g. unspecified in POSIX), and may result in syslog messages identified only by PID. Use consistent facility (LOG_DAEMON) across openlog() and syslog() calls. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: add usage comments, examples to default UCI configguidosarducci2018-03-171-0/+22
| | | | | | | Explain default configuration options and potential firewall settings. Provide examples of using documented siproxd configuration directives. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: use UCI callback processing, reduce code sizeguidosarducci2018-03-171-171/+118
| | | | | | | | | | | | | | | | Switch to using callback functions for UCI config processing, and remove the unnecessary scan_interfaces() call together with related code. Instead of explicitly handling every possible siproxd config option, use callbacks to deal with those defined in the UCI config file, and directly handle only selected options with desired default values. This shrinks the init code by ~3.5 KB and simplifies updating to future siproxd versions with new options. (Note: this change exposed some long-standing, broken aspects of UCI callback handling, fixed in https://github.com/openwrt/openwrt/pull/805.) Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: update module install defineSebastian Kemper2018-02-241-2/+2
| | | | | | | Use $(INSTALL_BIN) as the modules are installed by siproxd as executables. Remove the wildcards from this line as they're not needed. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* siproxd: update libltdl handlingSebastian Kemper2018-02-242-29/+3
| | | | | | | | | Remove LIBLTDL from the Makefile as well as a patch related to LTDL. Both have in common that they accomplish absolutely nothing. Also explicitly disable the use of the internal libltdl. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* siproxd: use PKG_HASH and update copyright dateguidosarducci2017-07-101-2/+2
| | | | Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: fix support for domain-specific proxiesguidosarducci2017-07-031-6/+3
| | | | | | | | | Use lists for the config entries outbound_domain_{name,host,port}. This permits multiple outbound proxies and fixes: https://github.com/openwrt/telephony/issues/127 Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: update to version 0.8.2guidosarducci2017-07-035-39/+35
| | | | | | | | An upstream siproxd update was released after ~5 years, with bugfixes and new features. This package supports the new plugins and their config options, and updates required patches. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: use clearer runtime file and directory namesguidosarducci2017-07-031-8/+9
| | | | | | | Use more conventional, clearer naming for config and registration files. This includes having distinct directories and specific file suffixes. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: add shell helper function to build config fileguidosarducci2017-07-031-102/+60
| | | | | | | | Using the append_conf_if_set() function removes much repetitive and error-prone code, reduces the source size by ~30%, and fixes a typo previously uncaught. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: clean up directory permissions, ownershipguidosarducci2017-06-201-7/+10
| | | | Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: use reasonable logging level by defaultguidosarducci2017-06-201-1/+1
| | | | | | | | The previous default logging level is completely silent, making normal monitoring or troubleshooting impossible. Use the sane upstream default for logging which captures basic startup, shutdown and error messages. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: use standard interface names by defaultguidosarducci2017-06-202-4/+19
| | | | | | | | Support using standard interface names and make "lan"/"wan" the defaults for inbound/outbound SIP traffic. This change makes siproxd more portable but preserves backwards compatibility for upgrades. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* siproxd: fix musl compatibilityJo-Philipp Wich2015-06-252-2/+33
| | | | | | | - Add missing `sys/types.h` include to provide `u_short` type under musl - Add missing `string.h` includes to avoid implicit function declarations Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* Update a few of the PKG_LICENSE tags to be more accurateJiri Slachta2014-11-051-1/+1
| | | | | Signed-off-by: Eric Schultz <eschultz@prplfoundation.org> Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
* Add PKG_LICENSE variable to the most of the packages.Jiri Slachta2014-11-041-0/+3
| | | | Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
* siproxd: fix missing sys/time.hJiri Slachta2014-07-182-3/+13
| | | | Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
* siproxd: fix typo in init scriptJiri Slachta2013-10-171-1/+1
| | | | Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
* Directory structure restructuralized.Jiri Slachta2013-06-214-0/+350
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>