feed/telephony.git
5 years agodahdi-tools: fix copyright
Sebastian Kemper [Wed, 26 Dec 2018 17:03:35 +0000 (18:03 +0100)]
dahdi-tools: 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>
5 years agoMerge pull request #397 from micmac1/fs-183-2
micmac1 [Sat, 22 Dec 2018 22:03:54 +0000 (23:03 +0100)]
Merge pull request #397 from micmac1/fs-183-2

freeswitch-stable: bump to 1.8.3

5 years agofreeswitch-stable: fix copyright header 397/head
Sebastian Kemper [Sat, 22 Dec 2018 21:54:20 +0000 (22:54 +0100)]
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>
5 years agofreeswitch-stable: remove OpenWrt mirror
Sebastian Kemper [Sat, 22 Dec 2018 21:51:03 +0000 (22:51 +0100)]
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>
5 years agofreeswitch-stable: bump to 1.8.3
Sebastian Kemper [Sat, 22 Dec 2018 21:44:36 +0000 (22:44 +0100)]
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>
5 years agoMerge pull request #396 from dhewg/pull/asterisk
Jiri Slachta [Mon, 17 Dec 2018 06:29:03 +0000 (07:29 +0100)]
Merge pull request #396 from dhewg/pull/asterisk

asterisk updates

5 years agopjproject: update to 2.8 396/head
Andre Heider [Fri, 28 Sep 2018 06:37:10 +0000 (08:37 +0200)]
pjproject: update to 2.8

Update to the current release, see [0].

Get rid of the dropped --without-oss configure switch.

Add an upstream patch to fix building without SRTP support[1],
and refresh the rest.

[0] https://trac.pjsip.org/repos/milestone/release-2.8
[1] https://trac.pjsip.org/repos/changeset/5891/

Signed-off-by: Andre Heider <a.heider@gmail.com>
5 years agoasterisk-13.x: update to 13.24.0
Andre Heider [Fri, 14 Dec 2018 16:13:17 +0000 (17:13 +0100)]
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>
5 years agoasterisk-15.x: update to 15.7.0
Andre Heider [Fri, 14 Dec 2018 16:05:00 +0000 (17:05 +0100)]
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>
5 years agoMerge pull request #395 from guidosarducci/master-update-procd-wiki
Jiri Slachta [Sun, 9 Dec 2018 07:58:03 +0000 (08:58 +0100)]
Merge pull request #395 from guidosarducci/master-update-procd-wiki

siproxd: add wiki link and fix debug log capture

5 years agosiproxd: capture debug output in syslog 395/head
guidosarducci [Sun, 25 Nov 2018 14:15:27 +0000 (06:15 -0800)]
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>
5 years agosiproxd: add OpenWrt siproxd wiki link to package info
guidosarducci [Sun, 25 Nov 2018 14:08:35 +0000 (06:08 -0800)]
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>
5 years agoMerge pull request #394 from micmac1/kama-hot
Jiri Slachta [Sun, 2 Dec 2018 20:54:54 +0000 (21:54 +0100)]
Merge pull request #394 from micmac1/kama-hot

rtpproxy & kamailio: fix hotplug script file names

5 years agokamailio-5.x: fix hotplug script file name 394/head
Sebastian Kemper [Sun, 2 Dec 2018 11:28:21 +0000 (12:28 +0100)]
kamailio-5.x: fix hotplug script file name

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
5 years agortpproxy: fix hotplug script file name
Sebastian Kemper [Sun, 2 Dec 2018 11:27:13 +0000 (12:27 +0100)]
rtpproxy: fix hotplug script file name

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #385 from micmac1/rtpp
Jiri Slachta [Thu, 15 Nov 2018 14:59:26 +0000 (15:59 +0100)]
Merge pull request #385 from micmac1/rtpp

rtpproxy: update to procd and some brushing up

6 years agoMerge pull request #386 from micmac1/kam_procd
Jiri Slachta [Thu, 15 Nov 2018 14:58:06 +0000 (15:58 +0100)]
Merge pull request #386 from micmac1/kam_procd

kamailio-5.x: update to procd, minor version bump

6 years agoMerge pull request #389 from micmac1/bsip-x264
Jiri Slachta [Thu, 15 Nov 2018 14:56:46 +0000 (15:56 +0100)]
Merge pull request #389 from micmac1/bsip-x264

baresip: remove depend on libx264

6 years agoMerge pull request #391 from micmac1/ast15-AST-2018-010-15
Jiri Slachta [Thu, 15 Nov 2018 14:55:53 +0000 (15:55 +0100)]
Merge pull request #391 from micmac1/ast15-AST-2018-010-15

(master) asterisk-15.x: add patch for AST-2018-010

6 years agoasterisk-15.x: add patch for AST-2018-010 391/head
Sebastian Kemper [Wed, 14 Nov 2018 20:35:11 +0000 (21:35 +0100)]
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>
6 years agoMerge pull request #390 from micmac1/fs-init
micmac1 [Mon, 12 Nov 2018 21:47:05 +0000 (22:47 +0100)]
Merge pull request #390 from micmac1/fs-init

freeswitch-stable: init/hotplug updates

6 years agofreeswitch-stable: cleanup init script 390/head
Sebastian Kemper [Mon, 12 Nov 2018 21:29:25 +0000 (22:29 +0100)]
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>
6 years agofreeswitch-stable: cleanup hotplug script
Sebastian Kemper [Mon, 12 Nov 2018 21:20:22 +0000 (22:20 +0100)]
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>
6 years agofreeswitch-stable: don't force disable on install
Sebastian Kemper [Mon, 12 Nov 2018 21:04:16 +0000 (22:04 +0100)]
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>
6 years agofreeswitch-stable: move hotplug into main pkg
Sebastian Kemper [Mon, 12 Nov 2018 20:55:21 +0000 (21:55 +0100)]
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>
6 years agofreeswitch-stable: procd compatibility
Sebastian Kemper [Mon, 12 Nov 2018 20:20:55 +0000 (21:20 +0100)]
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>
6 years agobaresip: remove depend on libx264 389/head
Sebastian Kemper [Sun, 11 Nov 2018 10:15:36 +0000 (11:15 +0100)]
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>
6 years agokamailio-5.x: update to 5.1.6 386/head
Sebastian Kemper [Mon, 5 Nov 2018 21:46:20 +0000 (22:46 +0100)]
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>
6 years agokamailio-5.x: remove unnecessary depends
Sebastian Kemper [Mon, 5 Nov 2018 21:39:36 +0000 (22:39 +0100)]
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>
6 years agokamailio-5.x: add a note about the uci file
Sebastian Kemper [Mon, 5 Nov 2018 21:36:20 +0000 (22:36 +0100)]
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>
6 years agokamailio-5.x: add hotplug script
Sebastian Kemper [Mon, 5 Nov 2018 21:32:56 +0000 (22:32 +0100)]
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>
6 years agokamailio-5.x: add ip translation to init
Sebastian Kemper [Mon, 5 Nov 2018 21:16:25 +0000 (22:16 +0100)]
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>
6 years agokamailio-5.x: amend mips2 tweak
Sebastian Kemper [Mon, 5 Nov 2018 20:57:47 +0000 (21:57 +0100)]
kamailio-5.x: amend mips2 tweak

Commit f84dda74e615c803e6a218cea83dd2a2bfaa67e5 ("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>
6 years agokamailio-5.x: convert init to procd
Sebastian Kemper [Mon, 5 Nov 2018 20:50:44 +0000 (21:50 +0100)]
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>
6 years agortpproxy: add iface translation to init 385/head
Sebastian Kemper [Mon, 5 Nov 2018 19:59:29 +0000 (20:59 +0100)]
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>
6 years agortpproxy: add uci log switch
Sebastian Kemper [Mon, 5 Nov 2018 19:43:25 +0000 (20:43 +0100)]
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>
6 years agortpproxy: convert init to procd
Sebastian Kemper [Mon, 5 Nov 2018 19:34:28 +0000 (20:34 +0100)]
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>
6 years agortpproxy: add a note about the uci file
Sebastian Kemper [Mon, 5 Nov 2018 19:21:06 +0000 (20:21 +0100)]
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>
6 years agortpproxy: add hotplug script
Sebastian Kemper [Mon, 5 Nov 2018 19:16:54 +0000 (20:16 +0100)]
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>
6 years agoMerge pull request #377 from dhewg/pull/asterisk
Jiri Slachta [Mon, 15 Oct 2018 09:41:27 +0000 (11:41 +0200)]
Merge pull request #377 from dhewg/pull/asterisk

asterisk related updates

6 years agoMerge pull request #383 from micmac1/kam-awk-and-mips-tweak-master
Jiri Slachta [Sat, 13 Oct 2018 14:02:14 +0000 (16:02 +0200)]
Merge pull request #383 from micmac1/kam-awk-and-mips-tweak-master

kamailio-5.x: fix awk issue and some tweaks

6 years agokamailio-5.x: enable FAST_LOCK for MIPS 383/head
Sebastian Kemper [Sat, 13 Oct 2018 08:09:20 +0000 (10:09 +0200)]
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>
6 years agokamailio-5.x: enable parallel build
Sebastian Kemper [Sat, 13 Oct 2018 08:06:06 +0000 (10:06 +0200)]
kamailio-5.x: enable parallel build

Enable parallel build for Kamailio package.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agokamailio-5.x: make jsonrpc filter portable
Sebastian Kemper [Sat, 13 Oct 2018 08:05:01 +0000 (10:05 +0200)]
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>
6 years agoMerge pull request #381 from micmac1/ast-opus
Jiri Slachta [Wed, 10 Oct 2018 07:48:10 +0000 (09:48 +0200)]
Merge pull request #381 from micmac1/ast-opus

asterisk-opus: new package

6 years agoasterisk-opus: new package 381/head
Sebastian Kemper [Sat, 6 Oct 2018 11:09:14 +0000 (13:09 +0200)]
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>
6 years agoMerge pull request #379 from robho/yate_internal_regexps
Jiri Slachta [Tue, 9 Oct 2018 06:19:31 +0000 (08:19 +0200)]
Merge pull request #379 from robho/yate_internal_regexps

yate: Revert to internal regex implementation

6 years agoasterisk-13.x: update to 13.23.1 377/head
Andre Heider [Fri, 28 Sep 2018 05:50:24 +0000 (07:50 +0200)]
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>
6 years agoasterisk-15.x: update to 15.6.1
Andre Heider [Thu, 27 Sep 2018 09:46:13 +0000 (11:46 +0200)]
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>
6 years agopjproject: update config_site.h
Andre Heider [Sat, 29 Sep 2018 07:23:28 +0000 (09:23 +0200)]
pjproject: update config_site.h

Sync asterisk settings, see [0].

[0] https://github.com/asterisk/asterisk/blob/master/third-party/pjproject/patches/config_site.h

Signed-off-by: Andre Heider <a.heider@gmail.com>
6 years agoyate: Revert to internal regex implementation 379/head
Robert Högberg [Tue, 2 Oct 2018 14:53:13 +0000 (16:53 +0200)]
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>
6 years agoMerge pull request #376 from micmac1/fs-1.8.2-master
micmac1 [Thu, 27 Sep 2018 20:52:06 +0000 (22:52 +0200)]
Merge pull request #376 from micmac1/fs-1.8.2-master

freeswitch-stable: bump to 1.8.2

6 years agofreeswitch-stable: bump to 1.8.2 376/head
Sebastian Kemper [Thu, 27 Sep 2018 20:46:02 +0000 (22:46 +0200)]
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>
6 years agoMerge pull request #370 from micmac1/kama-mas-cve
Jiri Slachta [Fri, 21 Sep 2018 14:47:25 +0000 (16:47 +0200)]
Merge pull request #370 from micmac1/kama-mas-cve

(master) kamailio-5.x: add fix for CVE-2018-16657

6 years agoMerge pull request #373 from micmac1/master-AST-2018-009
Jiri Slachta [Fri, 21 Sep 2018 14:46:56 +0000 (16:46 +0200)]
Merge pull request #373 from micmac1/master-AST-2018-009

(Master) Fix for AST-2018-009

6 years agoasterisk-15.x: fix for AST-2018-009 373/head
Sebastian Kemper [Thu, 20 Sep 2018 21:34:23 +0000 (23:34 +0200)]
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>
6 years agoasterisk-13.x: fix for AST-2018-009
Sebastian Kemper [Thu, 20 Sep 2018 21:29:30 +0000 (23:29 +0200)]
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>
6 years agokamailio-5.x: add fix for CVE-2018-16657 370/head
Sebastian Kemper [Wed, 12 Sep 2018 18:27:30 +0000 (20:27 +0200)]
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>
6 years agoMerge pull request #368 from micmac1/fs-cpe
micmac1 [Sun, 26 Aug 2018 18:13:55 +0000 (20:13 +0200)]
Merge pull request #368 from micmac1/fs-cpe

freeswitch-stable: add PKG_CPE_ID

6 years agofreeswitch-stable: add PKG_CPE_ID 368/head
Sebastian Kemper [Sun, 26 Aug 2018 18:08:18 +0000 (20:08 +0200)]
freeswitch-stable: add PKG_CPE_ID

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #367 from micmac1/fs-uci
micmac1 [Sun, 26 Aug 2018 10:52:07 +0000 (12:52 +0200)]
Merge pull request #367 from micmac1/fs-uci

freeswitch-stable: replace init config defaults with UCI

6 years agofreeswitch-stable: replace defaults with uci 367/head
Sebastian Kemper [Sun, 26 Aug 2018 10:35:11 +0000 (12:35 +0200)]
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>
6 years agofreeswitch-stable: disable parallel build
Sebastian Kemper [Sun, 26 Aug 2018 10:19:01 +0000 (12:19 +0200)]
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>
6 years agoMerge pull request #365 from micmac1/fs-perl-master
micmac1 [Thu, 16 Aug 2018 20:19:45 +0000 (22:19 +0200)]
Merge pull request #365 from micmac1/fs-perl-master

freeswitch-stable: fix perl setup

6 years agofreeswitch-stable: fix perl setup 365/head
Sebastian Kemper [Thu, 16 Aug 2018 20:08:02 +0000 (22:08 +0200)]
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>
6 years agoMerge pull request #360 from micmac1/kam-cve-master
Jiri Slachta [Sat, 11 Aug 2018 10:18:26 +0000 (12:18 +0200)]
Merge pull request #360 from micmac1/kam-cve-master

kamailio-5.x: add fix for CVE-2018-14767

6 years agoMerge pull request #346 from micmac1/asterisk-uclibc-iconv
Jiri Slachta [Sat, 11 Aug 2018 10:17:27 +0000 (12:17 +0200)]
Merge pull request #346 from micmac1/asterisk-uclibc-iconv

asterisk: fix iconv related build issue

6 years agoMerge pull request #351 from micmac1/sccp-nls
Jiri Slachta [Sat, 11 Aug 2018 10:16:44 +0000 (12:16 +0200)]
Merge pull request #351 from micmac1/sccp-nls

asterisk-chan-sccp: remove iconv hack

6 years agoMerge pull request #352 from micmac1/dongle-nls
Jiri Slachta [Sat, 11 Aug 2018 10:16:07 +0000 (12:16 +0200)]
Merge pull request #352 from micmac1/dongle-nls

asterisk-chan-dongle: remove iconv hack + update snapshot

6 years agokamailio-5.x: add fix for CVE-2018-14767 360/head
Sebastian Kemper [Mon, 6 Aug 2018 21:25:25 +0000 (23:25 +0200)]
kamailio-5.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."

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #358 from micmac1/fs-1.8-sigkill
micmac1 [Sun, 5 Aug 2018 13:07:27 +0000 (15:07 +0200)]
Merge pull request #358 from micmac1/fs-1.8-sigkill

freeswitch-stable: add SIGKILL to init script

6 years agofreeswitch-stable: add SIGKILL to init script 358/head
Sebastian Kemper [Sun, 5 Aug 2018 12:44:40 +0000 (14:44 +0200)]
freeswitch-stable: add SIGKILL to init script

Sometimes freeswitch doesn't exit after receiving the SIGTERM signal.
This can be reproduced by sending SIGTERM to a freeswitch instance which
is initializing (which can take quite some time).

Instead of just giving up and exiting - leaving a hung freeswitch
process on the system - this commit adds some lines to the init script
that send SIGKILL to freeswitch in case the attempt to terminate it with
SIGTERM fails.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #347 from micmac1/yate-uclibc-iconv
micmac1 [Sun, 5 Aug 2018 09:22:49 +0000 (11:22 +0200)]
Merge pull request #347 from micmac1/yate-uclibc-iconv

yate: upgrade to 6.1.0 and fix uclibc build issue

6 years agoMerge pull request #357 from micmac1/fs-1.8-fs_cli
micmac1 [Fri, 3 Aug 2018 16:52:00 +0000 (18:52 +0200)]
Merge pull request #357 from micmac1/fs-1.8-fs_cli

freeswitch-stable: fix garbled output in fs_cli

6 years agofreeswitch-stable: fix garbled output in fs_cli 357/head
Sebastian Kemper [Fri, 3 Aug 2018 16:48:38 +0000 (18:48 +0200)]
freeswitch-stable: fix garbled output in fs_cli

Fix a typo. Sent to upstream via Jira FS-11309.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #356 from cotequeiroz/freeswitch-stable_memory-leak
micmac1 [Wed, 1 Aug 2018 20:47:37 +0000 (22:47 +0200)]
Merge pull request #356 from cotequeiroz/freeswitch-stable_memory-leak

freeswitch-stable: fix memory leak in mod_event_multicast

6 years agofreeswitch-stable: fix memory leak in mod_event_multicast 356/head
Eneas U de Queiroz [Wed, 1 Aug 2018 17:10:09 +0000 (14:10 -0300)]
freeswitch-stable: fix memory leak in mod_event_multicast

Applied a patch, submitted upstream at
https://freeswitch.org/jira/browse/FS-11193
that fixes two memory leaks in mod_event_multicast.c

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
6 years agoMerge pull request #355 from micmac1/fs-1.8-mods
micmac1 [Wed, 1 Aug 2018 13:55:36 +0000 (15:55 +0200)]
Merge pull request #355 from micmac1/fs-1.8-mods

freeswitch-stable: add new modules

6 years agofreeswitch-stable: add new modules 355/head
Sebastian Kemper [Wed, 1 Aug 2018 13:51:10 +0000 (15:51 +0200)]
freeswitch-stable: add new modules

1. fail2ban
2. raven
3. video_filter

All three are new in FreeSWITCH 1.8.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #354 from micmac1/fs-1.8
micmac1 [Wed, 1 Aug 2018 11:35:40 +0000 (13:35 +0200)]
Merge pull request #354 from micmac1/fs-1.8

freeswitch-stable: bump to 1.8.1

6 years agofreeswitch-stable: upgrade to 1.8.1 354/head
Sebastian Kemper [Wed, 1 Aug 2018 11:22:40 +0000 (13:22 +0200)]
freeswitch-stable: upgrade to 1.8.1

- Bump version from 1.6.20 to 1.8.1 (includes OpenSSL 1.1.0 support).
- Upstream didn't provide a source tarball yet, switch to git to grab
  the release.
- freeradius-client got updated to 1.1.7 by upstream, update version and
  checksum accordingly.
- tiff, libvpx and pcre patches are no longer needed, drop them.
- Refresh the remaining patches. Only minor changes were needed.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agofreeswitch-stable: remove mod_v8
Sebastian Kemper [Wed, 1 Aug 2018 11:12:09 +0000 (13:12 +0200)]
freeswitch-stable: remove mod_v8

mod_v8 is too difficult to maintain and tricky to cross-compile. This
commit removes it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoasterisk-chan-dongle: update snapshot 352/head
Sebastian Kemper [Wed, 18 Jul 2018 20:11:44 +0000 (22:11 +0200)]
asterisk-chan-dongle: update snapshot

Includes USSD encoding fix for E3531.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoasterisk-chan-dongle: remove iconv hack
Sebastian Kemper [Wed, 18 Jul 2018 20:07:48 +0000 (22:07 +0200)]
asterisk-chan-dongle: remove iconv hack

Remove the hack for iconv on uclibc. Instead include nls.mk which will
sort out the iconv depends.

This changes the iconv patch. AC_SEARCH_LIB doesn't work properly for
openwrt/lede. Instead use AC_CHECK_LIB.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoasterisk-chan-sccp: remove iconv hack 351/head
Sebastian Kemper [Tue, 17 Jul 2018 21:26:20 +0000 (23:26 +0200)]
asterisk-chan-sccp: remove iconv hack

Instead just include nls.mk.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #350 from micmac1/fs-nls3
micmac1 [Mon, 16 Jul 2018 21:27:31 +0000 (23:27 +0200)]
Merge pull request #350 from micmac1/fs-nls3

freeswitch-stable: fix gsmopen inbuf handling

6 years agofreeswitch-stable: fix gsmopen inbuf handling 350/head
Sebastian Kemper [Mon, 16 Jul 2018 21:24:36 +0000 (23:24 +0200)]
freeswitch-stable: fix gsmopen inbuf handling

inbuf is only const in libiconv-full when compiled against uclibc.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #349 from micmac1/fs-nls2
micmac1 [Sun, 15 Jul 2018 21:34:43 +0000 (23:34 +0200)]
Merge pull request #349 from micmac1/fs-nls2

freeswitch-stable: fix sed script

6 years agofreeswitch-stable: fix sed script 349/head
Sebastian Kemper [Sun, 15 Jul 2018 21:27:08 +0000 (23:27 +0200)]
freeswitch-stable: fix sed script

The sed script used on libs/unimrcp is used to set LDFLAGS using
APR_SETVAR. Since nls.mk is included there are LDFLAGS with commas. But
the macro APR_SETVAR uses commas to separate arguments, so now the
LDFLAGS are only getting partially copied.

Solve this by surrounding LDFLAGS with brackets ([...]).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #348 from micmac1/fs-nls
micmac1 [Sun, 15 Jul 2018 14:58:44 +0000 (16:58 +0200)]
Merge pull request #348 from micmac1/fs-nls

freeswitch-stable: fix iconv related issues

6 years agofreeswitch-stable: include nls.mk, remove hack 348/head
Sebastian Kemper [Sun, 15 Jul 2018 14:39:07 +0000 (16:39 +0200)]
freeswitch-stable: include nls.mk, remove hack

Removes the uClibc iconv hack. Instead nls.mk is included to sort out
iconv depends.

mod_gsmopen isn't able to figure out if iconv's inbuf is const. In
OpenWrt this is the case with libiconv-full, not with libiconv-stub. To
aid mod_gsmopen update 270-fix-uclibc-iconv-in-gsmopen.patch so that we
can pass on if inbuf is const via CFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agofreeswitch-stable: fix APR_TRY_COMPILE_NO_WARNING
Sebastian Kemper [Sun, 15 Jul 2018 14:17:32 +0000 (16:17 +0200)]
freeswitch-stable: fix APR_TRY_COMPILE_NO_WARNING

The macro included in apr/apr-util is incorrect. It results in extra
brackets being put into conftest.c, for example:

  #include "confdefs.h"

[
  #include <stddef.h>
  #include <iconv.h>
  ]
int main(int argc, const char *const *argv) {
[
  iconv(0,(char **)0,(size_t *)0,(char **)0,(size_t *)0);
  ]
  return 0; }

The test always fails with:

error: expected identifier or '(' before '[' token

The following checks are affected:

- variable length arrays
- type of inbuf parameter to iconv

Fix from upstream (Apache).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoasterisk-15.x: fix iconv related build issue 346/head
Sebastian Kemper [Thu, 12 Jul 2018 21:21:30 +0000 (23:21 +0200)]
asterisk-15.x: fix iconv related build issue

libmariadb 10.2 needs to be linked in together with iconv. Include nls.mk
to help the build system find the iconv library.

Also update func_iconv's depend. We want to use the variable
$(ICONV_DEPENDS) provided by nls.mk. It resolves to
+BUILD_NLS:libiconv-full. This cannot be handled properly right now, as the
module depends filter cannot handle +<SYMBOL>:<package> depends. So add
another field to the Makefile's module function for complex depends, which
are passed on unfiltered.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoasterisk-13.x: fix iconv related build issue
Sebastian Kemper [Thu, 12 Jul 2018 21:11:03 +0000 (23:11 +0200)]
asterisk-13.x: fix iconv related build issue

libmariadb 10.2 needs to be linked in together with iconv. Include nls.mk
to help the build system find the iconv library.

Also update func_iconv's depend. We want to use the variable
$(ICONV_DEPENDS) provided by nls.mk. It resolves to
+BUILD_NLS:libiconv-full. This cannot be handled properly right now, as the
module depends filter cannot handle +<SYMBOL>:<package> depends. So add
another field to the Makefile's module function for complex depends, which
are passed on unfiltered.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoyate: update to 6.1.0 347/head
Sebastian Kemper [Thu, 12 Jul 2018 20:23:17 +0000 (22:23 +0200)]
yate: update to 6.1.0

Upgrade yate. The video codec mapping patch needed some small changes.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoyate: fix mod-mysqldb compile
Sebastian Kemper [Thu, 12 Jul 2018 20:19:02 +0000 (22:19 +0200)]
yate: fix mod-mysqldb compile

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>
6 years agoMerge pull request #343 from micmac1/AST-master
Jiri Slachta [Thu, 28 Jun 2018 08:43:45 +0000 (10:43 +0200)]
Merge pull request #343 from micmac1/AST-master

(for master) asterik: fix AST-2018-007 and AST-2018-008

6 years agoasterisk-15.x: patch AST-2018-007 and 008 343/head
Sebastian Kemper [Mon, 25 Jun 2018 20:49:05 +0000 (22:49 +0200)]
asterisk-15.x: patch AST-2018-007 and 008

Patches from upstream for:

AST-2018-007
AST-2018-008

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoasterisk-13.x: patch AST-2018-008
Sebastian Kemper [Mon, 25 Jun 2018 20:47:38 +0000 (22:47 +0200)]
asterisk-13.x: patch AST-2018-008

Patch from upstream for AST-2018-008.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
6 years agoMerge pull request #339 from micmac1/fs-pcre
micmac1 [Thu, 21 Jun 2018 19:14:14 +0000 (21:14 +0200)]
Merge pull request #339 from micmac1/fs-pcre

freeswitch-stable: fix incompatible pointer type