summaryrefslogtreecommitdiff
path: root/net/yate
Commit message (Collapse)AuthorAgeFilesLines
* yate: Update yate script to use an nftables setRobert Högberg2023-10-102-25/+61
| | | | | | | By using an nftables set in this script it's easier to install and use this script now that OpenWrt uses nftables by default. Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
* yate: fix build on macosSergey V. Lobanov2022-02-061-1/+9
| | | | | | | | | | | yate configure script uses `uname -s` to determine OS and changes build logic regarding to build host OS. OpenWrt is always Linux so it should be built as for Linux. This patch uses fakeuname tool to pass `uname -s` checks as Linux on macos build host. Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
* yate: disable parallel buildsSebastian Kemper2021-09-221-1/+2
| | | | | | | | | | | | Sporadic build failures are visible on the build bots. libyate.so: undefined reference to `TelEngine::ClientLogic::initStaticData()' libyate.so: undefined reference to `TelEngine::DefaultLogic::DefaultLogic(char const*, int)' collect2: error: ld returned 1 exit status Turning off parallel builds should (hopefully) work around this. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: bump to 6.4.0Robert Högberg2021-08-032-18/+3
| | | | Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
* yate: increase max acceptable size of incoming SIP messagesRobert Högberg2021-06-082-1/+12
| | | | | | | | | | | | | | | Some SIP UAs support lots of features and codecs which results in large SIP messages. YATE, with its default configuration, truncates and fails to parse received SIP messages which are larger than 1500 bytes. Let's increase the default max message size for OpenWrt users to make it easier to use yate out-of-the-box. The new max size of 8192 bytes has been arbitrarily chosen. I've seen the SIP UA baresip produce messages larger than 1500 bytes with its default configuration when authentication is used. Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
* yate: bump to 6.3.0 and enable speex codecRobert Högberg2021-06-075-142/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New yate modules in this release: yate-mod-ilbcwebrtc yate-mod-speexcodec yate-mod-wiresniff Some patches were removed: 110-no-libnsl.patch - not needed 120-create-thread-key-on-access.patch - not needed 150-video-codecs-mapping.patch - already applied upstream Some additional changes: * An upstream fix (r6470) is cherry-picked to avoid crashing when YATE receives an invalid SIP message. * Build directory changed to include package version. * Set PKG_BUILD_PARALLEL to allow parallelized build of yate. * Speed up build if yate-mod-ilbccodec or yate-mod-sqlitedb is disabled (disable ilbc and sqlite in configure step). * Removing umbrella package yate-collection-basic. It isn't built and hasn't been built for years and I think the modules it wants to install are a bit strange and probably not useful to most users. From the name yate-collection-basic I would expect to get some basic functionality, but why would I then need yate-mod-dumbchan, yate-mod-rmanager and yate-mod-tonegen? What is the use case? I think it's better that users themselves install the packages needed for their use case, especially in OpenWrt where flash space usually is limited and you don't want to install more packages than what you really need. Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
* treewide: remove uClibc++ supportRosen Penev2021-03-061-3/+2
| | | | | | This is in preparation for removing the whole thing from base. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* yate: Revert to internal regex implementationRobert Högberg2018-10-021-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .. because the musl implementation doesn't seem to be fully compatible with yate. We switched to the musl implementation in f6ad95d. Yate has this regexp: ^([[:alpha:]][[:alnum:]]+:)?/?/?([^[:space:][:cntrl:]@]+@)?([[:alnum:]._+-]+|[[][[:xdigit:].:]+[]])(:[0-9]+)? Given a string like sip:012345678@11.111.11.111:5060;user=phone musl's regexec() returns these matches: index start end 0 -1 0 1 0 32 sip:012345678@11.111.11.111:5060 2 -1 -1 3 0 14 sip:012345678@ 4 14 27 11.111.11.111 5 27 32 :5060 .. but this is what yate expects: index start end 0 -1 0 1 0 32 sip:012345678@11.111.11.111:5060 2 0 4 sip: 3 4 14 012345678@ 4 14 27 11.111.11.111 5 27 32 :5060 Fixes #378 Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
* yate: update to 6.1.0Sebastian Kemper2018-07-122-15/+11
| | | | | | Upgrade yate. The video codec mapping patch needed some small changes. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: fix mod-mysqldb compileSebastian Kemper2018-07-121-1/+3
| | | | | | | | | Since libmariadb 10.2.x requires to be linked in together with iconv, include nls.mk to help the build system find it. Also fix a type in PKG_CONFIG_DEPENDS. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: fix mysql detectionSebastian Kemper2018-05-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | When configure is called with '--with-mysql="$(STAGING_DIR)/usr"' it tries to detect mysql manually instead of using mysql_config. This doesn't always work: <snip> checking for MySQL in /var/lib/buildbot/slaves/slave-lede-builds4/i386_pentium4/build/sdk/staging_dir/target-i386_pentium4_musl/usr... no <snip> This commit changes the configure argument to '--with-mysql=yes/no'. When 'yes' is selected configure uses mysql_config and then the detection works reliably. <snip> checking for MySQL using mysql_config... yes 10.1.32 checking whether MYSQL_OPT_RECONNECT is declared... yes checking whether MYSQL_OPT_READ_TIMEOUT is declared... yes checking whether MYSQL_OPT_WRITE_TIMEOUT is declared... yes checking whether mysql_set_character_set is declared... yes <snip> Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: remove underscores from package namesSebastian Kemper2018-04-101-7/+7
| | | | | | | 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>
* yate: build pgsqldb for target ARCSebastian Kemper2018-04-081-1/+1
| | | | Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: Bump PKG_RELEASEZhong Jianxin2018-03-311-1/+1
| | | | Signed-off-by: Zhong Jianxin <azuwis@gmail.com>
* yate: More video codecs mappingZhong Jianxin2018-03-301-0/+36
| | | | Signed-off-by: Zhong Jianxin <azuwis@gmail.com>
* yate: add PKG_CONFIG_DEPENDSSebastian Kemper2018-03-091-0/+11
| | | | Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: revert uclibc++ commitSebastian Kemper2018-03-041-2/+3
| | | | | | | | | | | | | | | | This reverts commit b8b9818a13366e69eb769aeee973db18eecfcca8. In hindsight I have to admit I did not correctly understand the implications of the uclibc++.mk include. The include allows a package to follow the user's choice regarding which C++ library should be the standard. Linking against uClibc++ instead of libstd++ is not a problem when running musl (which is what I had incorrectly assumed), as both C++ libs are separate packages. And uClibc++ is a lot smaller than libstd++, which is probably why it is even the default C++ lib on OpenWrt currently. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: update install defineSebastian Kemper2018-02-241-8/+5
| | | | | | | - Simplify lib install - Use $(INSTALL_CONF) for config files Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: add DAHDI supportSebastian Kemper2018-02-241-2/+2
| | | | Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* net/yate: Add some pluginsSebastian Kemper2018-02-181-1/+5
| | | | | | Add some plugins which are built by default anyway. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* net/yate: Disable RTTISebastian Kemper2018-02-181-1/+0
| | | | | | | | Yate is the only package in OpenWrt which manually enables RTTI (run-time type information). There's no explanation in the Makefile as to why that would be needed or advisable. Remove it. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* net/yate: Remove uclibc++.mk includeSebastian Kemper2018-02-181-2/+1
| | | | | | | | | | | | | | | | | With this include libuClibc++.so.0 gets added as a lib depend, even on musl. readelf shows: Dynamic section at offset 0x10ea60 contains 23 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libuClibc++.so.0] 0x0000000000000001 (NEEDED) Shared library: [libc.so] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x000000000000000e (SONAME) Library soname: [libyate.so.6.0.0] Remove the include from the Makefile and add a depend on libstdcpp instead. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* net/yate: Disable FORTIFY_SOURCE properlySebastian Kemper2018-02-171-0/+6
| | | | | | | | | This reverts commit 4cc2afdcdc6891c5546e94e8a15bb9c96864acd6 which disabled FORTIFY_SOURCE by removing OpenWrt's CPPFLAGS from the built. Instead PKG_FORTIFY_SOURCE:=0 is defined, which is the proper way to do it. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: turn miniwebrtc error into warningSebastian Kemper2018-02-052-3/+23
| | | | | | | | | | | | | ilbcwebrtc and isaccodec currently depend on @!arc because the code does not compile there. The code does not compile on aarch64 either. Instead of adding @!aarch64 this commit adds a patch copied from Debian that turns the error "Please add support for your architecture in typedefs.h" into a warning, allowing the code to build. Consequently this commit removes @!arc from the depends as well. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: fix a typoSebastian Kemper2018-02-041-1/+1
| | | | Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: Prevent build failures due to inclusion of fortify-source headersSebastian Kemper2018-02-031-3/+0
| | | | | | | | | | | | | | | yate cannot be compiled against fortify-source headers at this moment: In file included from /home/sk/tmp/lede/staging_dir/toolchain-x86_64_gcc-5.5.0_musl/include/fortify/unistd.h:23:0, from ../yateclass.h:32, from ../yatengine.h:29, from ../yatephone.h:29, from server/ysnmpagent.cpp:22: /home/sk/tmp/lede/staging_dir/toolchain-x86_64_gcc-5.5.0_musl/include/fortify/fortify-headers.h:20:42: error: type of 'TelEngine::strcat' is unknown To work around this remove CPPFLAGS from CFLAGS. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: fix compile failures on ARCSebastian Kemper2018-02-031-5/+6
| | | | | | | | | - perl and postgresql do not compile on ARC; disable the modules accordingly - ilbcwebrtc and isac also cause build failures on ARC; disable them as well. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: fix module conffilesSebastian Kemper2018-02-031-58/+65
| | | | | | | | | | | Currently conffiles is always filled with <module>.conf. This leads to "no such file and directory" errors when the file actually does not exist. This commit adds a 6th column to BuildPlugin() which indicates if there is a config file or not. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: clean up CONFIGURE_ARGSSebastian Kemper2018-02-031-15/+15
| | | | | | | | | | | | | | | | | | | | - remove ARGS that are default anyway - enable sse2 when target is x86_64 - remove --enable-inline as that causes too many warnings: ilbccodec.cpp:50:7: warning: inlining failed in call to 'virtual {anonymous}::iLBCFactory::~iLBCFactory()': call is unlikely and code size would grow [-Winline] class iLBCFactory : public TranslatorFactory ^~~~~~~~~~~ ilbccodec.cpp:50:7: note: called from here class iLBCFactory : public TranslatorFactory ^~~~~~~~~~~ - --enable-internalregex removed as yate can use external regex - make some choices depending on whether a package is selected; otherwise the build might fail, i.e. when spandsp is not installed but the Makefiles tells the build system to use spandsp anyway Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: clean up FLAGSSebastian Kemper2018-02-031-11/+2
| | | | | | | | | - remove flags to don't have a reason for being there anymore (there is no comment on why they're needed). - add CPPFLAGS to CFLAGS so the compiler can use the FORTIFY_SOURCE headers. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: prevent ilbc to overwrite OpenWrt CFLAGSSebastian Kemper2018-02-031-0/+11
| | | | Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: improve depends of sub packagesSebastian Kemper2018-02-031-11/+13
| | | | | | | Currently the Makfile pulls in every dependency mentioned. Fix this by prefixing the depends with the respective PACKAGE_* items. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
* yate: Bump to version 6.0.0Robert Högberg2017-10-013-18/+12
| | | | Updates yate to version 6.0.0.
* Merge pull request #123 from robho/yate_banbrutes_using_iptables_recentJiri Slachta2017-08-132-0/+51
|\ | | | | yate-scripts-perl: Add script to block phones which fail to authenticate
| * yate-scripts-perl: Add script to block phones which fail to authenticateRobert Högberg2016-10-012-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Yate ships with a php script (banbrutes.php) which can help block brute force login/password attacks. Since Yate for OpenWrt doesn't support php scripts I've written a similar script in perl that's easier to use with OpenWrt. The script uses the iptables extension "recent" to keep track of authentication failures and block users after too many authentication failures. This is an alternative to #87. The functionality is mostly the same, but this is a slightly simplified, more light-weight version since IP sets aren't used. Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
* | Merge pull request #85 from robho/install_echo_scriptJiri Slachta2017-06-091-1/+1
|\ \ | | | | | | yate-mod-extmodule: Include and install script echo.sh
| * | yate-mod-extmodule: Include and install script echo.shRobert Högberg2015-09-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | echo.sh is a simple yate script which can be used to echo back audio to a caller. It's useful for testing purposes. Since the script is a basic shell script it has no specific dependencies. Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
* | | Merge pull request #86 from robho/yate-scripts-perl_needs_perlbase-dataJiri Slachta2017-05-091-1/+1
|\ \ \ | | | | | | | | yate-scripts-perl: Add dependency on perlbase-data
| * | | yate-scripts-perl: Add dependency on perlbase-dataRobert Högberg2015-09-131-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | Yate.pm that is included in yate-scripts-perl uses perl package Data::Dumper which is provided by openwrt package perlbase-data. Update dependency to reflect this. Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
* | | Merge pull request #120 from robho/init-thread-key-on-accessJiri Slachta2017-05-091-0/+49
|\ \ \ | | | | | | | | yate: Call pthread_key_create when the key is first accessed
| * | | yate: Call pthread_key_create when the key is first accessedRobert Högberg2016-09-091-0/+49
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | pthread_key_create used to be called when a specific static key object was initialized, but if another static object was initialized earlier and this other object needed the key during its initialization yate would crash. Fixes #99 Signed-off-by: Robert Högberg <robert.hogberg@gmail.com>
* / | net/yate: Remove support for SpeexDaniel Engberg2017-01-041-3/+1
|/ / | | | | | | | | | | Remove Speex as it's being obsoleted by upstream. Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* / multiple packages: change PKG_MAINTAINER email addressJiri Slachta2016-05-311-1/+1
|/ | | | Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
* yate: update sourceDaniel Golle2015-06-281-6/+6
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* yate: fix build with muslDaniel Golle2015-06-283-3/+52
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* yate: updates yate to 5.4.2. This fixes #14Jiri Slachta2015-03-162-34/+3
| | | | Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
* Add PKG_LICENSE to the rest of the packagesJiri Slachta2014-11-041-0/+4
| | | | Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
* yate: add patch that adds ppc arch to typedefs.hJiri Slachta2014-08-182-1/+32
| | | | Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
* yate: fix typoJiri Slachta2014-08-121-1/+1
| | | | Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
* yate: add mysql moduleJiri Slachta2014-08-121-2/+3
| | | | Signed-off-by: Jiri Slachta <slachta@cesnet.cz>