Commit Graph

650 Commits

Author SHA1 Message Date
Jiri Slachta
4a189f3e21
Merge pull request #490 from micmac1/17.01-AST-2019-006_007_008
[17.01] asterisk-13.x: add fixes for AST-2019-006, 007 & 008
2019-12-01 22:21:24 +01:00
Sebastian Kemper
15307b4c38 asterisk-13.x: add fixes for AST-2019-006, 007 & 008
https://downloads.asterisk.org/pub/security/AST-2019-006.html
https://downloads.asterisk.org/pub/security/AST-2019-007.html
https://downloads.asterisk.org/pub/security/AST-2019-008.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-11-22 21:18:13 +01:00
Jiri Slachta
039faa9ef9
Merge pull request #435 from micmac1/17-ast13-AST-2019-003
(for 17.01) asterisk-13.x: fix AST-2019-003
2019-07-12 22:14:51 +02:00
Sebastian Kemper
15e6a1b558 asterisk-13.x: fix AST-2019-003
https://downloads.asterisk.org/pub/security/AST-2019-003.html

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-07-12 19:24:49 +02:00
Jiri Slachta
31398a3759
Merge pull request #375 from micmac1/AST-2018-009-17.01
(17.01) Fix for AST-2018-009
2018-09-21 16:49:07 +02:00
Jiri Slachta
b987aecf91
Merge pull request #372 from micmac1/kama-led-cve
(LEDE 17.01) kamailio-4.x: add fix for CVE-2018-16657
2018-09-21 16:47:50 +02:00
Sebastian Kemper
7f99c1f7e0 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:57:36 +02:00
Sebastian Kemper
2387ec07a4 kamailio-4.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. File paths amended for 4.x release.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-09-12 20:29:57 +02:00
Jiri Slachta
95498e75db
Merge pull request #362 from micmac1/kam-cve-17.01-II
kamailio-4.x: add fix for CVE-2018-14767
2018-08-11 13:05:54 +02:00
Sebastian Kemper
c48758551a kamailio-4.x: add fix for CVE-2018-14767
CVE-2018-14767: "In Kamailio before 5.0.7 and 5.1.x before 5.1.4, a
crafted SIP message with a double "To" header and an empty "To" tag
causes a segmentation fault and crash. The reason is missing input
validation in the "build_res_buf_from_sip_req" core function. This could
result in denial of service and potentially the execution of arbitrary
code."

Patch from upstream. Path to msg_translator.c amended.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-08-07 00:21:22 +02:00
Jiri Slachta
b60d32979a
Merge pull request #341 from micmac1/AST-1701
(for lede-17.01) asterisk-13.x: patch AST-2018-008
2018-06-28 10:38:57 +02:00
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