Commit graph

989 commits

Author SHA1 Message Date
Sebastian Kemper
0d4bfdaf68 freeswitch-stable: bump to 1.8.6
- refresh patches
- drop RAND_bytes patch which was upstreamed
- fix ei_init detection
- add opusfile module

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-06-10 14:44:31 +02:00
Sebastian Kemper
1c2023bad2 freeswitch-stable: init script update
- added trailing '--' to logger to make it foolproof
- the script now checks if user and group exist
- directory creation is now done via awk script (more robust)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-12 13:57:56 +02:00
Sebastian Kemper
31ede68aac asterisk-chan-sccp: fix gcc8 compiles
Patch applied upstream. Fixes compiles for arc targets, which already
use new gcc8 toolchain.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-08 20:15:40 +02:00
Jiri Slachta
4d73f675bd
Merge pull request #422 from micmac1/ast16-mod-desc
asterisk-16.x: update module descriptions
2019-05-06 20:53:25 +02:00
Jiri Slachta
cf51b9b0ff asterisk-15.x: drop support for asterisk-15.x
This commit drops support for asterisk-15.x in favor
of asterisk-16.x.

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2019-05-05 22:10:53 +02:00
Sebastian Kemper
08a96465f0 asterisk-16.x-chan-lantiq: add compile fix
Patch from upstream pull request
(https://github.com/kochstefan/asterisk_channel_lantiq/pull/3).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-04 22:35:05 +02:00
Jiri Slachta
b28098eae8
Merge pull request #423 from micmac1/ast16-semaphores
asterisk-16.x: disable semaphores only on uClibc
2019-05-04 07:47:50 +02:00
Jiri Slachta
46b58619b2
Merge pull request #417 from micmac1/ast16-add2
Asterisk 16 additions II
2019-05-02 12:01:13 +02:00
Andre Heider
a669566e1b asterisk-opus: add variant for asterisk 16
Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-05-02 10:53:12 +02:00
Andre Heider
2a87b37fb3 asterisk-g72x: add variant for asterisk 16
Signed-off-by: Andre Heider <a.heider@gmail.com>
2019-05-02 10:53:12 +02:00
Sebastian Kemper
63a8ad1755 asterisk-16.x: disable semaphores only on uClibc
The current patch disables semaphore use always. But musl and glibc
support semaphores. Only uClibc doesn't support them (the functions are
defined but just throw an error when called).

The patch is updated to allow Asterisk to use the system semaphores when
using anything but uClibc. It is also renamed to reflect that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-01 20:52:08 +02:00
Sebastian Kemper
1de2464d5e asterisk-16.x: update module descriptions
The current module descriptions look a bit topsy-turvy.

This updates the BuildAsteriskModule macro to simply take any sentence
(without trying to integrate the input into another string). If the
input contains '\n' a line break is inserted.

The module descriptions were updated from menuselect-tree.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-01 20:32:51 +02:00
Jiri Slachta
5d9b1156cf
Merge pull request #411 from micmac1/ast16
asterisk-16: new package
2019-05-01 11:43:22 +02:00
Sebastian Kemper
6cdf80bd46 asterisk-16.x: add Asterisk 16
Initial commit of Asterisk 16. Cleans up Makefile; the version number
now only occurs once in it.

Upstream removed the following modules:

  - format_jpeg
  - res_pjsip_registrar_expire (functionality was moved into
    res_pjsip_registrar.)

pjsip has a new dependency, res-http-websocket.

Notes:

  - replaced res_ninit patch

    Replaced patch with the one from Alpine. It's a bit more flexible and
    allows usage of res_ninit where available (when building against
    glibc).

  - fixed musl compiles

    astmm.h now always gets included by asterisk.h, redefining allocators.
    This causes breakage on musl:

    ccache_cc -o chan_pjsip.o -c chan_pjsip.c -MD -MT chan_pjsip.o -MF .chan_pjsip.o.d -MP -pthread -I/home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/asterisk-16.2.1/include -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -iremap/home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/asterisk-16.2.1:asterisk-16.2.1 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libiconv-stub/include -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libintl-stub/include -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/include -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/include -I/home/sk/tmp/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/usr/include -I/home/sk/tmp/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/include/fortify -I/home/sk/tmp/openwrt/staging_dir/toolchain-mips_24kc_gcc-7.4.0_musl/include -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libiconv-stub/include -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/lib/libintl-stub/include    -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/include/libxml2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations       -fPIC -DAST_MODULE=\"chan_pjsip\" -DAST_MODULE_SELF_SYM=__internal_chan_pjsip_self  -DPJ_AUTOCONF=1 -DPJ_IS_BIG_ENDIAN=1 -DPJ_IS_LITTLE_ENDIAN=0 -fPIC -I/home/sk/tmp/openwrt/staging_dir/target-mips_24kc_musl/usr/include
    In file included from /home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/asterisk-16.2.1/include/asterisk.h:23:0,
                     from chan_pjsip.c:35:
    /home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/asterisk-16.2.1/include/asterisk/astmm.h:158:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before '->' token
      Do_not_use_calloc__use_ast_calloc->fail(a, b)
                                       ^
    /home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/asterisk-16.2.1/include/asterisk/astmm.h:162:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before '->' token
      Do_not_use_free__use_ast_free_or_ast_std_free_for_remotely_allocated_memory->fail(a)
                                                                                 ^
    make[4]: *** [/home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/asterisk-16.2.1/Makefile.rules:153: chan_pjsip.o] Error 1

    The problem is that with _GNU_SOURCE defined musl also declares calloc in
    <sched.h> - and when asterisk's source includes <sched.h> _after_
    "asterisk/astmm.h" the definition clashes with the macro. Timo Teräs from
    Alpine Linux fixed this by including <pthread.h> in "asterisk/compat.h". He
    chose to include <pthread.h> instead of <sched.h> because the original
    header inclusion chain seems to be "asterisk/astobj2.h" ->
    "asterisk/lock.h" -> <pthread.h> -> <sched.h>. It seems Asterisk
    practically never includes <sched.h> directly.

  - added loader workaround for musl

    When the modules are loaded, asterisk segfaults on musl.

       Asterisk Dynamic Loader Starting:
      [Mar  2 22:30:05] NOTICE[20712]: loader.c:2230 load_modules: 91 modules will be loaded.
      Segmentation fault

      [48817.544248] do_page_fault(): sending SIGSEGV to asterisk for invalid read access from 00000000
      [48817.544258] epc = 77f6b764 in libc.so[77ef8000+94000]
      [48817.544285] ra  = 0048d579 in asterisk[400000+160000]

    The real problem is that the loader expects dlopen to always run the
    constructor, which doesn't happen with musl, because its dlopen is
    permanent.

    This commit adds a new configure switch '--enable-permanent-dlopen'.
    When enabled, the loader will manually call 'ast_module_register(...)'
    and 'ast_module_unregister(...)' when needed.

  - allow eventfd detection

    Asterisk 16 wants to use eventfd, but it doesn't allow the detection
    during cross-compiling. This results in runtime warnings, for instance
    when shutting down:

      [Mar  2 22:37:41] WARNING[21593]: alertpipe.c:112 ast_alertpipe_read: read() failed: Bad file descriptor
      [Mar  2 22:37:41] WARNING[21593]: alertpipe.c:112 ast_alertpipe_read: read() failed: Bad file descriptor
      [Mar  2 22:37:41] WARNING[21593]: alertpipe.c:112 ast_alertpipe_read: read() failed: Bad file descriptor

    Relax the configure script so that eventfd can also be detected when
    cross-compiling.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-05-01 11:29:49 +02:00
Sebastian Kemper
df294447b1 baresip: update to 0.6.2
- echo module is now built by default
- natbd, v4l, x264 don't exist anymore

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:28:30 +02:00
Sebastian Kemper
5c29fde85c baresip: update default config
This adds two (three, really) sed scripts to update the default
configuration. All example accounts are getting disabled/commented. And
the module_path is set to the actual path.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:24:11 +02:00
Sebastian Kemper
a878514513 baresip: amend file permissions
The files in /usr/share/baresip are all read-only anyway, so
INSTALL_DATA can be used.

Use it as well for the included (default) modules, otherwise they'll
have different permissions than the extra modules.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:21:39 +02:00
Sebastian Kemper
c6509afd2b baresip: rely on procd for shutdown
No need to stop baresip manually. Just let procd handle it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:18:56 +02:00
Sebastian Kemper
0eb7795080 baresip: do not disable on upgrade
It is not a nice user experience when a package changes configuration
files during an upgrade. Remove this from the postinstall routine.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:17:38 +02:00
Sebastian Kemper
f45be8a154 baresip: disable ffmpeg support on i386
The ffmpeg full variant does not compile on i386_pentium currently.
Disable ffmpeg support on i386 to prevent breakage on the buildbots.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:15:21 +02:00
Sebastian Kemper
6979664769 restund: do not disable on upgrade
It is not a nice user experience when a package changes configuration
files during an upgrade. Remove this from the postinstall routine.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:12:39 +02:00
Sebastian Kemper
8fefafee3c restund: rely on procd for shutdown
No need to stop restund manually. Just let procd handle it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 15:10:21 +02:00
Sebastian Kemper
8ba0019419 freeswitch-stable: disable mod_av on i386
The ffmpeg full variant does not compile on i386_pentium currently.
Disable mod_av on i386 to prevent breakage on the buildbots.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-21 12:29:28 +02:00
Sebastian Kemper
787112019c freeswitch-stable: fix gcc8 warnings
Add two patches that were submitted upstream to address warnings that
occur when using gcc 8.3 (like arc does currently) which turn into
errors (-Werror).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-14 19:48:17 +02:00
Sebastian Kemper
d7e221b85f asterisk-chan-lantiq: add asterisk 16 variant
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 23:14:49 +02:00
Sebastian Kemper
a8e53cec30 asterisk-chan-sccp: add missing deps
Without these modules chan-sccp will not load.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 23:04:29 +02:00
Sebastian Kemper
3856c4e401 asterisk-chan-sccp: add asterisk 16 variant
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 23:01:38 +02:00
Sebastian Kemper
e3c95cfc3f asterisk-chan-sccp: update snapshot
Update snapshot to include fixes for Asterisk 16.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 22:55:37 +02:00
Sebastian Kemper
4fdcd74dd5 asterisk-chan-dongle: add asterisk 16 variant
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 22:53:18 +02:00
Sebastian Kemper
a0549eab4a kamailio-5.x: update hiredis patch
The libhiredis package now contais a fix for its pkgconfig file. This
allows to add prefixes, which is needed when cross-compiling in
environments like OpenWrt.

Therefore, the workaround in kamailio is no longer needed and can be
removed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 13:03:15 +02:00
Sebastian Kemper
97c00a118c asterisk-15.x: add patch for AST-2019-001
Remote crash vulnerability with SDP protocol violation.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-03-19 10:22:58 +01:00
Sebastian Kemper
abbbdaa596 freeswitch-stable: bump to 1.8.5
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-02-15 21:51:20 +01:00
Sebastian Kemper
1cdf2c2e25 freeswitch-stable: fix implicit declaration error
Since the update to openssl-1.1.1a the compile fails like this:

  CC       src/libfreeswitch_la-switch_rtp.lo
src/switch_rtp.c: In function 'switch_rtp_get_random':
src/switch_rtp.c:2419:2: error: implicit declaration of function 'RAND_bytes'; did you mean 'RSA_bits'? [-Werror=implicit-function-declaration]
  RAND_bytes(buf, len);
  ^~~~~~~~~~
  RSA_bits
cc1: all warnings being treated as errors
make[4]: *** [Makefile:2377: src/libfreeswitch_la-switch_rtp.lo] Error 1

This patch adds the missing include.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-02-15 21:48:10 +01:00
Sebastian Kemper
c8d2019877 kamailio-5.x: bump to 5.2.1
- bump to 5.2.1
- drops sources.openwrt.org from PKG_SOURCE_URL because this mirror is
  meant as last resort
- adds six new modules (app_python3 marked @BROKEN - doesn't compile
  yet)
- 050-fix-kamailio-utils.patch refreshed. Alpine pushed a fix upstream
  that fixes the quoting issue, so this part could be dropped. I found
  some other issue with kamctl, where the prompt (for password) wasn't
  shown because OpenWrt doesn't have /dev/stderr. So I fixed that and
  added it to this patch as well. Sent upstream.
- hiredis handling was changed upstream. They changed the default
  include from "hiredis/hiredis.h" (which worked for us) to "hiredis.h".
  And the only way to get "hiredis/hiredis.h" is via pkg-config, which
  upstream doesn't allow during cross-compile, probably because hiredis
  pkg-config is rubbish. Patch added to forces pkg-config detection.
  Also includes a fix for a logical error in the Makefile regarding
  header setup. Sent upstream.
  Patch to fix hiredis pkg-config file sent upstream (also to OpenWrt
  package maintainer). Even without hiredis patch we can get away with
  forcing pkg-config detection of hiredis.
- dropped two patches that were upstreamed

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-01-20 10:47:47 +01:00
Sebastian Kemper
cc5ec58dbc kamailio-5.x: fix copyright
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. And I cannot change the
copyright message from a third party either. This commit reverts the
changes.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-01-20 10:21:24 +01:00
Jiri Slachta
dd1e954b2c
Merge pull request #400 from micmac1/bsip
baresip: update to 0.6.0
2019-01-05 09:45:17 +01:00
Jiri Slachta
1f164a50e7
Merge pull request #401 from micmac1/sccp
asterisk-chan-sccp: update to 4.3.1 snapshot
2019-01-05 09:44:00 +01:00
Jiri Slachta
b661f6a962
Merge pull request #402 from micmac1/g72x
asterisk-g72x: update to 1.4.3
2019-01-05 09:41:29 +01:00
Jiri Slachta
8c9c629971
Merge pull request #403 from micmac1/sipp
sipp: update to 3.5.2
2019-01-05 09:38:47 +01:00
Sebastian Kemper
f3408eee24 freeswitch-stable: bump to version 1.8.4
Includes crash-fix for mod_sofia from upstream, FS-11583.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-30 14:48:47 +01:00
Sebastian Kemper
651d6f6f05 sngrep: update to 1.4.6
Update to 1.4.6 and include two fixes from upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:39:48 +01:00
Sebastian Kemper
a4ec8dd40c sngrep: fix copyright
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. And I cannot change the
copyright message from a third party either. This commit reverts the
changes.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:37:13 +01:00
Sebastian Kemper
4589d07a81 sipp: update to 3.5.2
Drop patches for issues that were fixed upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:34:33 +01:00
Sebastian Kemper
b6a33bf8a3 sipp: fix copyright
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. This commit reverts the
change.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:33:16 +01:00
Sebastian Kemper
c17e67f9c8 asterisk-g72x: update to 1.4.3
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:30:02 +01:00
Sebastian Kemper
477249734d asterisk-chan-sccp: update to 4.3.1 snapshot
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:25:08 +01:00
Sebastian Kemper
5d2154edf3 asterisk-chan-sccp: fix copyright
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. This commit reverts the
change.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:23:04 +01:00
Sebastian Kemper
bfff639417 baresip: update to 0.6.0
Drops speex modules (removed upstream). Adds new modules b2bua, echo and
rtcpsummary.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:17:58 +01:00
Sebastian Kemper
3eeb450740 baresip: fix copyright
In a previous commit I updated the copyright message. But that was not
correct as I am not affiliated with OpenWrt. This commit reverts the
change.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-26 19:17:02 +01:00
Sebastian Kemper
fa6b2e6437 freeswitch-stable: fix copyright header
Maintainer is not affiliated with OpenWrt so copyright needs to be set
to maintainer instead of OpenWrt. Also correct the year - it should read
the year in which the Makefile was first written.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-22 22:54:22 +01:00
Sebastian Kemper
61681ed947 freeswitch-stable: remove OpenWrt mirror
sources.openwrt.org is used by the build system as a last-resort mirror.
It's not supposed to be used as a regular source mirror. Remove it from
PKG_SOURCE_URL.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-22 22:53:16 +01:00
Sebastian Kemper
7f01f54adc freeswitch-stable: bump to 1.8.3
Refresh patches + add patch to remove luajit detection, which was added
upstream for this release. luajit is available in OpenWrt, but seems to
always fail on the buildbots. To prevent surprises in the future disable
it for now.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-22 22:44:38 +01:00
Andre Heider
452b5d7d44 asterisk-13.x: update to 13.24.0
Update to the current 13.x release, see [0].

[0] http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-13-current

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-12-16 12:14:51 +01:00
Andre Heider
ef174dc928 asterisk-15.x: update to 15.7.0
Update to the current 15.x release, see [0].
Drop one merged patch and refresh the rest.

There's one new module, res_remb_modifier, add that as a new package.

[0] http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-15-current

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-12-16 12:14:51 +01:00
guidosarducci
aac5a6f843 siproxd: capture debug output in syslog
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>
2018-12-08 16:53:08 -08:00
guidosarducci
aa2e7cdc3c siproxd: add OpenWrt siproxd wiki link to package info
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>
2018-12-08 16:51:33 -08:00
Sebastian Kemper
74adbc81a9 kamailio-5.x: fix hotplug script file name
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-02 12:28:21 +01:00
Sebastian Kemper
072d2ce320 rtpproxy: fix hotplug script file name
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-12-02 12:27:15 +01:00
Jiri Slachta
4395598a75
Merge pull request #385 from micmac1/rtpp
rtpproxy: update to procd and some brushing up
2018-11-15 15:59:26 +01:00
Jiri Slachta
5d299be0ef
Merge pull request #386 from micmac1/kam_procd
kamailio-5.x: update to procd, minor version bump
2018-11-15 15:58:06 +01:00
Jiri Slachta
d231db9e63
Merge pull request #389 from micmac1/bsip-x264
baresip: remove depend on libx264
2018-11-15 15:56:46 +01:00
Sebastian Kemper
2cc494b512 asterisk-15.x: add patch for AST-2018-010
Patch from upstream:

     Summary        Remote crash vulnerability DNS SRV and NAPTR lookups
Nature of Advisory  Denial Of Service
  Susceptibility    Remote Unauthenticated Sessions
     Severity       Moderate
  Exploits Known    No
    Reported On     October 23, 2018

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-14 21:35:13 +01:00
Sebastian Kemper
84bf41e139 freeswitch-stable: cleanup init script
- clean up variable names
 - add options to uci config to enable/disable logging
 - remove option change_perm as it's hacky
 - change check before mkdir and friends to prevent
   overwriting/chown/chmod of existing files/directories (important)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-12 22:35:49 +01:00
Sebastian Kemper
92bdfa634d freeswitch-stable: cleanup hotplug script
- clean up variable names
- replace pgrep with pidof
- remove LOG_WARN and use LOG_ERR instead

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-12 22:21:42 +01:00
Sebastian Kemper
0e4d42b262 freeswitch-stable: don't force disable on install
Don't force freeswitch to off during postinstall. It's not common
practice (anywhere) and it may be confusing.

Add a link to the Wiki, too, and bump the revision.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-12 22:06:55 +01:00
Sebastian Kemper
e730272a77 freeswitch-stable: move hotplug into main pkg
There is no point in keeping the hotplug script in an extra package.
Move it to the main package.

The priority of the script is changed from 99 to 90 as the freeswitch
init script uses the same.

The postinstall script will check if 99-freeswitch exists. If it does a
warning is displayed with the suggestion to uninstall the hotplug
package.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-12 22:00:40 +01:00
Sebastian Kemper
5a35a231ec freeswitch-stable: procd compatibility
procd runs as pid 1. When freeswitch realizes that its parent has pid 1,
it thinks that it has been orphaned and terminates the console thread.
That's why procd isn't able to get freeswitch's console output.

This commit mutes the check in src/switch_console.c. Now console output
is properly logged. The workaround parameters "-nc -nf" are replaced by
a proper "-c" ("console").

Additionally this commit hands control over killing freeswitch to procd.
It's no longer done by the script. This simplifies things quite a bit.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-12 21:34:25 +01:00
Sebastian Kemper
a442df04df baresip: remove depend on libx264
Following up the discussion in pull request #388 this commit removes the
depend on libx264 and prevents baresip from linking to libx264.

baresip can still use a H.264 encoder through ffmpeg, which is the
preferred way anyway.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-11 11:18:48 +01:00
Sebastian Kemper
e8034c181f kamailio-5.x: update to 5.1.6
Minor version bump. Two CVE patches can be removed as they're already
included in the source. One patch was refreshed.

Also:

  - https://sources.openwrt.org is added as primary source URL to lessen
    the load on kamailio upstream
  - Build/Configure is defined as empty (because there is no configure
    script in the source tree
  - patch is added to fix dp_replace(); the function was first added in the
    5.1 release and didn't work; patch was accepted upstream

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 22:46:35 +01:00
Sebastian Kemper
65565186ec kamailio-5.x: remove unnecessary depends
Remove the depend on mod-db-sqlite from some modules. They may depend on
a db module, but any will do. And mod-jsonrpcs also does not depend on
mod-json.

Maybe things were different in the past. But today these depends aren't
needed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 22:39:38 +01:00
Sebastian Kemper
04d2b6822e kamailio-5.x: add a note about the uci file
Echoes a message upon installation and points the user to
/etc/config/kamailio.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 22:36:22 +01:00
Sebastian Kemper
0dd94c624e kamailio-5.x: add hotplug script
Add hotplug script to base package. Hotplug will only occur if user
enables it via uci config.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 22:32:58 +01:00
Sebastian Kemper
6568006dde kamailio-5.x: add ip translation to init
kamailio can be started with multiple "-l" ("listen") parameters to tell
it which IPs to listen on. This can also be configured in kamailio.cfg,
of course.

This commit adds the ability to the init script to translate iface names
like "wan" into IP addresses and hand them over to kamailio as command
line arguments. This is useful when using a network connection where IPs
are dynamically assigned.

kamailio can also work with interface names, e.g. "eth0". But it may
listen to all IPs configured on the interface. To avoid this the commit
differentiates beteen IPv4 ("listen") and IPv6 ("listen6"). So if the
user wants kamailio to only listen on an IPv4 address configured on a
certain iface ("wan" for instance), he/she can just specify a list entry
"listen" with that iface.

An explanation is also added to the uci configuration file.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 22:17:39 +01:00
Sebastian Kemper
eef0679cb4 kamailio-5.x: amend mips2 tweak
Commit f84dda74e6 ("kamailio-5.x: enable
FAST_LOCK for MIPS") turned out to be problematic, because it changed
the ARCH to "mips2" not only for "mips", but also for some "mipsel"
targets, which was unintentional.

Address this by filtering for "mips" specifically before setting the
variable.

Also, get rid of PKG_BUILD_PARALLEL, because adding it really didn't
change anything - due to the way "make" is called. Leave a comment to
prevent repetition (read: prevent _me_ from doing the same mistake again
in the future).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 22:06:31 +01:00
Sebastian Kemper
ebaa99518a kamailio-5.x: convert init to procd
This commit

  - updates init script to use procd
  - adds a default user 'kamailio' (kamailio will switch to this user)
  - introduces uci init config (instead of /etc/default/kamailio)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 21:54:01 +01:00
Sebastian Kemper
3da92d2359 rtpproxy: add iface translation to init
rtpproxy expects IPs as parameters. Lots of OpenWrt devices use
connections where the IP is dynamically assigned. This commit adds shell
functions to convert an iface like 'wan' to an IP address before adding
the parameter to the rtpproxy command line.

Explanation is provided in /etc/config/rtpproxy. Some whitespace issues
were also fixed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 20:59:31 +01:00
Sebastian Kemper
76b09155bc rtpproxy: add uci log switch
Add log_level option to uci config. Paired with the comment it makes
setting the log level easier when no man page is around.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 20:43:27 +01:00
Sebastian Kemper
a3767c5f00 rtpproxy: convert init to procd
Update rtpproxy init script to use procd.

Also increases the start priority to 90 (like the hotplug script) to
make sure rtpproxy is started before kamailio.

Fixes some whitespace issues along the way, too.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 20:42:39 +01:00
Sebastian Kemper
325bbe9bbb rtpproxy: add a note about the uci file
Echoes a message upon installation and points the user to
/etc/config/rtpproxy.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 20:21:09 +01:00
Sebastian Kemper
0b092cbe2b rtpproxy: add hotplug script
Install hotplug script along with rtpproxy. It will only be used if
enabled by the user (via uci config file).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-11-05 20:16:56 +01:00
Jiri Slachta
72cb5b8350
Merge pull request #377 from dhewg/pull/asterisk
asterisk related updates
2018-10-15 11:41:27 +02:00
Sebastian Kemper
f84dda74e6 kamailio-5.x: enable FAST_LOCK for MIPS
This tweaks MIPS builds to support a faster locking mechanism.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-10-13 10:09:22 +02:00
Sebastian Kemper
7706749e05 kamailio-5.x: enable parallel build
Enable parallel build for Kamailio package.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-10-13 10:06:09 +02:00
Sebastian Kemper
d035542ffa kamailio-5.x: make jsonrpc filter portable
With OpenWrt default awk - so awk from busybox - the filter is broken,
causing jsonrpc calls to fail, i.e. when running "kamctl ps". Below
patch makes the filter portable. Patch was already accepted upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-10-13 10:05:03 +02:00
Jiri Slachta
a18ff9446c
Merge pull request #381 from micmac1/ast-opus
asterisk-opus: new package
2018-10-10 09:48:10 +02:00
Sebastian Kemper
da517440e1 asterisk-opus: new package
Add package for Opus codec support plugin. Variants for both asterisk13
and asterisk15 included.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-10-09 19:36:07 +02:00
Andre Heider
f6bf5395ac asterisk-13.x: update to 13.23.1
Update to the current 13.x release, see [0].
Drop merged patches and refresh the rest.

Get rid of the unknown --without-pwlib configure switch.
Drop the direct ncurses dependency, it's unused in case of an external
libedit [1].

[0] http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-13-current
[1] https://issues.asterisk.org/jira/browse/ASTERISK-27761

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-10-08 12:13:24 +02:00
Andre Heider
7a9a78a398 asterisk-15.x: update to 15.6.1
Update to the current 15.x release, see [0].
Drop merged patches and refresh the rest.

Get rid of the unknown --without-pwlib configure switch.
Drop the direct ncurses dependency, it's unused in case of an external
libedit [1].

[0] http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-15-current
[1] https://issues.asterisk.org/jira/browse/ASTERISK-27761

Signed-off-by: Andre Heider <a.heider@gmail.com>
2018-10-08 12:13:24 +02:00
Robert Högberg
a026c0ee63 yate: Revert to internal regex implementation
.. 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>
2018-10-02 19:48:18 +02:00
Sebastian Kemper
2711cb872b freeswitch-stable: bump to 1.8.2
- bump version
- go back to using release tarballs (unavailable when 1.8.1 was
  initially released)
- add OpenWrt mirror

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-27 22:48:22 +02:00
Jiri Slachta
66bd4490a5
Merge pull request #370 from micmac1/kama-mas-cve
(master) kamailio-5.x: add fix for CVE-2018-16657
2018-09-21 16:47:25 +02:00
Sebastian Kemper
8a53ea43a1 asterisk-15.x: fix for AST-2018-009
Add upstream fix for AST-2018-009: Remote crash vulnerability in HTTP
websocket upgrade

The vulnerability affects the res_http_websocket.so module.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-20 23:34:25 +02:00
Sebastian Kemper
ed99b9f31b asterisk-13.x: fix for AST-2018-009
Add upstream fix for AST-2018-009: Remote crash vulnerability in HTTP
websocket upgrade

The vulnerability affects the res_http_websocket.so module.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-20 23:29:33 +02:00
Sebastian Kemper
8ecfc4b0b1 kamailio-5.x: add fix for CVE-2018-16657
In Kamailio before 5.0.7 and 5.1.x before 5.1.4, a crafted SIP message with
an invalid Via header causes a segmentation fault and crashes Kamailio. The
reason is missing input validation in the crcitt_string_array core function
for calculating a CRC hash for To tags. (An additional error is present in
the check_via_address core function: this function also misses input
validation.) This could result in denial of service and potentially the
execution of arbitrary code.

Patch from upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-12 20:27:33 +02:00
Sebastian Kemper
8dc9a376bf freeswitch-stable: add PKG_CPE_ID
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-26 20:08:50 +02:00
Sebastian Kemper
d78c4e07fa freeswitch-stable: replace defaults with uci
This commit replaces /etc/default/freeswitch with /etc/config/freeswitch.
This way the init and hotplug configuration can be done with uci instead of
having to edit a file.

This also does away with the busybox ntpd warning. ntpd uses the same
configuration in system and it looks like busybox's ntpd is not used when
ntpd is installed.

Lastly some log strings are amended to start with a lowercase letter.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-26 12:36:48 +02:00
Sebastian Kemper
a162bd9298 freeswitch-stable: disable parallel build
There is a discussion ongoing if parallel builds should be enabled by
default. For freeswitch parallel builds are known to fail when certain
modules are enabled. This commit preemptively disables parallel builds
explicitly.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-26 12:19:25 +02:00
Sebastian Kemper
3466a118b5 freeswitch-stable: fix perl setup
A recent commit in packages/lang/perl is causing a problem with the
perlmod.mk include. Work around this by including perlver.mk instead and
setting up PERL_CMD and PERL_SITELIB manually.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-16 22:12:27 +02:00
Jiri Slachta
76851ef29d
Merge pull request #360 from micmac1/kam-cve-master
kamailio-5.x: add fix for CVE-2018-14767
2018-08-11 12:18:26 +02:00
Jiri Slachta
d025a99c08
Merge pull request #346 from micmac1/asterisk-uclibc-iconv
asterisk: fix iconv related build issue
2018-08-11 12:17:27 +02:00