Commit graph

639 commits

Author SHA1 Message Date
Sebastian Kemper
16d8e40dbf asterisk-13.x: patch AST-2018-008
Patch from upstream for AST-2018-008.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-06-25 23:01:32 +02:00
Jiri Slachta
6cfbb81ae1
Merge pull request #335 from guidosarducci/backport-lede-17.01
siproxd: backport procd switch and cleanup to lede 17.01
2018-06-05 09:52:30 +02:00
guidosarducci
1308869987 siproxd: restructure code and use procd for init
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>
(cherry picked from master commit b65b20f6)
2018-06-04 05:00:16 -07:00
guidosarducci
0dddd50503 siproxd: don't apply default values already built-in
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
(cherry picked from master commit a3f6f176)
2018-06-04 04:59:41 -07:00
Jiri Slachta
abf981fa96
Merge pull request #333 from micmac1/17.01-disable-ast-sounds-cache
asterisk-13.x: remove sounds cache
2018-05-27 07:32:01 +02:00
Sebastian Kemper
e57dc2cbeb asterisk-13.x: remove sounds cache
When there is no sounds cache declared the build system will not attempt to
download any sound packs or their SHA1 checksums.

This is to be preferred because:

  a) the build may occur offline, causing it to fail
  b) plain http is used by the build system for downloading

There is no drawback here because the standard sound packs are included in
the Asterisk source tarball already.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-05-24 23:18:38 +02:00
Jiri Slachta
b9261192a5
Merge pull request #327 from micmac1/backport-chan-lantiq
asterisk13-chan-lantiq: backport to 17.01
2018-05-09 13:54:32 +02:00
Sebastian Kemper
f6512e50d9 asterisk13-chan-lantiq: backport to 17.01
Backports chan-lantiq to LEDE 17.01.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-05-05 15:04:49 +02:00
Jiri Slachta
5bc38b4a1e
Merge pull request #307 from micmac1/kam-up
kamailio-4.x: bump to version 4.4.7
2018-03-21 20:35:30 +01:00
Sebastian Kemper
4f5198fce0 kamailio-4.x: bump to version 4.4.7
- changed source URL to https
- refreshed patches
- removed upstreamed patch
- upstream says that between 4.4.0 and 4.4.7 the "configuration file and
  database schema compatibility is preserved"
- includes bug fixes, also for security issues in tmx (CVE-2018-8828)
  and lcr, details:
    https://www.kamailio.org/w/2018/03/kamailio-security-announcement-tmx-lcr/

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-21 20:24:39 +01:00
Jiri Slachta
8fb2a3706d
Merge pull request #306 from guidosarducci/lede-17.01-siproxd-update
siproxd backport from master
2018-03-19 08:10:43 +01:00
guidosarducci
88f20a7159 siproxd: improve syslog messages
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>
2018-03-18 03:37:51 -07:00
guidosarducci
74b1368b98 siproxd: add usage comments, examples to default UCI config
Explain default configuration options and potential firewall settings.
Provide examples of using documented siproxd configuration directives.

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2018-03-18 03:37:51 -07:00
guidosarducci
5dcf61c081 siproxd: use UCI callback processing, reduce code size
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>
2018-03-18 03:37:51 -07:00
Sebastian Kemper
1b6e890b83 siproxd: update module install define
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>
2018-03-18 03:37:51 -07:00
Sebastian Kemper
fea8879c3e siproxd: update libltdl handling
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>
2018-03-18 03:37:51 -07:00
guidosarducci
7ee1ccd198 siproxd: use PKG_HASH and update copyright date
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2018-03-18 03:37:51 -07:00
guidosarducci
afb87c66bb siproxd: fix support for domain-specific proxies
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>
2018-03-18 03:37:51 -07:00
guidosarducci
61923739e0 siproxd: update to version 0.8.2
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>
2018-03-18 03:37:51 -07:00
guidosarducci
9863ac939c siproxd: use clearer runtime file and directory names
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>
2018-03-18 03:37:51 -07:00
guidosarducci
00a66d16fa siproxd: add shell helper function to build config file
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>
2018-03-18 03:37:51 -07:00
guidosarducci
9ff8462702 siproxd: clean up directory permissions, ownership
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
2018-03-18 03:37:51 -07:00
guidosarducci
82ce0817b5 siproxd: use reasonable logging level by default
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>
2018-03-18 03:37:51 -07:00
guidosarducci
8e0055e03f siproxd: use standard interface names by default
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>
2018-03-18 03:37:51 -07:00
Jiri Slachta
9aadde80a3
Merge pull request #287 from micmac1/ast-up-for-17.01
Asterisk/pjproject updates for 17.01
2018-02-27 08:33:19 +01:00
Sebastian Kemper
3a97188f5f asterisk-13.x: bump to 13.19.2
No new features in this release. This is a bugfix release.

- Fixes:
    AST-2018-004
    AST-2018-005

- Remove res_pjsip_transport_management.so as it got moved into
  res_pjsip's core as per AST-2018-003.

- Change to PKG_HASH.

- Remove 003-disable-ast-xml-docs.patch, it doesn't apply anymore.
  Instead change --enable-xmldoc into --disable-xmldoc in the Makefile.

- Refreshed patches.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-26 23:09:56 +01:00
Sebastian Kemper
55036e5db9 pjproject: bump 2.7.2
Includes security fixes:

2094: Crash when receiving SDP with invalid fmtp attribute
2095: Crash when parsing SDP with an invalid media format description

No further changes.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-26 22:54:14 +01:00
Jiri Slachta
b8eaafeee5
Merge pull request #268 from micmac1/kam4-for-1701
New PR: kamailio-4 on lede-17.01 buildfix
2018-02-12 07:05:24 +01:00
Sebastian Kemper
9738bcd11d kamailio-4.x: remove non-existent module
dialog-ng does not exist. Remove the module line to stop the build
failures.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-02-11 20:05:50 +01:00
Jiri Slachta
0a141b6c25
Merge pull request #251 from micmac1/fix-dahdi-dep
dahdi-tools: Fix dahdi dependency on lede-17.01
2018-01-24 17:03:17 +01:00
Sebastian Kemper
52160cdb5a dahdi-tools: fix dahdi-tools-libtonezone dependency on uClibc
Currently the package fails to build with this error:

Package dahdi-tools-libtonezone is missing dependencies for the following libraries:
libpthread.so.1
Makefile:97: recipe for target '/build/lede-17.01/slaves/phase2/arc_arc700/build/sdk/bin/packages/arc_arc700/telephony/dahdi-tools-libtonezone_2.11.1-2_arc_arc700.ipk' failed
make[3]: *** [/build/lede-17.01/slaves/phase2/arc_arc700/build/sdk/bin/packages/arc_arc700/telephony/dahdi-tools-libtonezone_2.11.1-2_arc_arc700.ipk] Error 1

Add the dependecy accordingly.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-23 22:16:34 +01:00
Jiri Slachta
dbf531b43b
Merge pull request #245 from micmac1/asterisk_II-for-17.01
Asterisk part 2 for 17.01
2018-01-22 19:55:24 +01:00
Jiri Slachta
d9929523dc
Merge pull request #244 from micmac1/asterisk_I-for-17.01
Asterisk part 1 for 17.01
2018-01-22 19:53:24 +01:00
Sebastian Kemper
8ff261b179 chan-sccp-b: fix variant build
The variant builing is not working properly because PKG_BUILD_DIR is
unset. This fixes that.

Also the Makefile is cleaned up. LOW_MEMORY is not explicitly defined
anymore because chan-sccp-b is getting the define from the Asterisk
headers.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 20:38:55 +01:00
Sebastian Kemper
c0f85ec888 asterisk-g72x: fix variant build
Currently variant building isn't working properly because PKG_BUILD_DIR
is not set. This commit fixes that.

It also cleans up the Makefile, making it much simpler. The cleanups are
already in master.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 20:36:01 +01:00
Sebastian Kemper
e7a6debe60 asterisk-chan-dongle: version bump, add variant for Asterisk 13
This commit adds VARIANT support. This is so that the module will also
be available for Asterisk 13.

The current version does not support Asterisk 13. So this commit also
updates the package to use the (more recent) source from wdoekes on
github, which is also used in master.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 20:31:52 +01:00
Sebastian Kemper
f8be720f0b asterisk-11.x-chan-dongle: folder rename
Rename the folder to asterisk-chan-dongle to prepare for VARIANT build.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 20:25:19 +01:00
Sebastian Kemper
1b19b9081d asterisk-13.x: module updates
This commit:

- adds some missing descriptions
- updates some module files (e.g. new sub modules)
- adds/updates some module dependencies
- adds some missing CONFIGURE_ARGS that are depending on module selections
- enables fax support (spandsp)
- adds res-xmpp (which seems it was just missed as CONFIGURE_ARGS for it exist)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 20:19:15 +01:00
Sebastian Kemper
6053ff527b asterisk-13.x: change LOW_MEMORY and -march=native treatment
- LOW_MEMORY is known to cause sporadic crashes, disable it by default.
- Prevent Asterisk from adding -march=native to CFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 20:09:55 +01:00
Sebastian Kemper
6fba6f38a5 asterisk-13.x: clean up compile stage
- Don't add extra TARGET_LDFLAGS for asterisk13-pbx-lua. It is not
  needed anymore (apart from that the module isn't available currently,
  see next commit).
- Stop setting -Wl,-rpath-link in LDFLAGS. There is no point to do that.
- Stop calling specific make targets like version.h; make handles the
  build properly without it.
- Use the default compile routine instead of the custom one.
- Add AST_FORTIFY_SOURCE to MAKE_FLAGS (seen in Debian rules file,
  prevents asterisk's build system to mess with OpenWrt/LEDE flags).
- Remove $(SITE_VARS) (unused)
- Remove $(SDK) from ifneq. The variable prevents the ifneq from
  working on the buildbots. $(SDK) is set there, so the ifneqs that test
  for empty will always be true.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 20:07:15 +01:00
Sebastian Kemper
a430a3a59b asterisk-13.x: change some default file locations
- Set data dir to /usr/share/asterisk and use default locations for
  everything else.
- This is more in line with FHS. Database files are now written to tmpfs
  (/var is mounted there). This prevents the rootfs from filling up. It
  also prevents the flash to degrade during constant database rewriting.
- As the data dir changes, so does the location of the sound files. This
  commit also takes care of that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 20:03:19 +01:00
Sebastian Kemper
9cc45ac007 asterisk-13.x: .conf file fixes
Fix issues with configuration files:

- missing configuration files
- conffiles define

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 19:58:25 +01:00
Sebastian Kemper
6a5a43ed97 asterisk-13.x: bump to 13.18.5
The currently used version 13.9.1 has the following open CVEs:

CVE-2016-7551
CVE-2016-9938
CVE-2017-14099
CVE-2017-14100
CVE-2017-14603
CVE-2017-16671
CVE-2017-16672
CVE-2017-17090
CVE-2017-17664
CVE-2017-17850
CVE-2017-7617
CVE-2017-9358
CVE-2017-17850

Upstream provided patches for these but used 13.13.0 or later versions
as baseline. Multiple of these patches fail to apply to 13.9.1. So
upgrade to the current version instead.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 19:48:34 +01:00
Sebastian Kemper
1927de446c pjproject: Makefile improvements
- Cleans up the flags
- Cleans up pkgconfig file so there are no COPTS warnings during
  Asterisk builds

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 19:41:00 +01:00
Sebastian Kemper
082f3042e2 pjproject: add config_site.h
Copied from Asterisk, sets some sane values. For instance it enables
IPv6 support.

Also it disables DEBUG. With debug enabled 'pjproject enables "assert"
functions which can cause Asterisk to crash unexpectedly' (quote from
Asterisk wiki).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 19:38:59 +01:00
Sebastian Kemper
05babb1f2b pjproject: bump to 2.7.1
- Version bump because current version has open CVEs for which
  backported patches do not exist (CVE-2017-16875 and CVE-2017-16872).

- Adds dependency on openssl as otherwise Asterisk will complain. Some
  Asterisk modules cannot load without it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 19:37:50 +01:00
Sebastian Kemper
2f3d302845 asterisk-11.x: add end-of-life warning
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 19:29:48 +01:00
Sebastian Kemper
2ee418bedd asterisk-11.x: add upstream patches for CVEs
This commit adds patches for:

CVE-2016-7551
CVE-2016-9938
CVE-2017-14099
CVE-2017-14100
CVE-2017-14603

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-16 19:27:54 +01:00
Jiri Slachta
424b8c5363
Merge pull request #242 from micmac1/lede-17.01
Lede 17.01 libs
2018-01-15 20:17:36 +01:00
Sebastian Kemper
bf35dbb05d libsrtp: add patches that fix 2 CVEs
Patches copied from Debian. They fix:

CVE-2013-2139
CVE-2015-6360

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-15 20:03:18 +01:00