Commit graph

1437 commits

Author SHA1 Message Date
Jiri Slachta
cf4cc85442
Merge pull request #396 from dhewg/pull/asterisk
asterisk updates
2018-12-17 07:29:03 +01:00
Andre Heider
48af9ec67b 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>
2018-12-16 12:14:51 +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
Jiri Slachta
be5fa604ad
Merge pull request #395 from guidosarducci/master-update-procd-wiki
siproxd: add wiki link and fix debug log capture
2018-12-09 08:58:03 +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
Jiri Slachta
d3666a4ca5
Merge pull request #394 from micmac1/kama-hot
rtpproxy & kamailio: fix hotplug script file names
2018-12-02 21:54:54 +01: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
Jiri Slachta
f4691b2c29
Merge pull request #391 from micmac1/ast15-AST-2018-010-15
(master) asterisk-15.x: add patch for AST-2018-010
2018-11-15 15:55:53 +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
micmac1
d0a14b89b6
Merge pull request #390 from micmac1/fs-init
freeswitch-stable: init/hotplug updates
2018-11-12 22:47:05 +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
Jiri Slachta
f1c9fea67c
Merge pull request #383 from micmac1/kam-awk-and-mips-tweak-master
kamailio-5.x: fix awk issue and some tweaks
2018-10-13 16:02:14 +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
Jiri Slachta
2cd85061bb
Merge pull request #379 from robho/yate_internal_regexps
yate: Revert to internal regex implementation
2018-10-09 08:19:31 +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
Andre Heider
ef17798ecf 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>
2018-10-08 12:12:17 +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
micmac1
cef38a1293
Merge pull request #376 from micmac1/fs-1.8.2-master
freeswitch-stable: bump to 1.8.2
2018-09-27 22:52:06 +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
Jiri Slachta
d862d911b0
Merge pull request #373 from micmac1/master-AST-2018-009
(Master) Fix for AST-2018-009
2018-09-21 16:46:56 +02:00