feed/telephony.git
7 years agoasterisk13: add missing modules 182/head
Sebastian Kemper [Sat, 19 Aug 2017 14:48:41 +0000 (16:48 +0200)]
asterisk13: add missing modules

- Add missing modules to curl and odbc packages. This fixes issue #181.
- Add back pbx-lua, which apparently was dropped earlier.
- Revision bump.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoasterisk13: clean up compile stage
Sebastian Kemper [Sat, 19 Aug 2017 14:35:40 +0000 (16:35 +0200)]
asterisk13: 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 seems to be no point to
  do that (anymore).
- 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).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoasterisk13: clean up configure stage
Sebastian Kemper [Sat, 19 Aug 2017 14:27:01 +0000 (16:27 +0200)]
asterisk13: clean up configure stage

- Remove some unneeded parentheses.
- Remove $(SITE_VARS) as it is not used.
- Remove --without-curl and --with-uuid=... from configure arguments as
  they've been removed from configure.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoasterisk13: change some default file locations
Sebastian Kemper [Sat, 19 Aug 2017 14:05:07 +0000 (16:05 +0200)]
asterisk13: 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 and fixes issue #38. 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>
7 years agopjpoject: cleanups and fix for COPTS warnings
Sebastian Kemper [Sat, 19 Aug 2017 13:47:54 +0000 (15:47 +0200)]
pjpoject: cleanups and fix for COPTS warnings

- Remove some unnecessary trailing slashes plus fix a whitespace.
- Remove flags that do not seem to have a good reason to be there
  (anymore).
- Add sed script to remove $(TARGET_CFLAGS) from pkgconfig file. This
  gets rid of the warnings in asterisk13 about COPTS duplication.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoMerge pull request #180 from micmac1/master
Jiri Slachta [Tue, 15 Aug 2017 15:28:05 +0000 (17:28 +0200)]
Merge pull request #180 from micmac1/master

chan-sccp-b: switch to git version, update patch

7 years agochan-sccp-b: switch to git version, update patch 180/head
Sebastian Kemper [Mon, 14 Aug 2017 19:59:36 +0000 (21:59 +0200)]
chan-sccp-b: switch to git version, update patch

- As suggested by upstream in issue #167, move from svn to git source.
  The resulting module is less than half the size in comparison.

- Rework (and rename) previous "drop-Og-optimization" patch. The
  previous patch worked fine with -Os in CFLAGS (default). But if numeric
  values are used instead (e.g. -O2) this optimization would be completely
  removed. The new patch prevents that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoMerge pull request #123 from robho/yate_banbrutes_using_iptables_recent
Jiri Slachta [Sun, 13 Aug 2017 19:26:56 +0000 (21:26 +0200)]
Merge pull request #123 from robho/yate_banbrutes_using_iptables_recent

yate-scripts-perl: Add script to block phones which fail to authenticate

7 years agokamailio-4.x: update to 4.4.6
Jiri Slachta [Sun, 13 Aug 2017 18:44:16 +0000 (20:44 +0200)]
kamailio-4.x: update to 4.4.6

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
7 years agokamailio-5.x: introduce new package
Jiri Slachta [Sun, 13 Aug 2017 18:29:23 +0000 (20:29 +0200)]
kamailio-5.x: introduce new package

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
7 years agoMerge pull request #179 from micmac1/master
Daniel Golle [Sun, 13 Aug 2017 13:48:18 +0000 (15:48 +0200)]
Merge pull request #179 from micmac1/master

asterisk-13.x: fix config file issues and clean up modules

7 years agoasterisk-13.x: remove modules from pjsip (cosmetic) 179/head
Sebastian Kemper [Sun, 13 Aug 2017 13:12:26 +0000 (15:12 +0200)]
asterisk-13.x: remove modules from pjsip (cosmetic)

Remove two modules from pjsip. Upstream removed res_pjsip_log_forwarder
and moved res_pjsip_multihomed to res_pjsip.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoasterisk-13.x: fix config file issues
Sebastian Kemper [Sun, 13 Aug 2017 13:00:39 +0000 (15:00 +0200)]
asterisk-13.x: fix config file issues

- The configuration file protection for modules does not work when there
  is more than one configuration file. Currently conffiles is populated
  with a space separated list. But the items need to be separated by
  newlines. With spaces, only the first item gets added to conffiles. The
  remaining items are dropped and not protected. Fix this by replacing
  spaces with newlines. Revision bump because this could lead to
  overwriting files unintentionally.
- Remove a duplicate '/etc/asterisk/modules.conf' from
  Package/asterisk13/conffiles.
- Remove '/etc/asterisk/rtp.conf' from Package/asterisk13/conffiles
  because the file is installed and protected by res-rtp-asterisk.
- Add missing stasis.conf and pjsip_wizard.conf.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoMerge pull request #178 from micmac1/master
Jiri Slachta [Thu, 10 Aug 2017 19:17:28 +0000 (21:17 +0200)]
Merge pull request #178 from micmac1/master

sipp: version bump, build fixes

7 years agosipp: version bump, build fixes 178/head
Sebastian Kemper [Thu, 10 Aug 2017 18:47:36 +0000 (20:47 +0200)]
sipp: version bump, build fixes

- bumped to 3.5.1
- removed musl patch because it was upstreamed
- add patch to fix ncurses detection
- fixes issue #125

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoMerge pull request #177 from micmac1/master
Jiri Slachta [Thu, 10 Aug 2017 07:32:30 +0000 (09:32 +0200)]
Merge pull request #177 from micmac1/master

New PR: asterisk + pjproject

7 years agoasterisk-13.x: fix missing symbols issue 177/head
Sebastian Kemper [Wed, 9 Aug 2017 21:04:16 +0000 (23:04 +0200)]
asterisk-13.x: fix missing symbols issue

- add some pjsip modules that were missing.
- sort pjsip modules alphabetically.
- add a patch from ASTERISK-26518 to fix the unresolved symbol issue.
  The patch is also included in Debian. The patch fixes issue #77 (the
  problem was also mentioned in #88).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agopjproject: add config_site.h
Sebastian Kemper [Wed, 9 Aug 2017 20:52:22 +0000 (22:52 +0200)]
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). This probably fixes issue #140.

With this config_site.h in place the libsrtp dep can be dropped from
select sub packages.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agopjproject: enable ssl support
Sebastian Kemper [Wed, 9 Aug 2017 20:48:08 +0000 (22:48 +0200)]
pjproject: enable ssl support

Enable SSL support as Asterisk relies on it. Some Asterisk modules
cannot load without it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agopjproject: align with Asterisk requirements, misc improvements
Sebastian Kemper [Wed, 9 Aug 2017 20:45:32 +0000 (22:45 +0200)]
pjproject: align with Asterisk requirements, misc improvements

- Make "--disable-floating-point" depend on SOFT_FLOAT
- Remove "--disable-ilbc-coder" as configure no longer recognizes it.
- Align args with the ones used by Asterisk (for their bundled pjproject);
  this includes adding "--disable-resample".
- With libresample removed remove the dep from asterisk13 accordingly.
- Note: the disabled items are _not_ used by Asterisk anyway.
- Drop speex dep as pjproject does not link against it the way it is
  configured.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agopjproject: sort configure args, remove duplicates
Sebastian Kemper [Wed, 9 Aug 2017 20:17:15 +0000 (22:17 +0200)]
pjproject: sort configure args, remove duplicates

This commit is only meant to make the following commits easier to follow.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoasterisk-g72x: fix variant build
Sebastian Kemper [Wed, 9 Aug 2017 20:11:23 +0000 (22:11 +0200)]
asterisk-g72x: fix variant build

Set PKG_BUILD_DIR for each variant. Without it only one variant gets
built and put into both packages. This fixes issue #150.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agochan-sccp-b: fix variant build, misc fixes
Sebastian Kemper [Wed, 9 Aug 2017 20:09:27 +0000 (22:09 +0200)]
chan-sccp-b: fix variant build, misc fixes

- Set PKG_BUILD_DIR for each variant. Without it only one variant gets
  built and put into both packages.
- Add libiconv to build deps. Some iconv m4 files are required. Possibly
  fixes issue #121.
- Replace recently added configure args with the ones suggested by upstream
  @dkgroot in issue #167. This again shaves some bytes off the package.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoasterisk-11.x: add missing description to several modules
Jiri Slachta [Tue, 8 Aug 2017 19:00:31 +0000 (21:00 +0200)]
asterisk-11.x: add missing description to several modules

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
7 years agoasterisk-13.x: add pjproject.conf to res_pjproject module
Jiri Slachta [Tue, 8 Aug 2017 08:55:06 +0000 (10:55 +0200)]
asterisk-13.x: add pjproject.conf to res_pjproject module

Add missing config file for res_pjproject module.

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
7 years agoMerge pull request #175 from micmac1/master
Jiri Slachta [Sat, 5 Aug 2017 18:33:50 +0000 (20:33 +0200)]
Merge pull request #175 from micmac1/master

New PR: freeswitch-stable

7 years agofreeswitch-stable: fix escaping 175/head
Sebastian Kemper [Sat, 5 Aug 2017 12:49:11 +0000 (14:49 +0200)]
freeswitch-stable: fix escaping

Fix escaping of dollar sign, otherwise a postinst-pkg script will not be
correct.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable-sounds: remove package
Sebastian Kemper [Sat, 5 Aug 2017 12:24:16 +0000 (14:24 +0200)]
freeswitch-stable-sounds: remove package

This package is just wasting space on the mirrors. Only very few people
will actually want the sound files on their device. And those few who do
will have no problem downloading the files manually.

Get rid of it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoasterisk-11.x: bump PKG_RELEASE
Jiri Slachta [Fri, 4 Aug 2017 06:07:12 +0000 (08:07 +0200)]
asterisk-11.x: bump PKG_RELEASE

Bump PKG_RELEASE due to changes in commit ec6991c01cf141db172bd5bc30a3e18cb9174208

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
7 years agoasterisk-13.x: bump PKG_RELEASE
Jiri Slachta [Fri, 4 Aug 2017 06:06:34 +0000 (08:06 +0200)]
asterisk-13.x: bump PKG_RELEASE

Bump PKG_RELEASE due to changes in commit ec6991c01cf141db172bd5bc30a3e18cb9174208

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
7 years agoMerge pull request #174 from micmac1/master
Jiri Slachta [Fri, 4 Aug 2017 05:59:20 +0000 (07:59 +0200)]
Merge pull request #174 from micmac1/master

New PR: asterisk segfault and freeswitch

7 years agofreeswitch-stable: cleanups 174/head
Sebastian Kemper [Thu, 3 Aug 2017 19:31:15 +0000 (21:31 +0200)]
freeswitch-stable: cleanups

- Replace $FS_STABLE_PREFIX_DIR with $FS_STABLE_DATA_DIR. The variable
  is set to /usr/share/freeswitch, so it's not the prefix. Data dir is
  the correct description.

- Remove lots of lines from CONFIGURE_ARGS. All of them duplicates,
  because they're already set by the build system, so we can remove the
  clutter.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable-sounds: add "Allison" sound packs
Sebastian Kemper [Thu, 3 Aug 2017 19:26:23 +0000 (21:26 +0200)]
freeswitch-stable-sounds: add "Allison" sound packs

These were recently added by upstream.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoasterisk-11.x and asterisk-13.x: Disable LOW_MEMORY by default
Sebastian Kemper [Thu, 3 Aug 2017 19:15:59 +0000 (21:15 +0200)]
asterisk-11.x and asterisk-13.x: Disable LOW_MEMORY by default

In issue #173 a segmentation fault occuring during a simple SIP call was
reported. Compiling with LOW_MEMORY disabled the reproducible segfault
disappeared.

This commits adds a switch for LOW_MEMORY. Default is off. If anybody
wants to debug the segfault s/he can enable it.

The segfault was reported for Asterisk 11. Disable LOW_MEMORY on
Asterisk 13 anyway, better safe than sorry.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoasterisk-13.x: fix module dependencies and add new modules
Jiri Slachta [Sat, 29 Jul 2017 20:26:38 +0000 (22:26 +0200)]
asterisk-13.x: fix module dependencies and add new modules

- add XMPP and motif modules
- remove missing pjproject dependencies and fix them

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
7 years agopjproject: fix Makefile variables
Jiri Slachta [Sat, 29 Jul 2017 20:24:58 +0000 (22:24 +0200)]
pjproject: fix Makefile variables

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
7 years agoMerge pull request #172 from micmac1/master
Jiri Slachta [Sat, 29 Jul 2017 16:14:22 +0000 (18:14 +0200)]
Merge pull request #172 from micmac1/master

New PR: asterisk

7 years agolibs/pjproject: security revision bump 172/head
Sebastian Kemper [Sat, 29 Jul 2017 11:54:21 +0000 (13:54 +0200)]
libs/pjproject: security revision bump

Add patches provided by Asterisk project for pjproject. This fixes the
following vulnerabilities:

- AST-2017-002: Buffer Overrun in PJSIP transaction layer (CVE-2017-9372)
- AST-2017-003: Crash in PJSIP multi-part body parser

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agonet/chan-sccp-b: version bump and fixes
Sebastian Kemper [Fri, 28 Jul 2017 20:01:49 +0000 (22:01 +0200)]
net/chan-sccp-b: version bump and fixes

- Bump to revision 6728.
- Remove '-fi' from PKG_FIXUP. Trust in the build system to do the right
  thing.
- Set PKG_INSTALL:=1 so "make install" doesn't need to be called
  manually anymore. This also drops LOW_MEMORY from CFLAGS, which is not
  needed as chan-sccp-b looks into asterisk's headers to find out if
  LOW_MEMORY is enabled or not.
  The build output actually looks much more pleasant afterward.
- Disable chan-sccp-b's optimization which it enables by default. It
  sets -O3 and all that jazz. To make it simply use the OpenWrt/LEDE
  flags optimization needs to be disabled.
- With optimization disabled chan-sccp-b still adds -Og to the end of
  the CFLAGS. Add a small patch to prevent that.
- Disable debug which is enabled by default. This brings down the size
  of the installed binary from 14 MByte (!) to a little over 2 MByte
  (checked on ARM).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agonet/asterisk-13.x: prevent libsrtp2 detection
Sebastian Kemper [Fri, 28 Jul 2017 19:51:19 +0000 (21:51 +0200)]
net/asterisk-13.x: prevent libsrtp2 detection

Asterisk 13 looks for libsrtp2. Unfortunately it also looks for a header
which libsrtp2 does not make public:

res_srtp.c:44:33: fatal error: srtp2/crypto_types.h: No such file or directory
compilation terminated.

This causes the asterisk build to fail. Fix this by disabling libsrtp2
detection in Asterisk 13.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agonet/asterisk-11.x and net/asterisk-13.x: disable chan-dahdi for aarch64
Sebastian Kemper [Fri, 28 Jul 2017 19:48:42 +0000 (21:48 +0200)]
net/asterisk-11.x and net/asterisk-13.x: disable chan-dahdi for aarch64

dahdi-linux fails to build on aarch64. Disable chan-dahdi for this arch
accordingly, so asterisk can still be built.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agonet/asterisk-11.x and net/asterisk-13.x: fix LOW_MEMORY, drop patch
Sebastian Kemper [Fri, 28 Jul 2017 19:45:25 +0000 (21:45 +0200)]
net/asterisk-11.x and net/asterisk-13.x: fix LOW_MEMORY, drop patch

LOW_MEMORY can't be enabled by defining it in ASTCFLAGS. This can be
verified in the headers Asterisk installs: LOW_MEMORY actually is not
defined (it would be if LOW_MEMORY was enabled).

LOW_MEMORY can be enabled successfully with menuselect. This commit
makes menuselect usable and calls it to enable LOW_MEMORY.

This commit also disables BUILD_NATIVE with menuselect. So even if
configure detects that -march=native is available, it won't be used.
This means the configure.ac patch that was added previously can be
dropped.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agonet/asterisk-11.x and net/asterisk-13.x: fix menuselect
Sebastian Kemper [Fri, 28 Jul 2017 19:34:02 +0000 (21:34 +0200)]
net/asterisk-11.x and net/asterisk-13.x: fix menuselect

menuselect often fails on the buildbots:

menuselect/menuselect: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory

This doesn't happen on all builds. The assumption is that on the
particular buildbot where there is no error the buildbots own libxml2.so
is usable (it exists and the version is suitable).

To fix this make the linker add an rpath to the menuselect utility,
pointing to the hostpkg lib dir.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agonet/asterisk-11.x and net/asterisk-13.x: remove $(SDK) from ifneqs
Sebastian Kemper [Fri, 28 Jul 2017 19:29:10 +0000 (21:29 +0200)]
net/asterisk-11.x and net/asterisk-13.x: remove $(SDK) from ifneqs

The variable prevents the ifneqs from working on the buildbots. $(SDK)
is set there, so the ifneqs that test for empty will always be true.

libpq for instance doesn't build on aarch64. So the asterisk pgsql
package has a dependency on @!aarch64. An ifneq is used to disable libpq
detection by the configure script, to prevent the build to fail. But
because of $(SDK) being set the ifneq is always true, so libpq detection
is enabled, causing the build to always fail.

There are only two other packages in the tree that actually use the
$(SDK) variable, so it's fair to assume it's not needed for the asterisk
packages and can just be dropped.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoMerge pull request #171 from micmac1/master
Jiri Slachta [Tue, 25 Jul 2017 06:16:30 +0000 (08:16 +0200)]
Merge pull request #171 from micmac1/master

New PR for asterisk

7 years agonet/asterisk-11.x and net/asterisk-13.x: remove libpq dep on ARC 171/head
Sebastian Kemper [Mon, 24 Jul 2017 21:40:05 +0000 (23:40 +0200)]
net/asterisk-11.x and net/asterisk-13.x: remove libpq dep on ARC

For ARC libpq doesn't build, so don't depend on it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agonet/asterisk-11.x and net/asterisk-13.x: fix menuselect build
Sebastian Kemper [Mon, 24 Jul 2017 21:31:06 +0000 (23:31 +0200)]
net/asterisk-11.x and net/asterisk-13.x: fix menuselect build

- Include host-build.mk, otherwise $HOST_CONFIGURE_ARGS will be empty.
- Remove --with-ncurses=PATH as the PATH is wrong. The ncurses host
  package does not install anything but 'tic'.
- Use $HOSTCC to compile menuselect. This has the added bonus of using
  ccache (if selected).
- Run configure with an unset $CONFIG_SITE so that it doesn't pick a
  cross-compile site-script, e.g. for mips.
- Drop '-lxml2' from $LDFLAGS as the menuselect Makefile will add it
  anyway.
- Move the variables in front of 'make' as they're not arguments.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoMerge pull request #164 from guidosarducci/lede-17.01-siproxd-update 156/head
Jiri Slachta [Mon, 24 Jul 2017 07:48:54 +0000 (09:48 +0200)]
Merge pull request #164 from guidosarducci/lede-17.01-siproxd-update

siproxd: fixes and version update to 0.8.2

7 years agoMerge pull request #170 from micmac1/master
Jiri Slachta [Mon, 24 Jul 2017 07:47:58 +0000 (09:47 +0200)]
Merge pull request #170 from micmac1/master

New PR: mostly Asterisk (bumps, fixes, new package too)

7 years agonet/asterisk-11.x and net/asterisk-13.x: fix ASTCFLAGS/ASTLDFLAGS 170/head
Sebastian Kemper [Sun, 23 Jul 2017 17:10:18 +0000 (19:10 +0200)]
net/asterisk-11.x and net/asterisk-13.x: fix ASTCFLAGS/ASTLDFLAGS

The missing backslashes prevented 'make' from picking up
ASTCFLAGS/ASTLDFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: add mod_bcg729
Sebastian Kemper [Sat, 22 Jul 2017 14:49:45 +0000 (16:49 +0200)]
freeswitch-stable: add mod_bcg729

This adds a new Makefile as this module is out-of-tree. The module
dynamically links against bcg729.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agonet/asterisk-13.x: bump to 13.17.0
Sebastian Kemper [Sat, 22 Jul 2017 14:46:00 +0000 (16:46 +0200)]
net/asterisk-13.x: bump to 13.17.0

- Version bump to 13.17.0
- Remove makeopts.embed_rules as the target got removed.
- Refresh patches.
- $(STAGING_DIR)/host doesn't work anymore resulting in libxml2 host
  headers not being found. Replace with $(STAGING_DIR_HOSTPGK).
- Prevent Asterisk from adding -march=native when cross-compiling (patch
  for configure.ac).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agonet/asterisk-11.x: compile fixes
Sebastian Kemper [Sat, 22 Jul 2017 14:36:23 +0000 (16:36 +0200)]
net/asterisk-11.x: compile fixes

- Refresh patches.
- $(STAGING_DIR)/host doesn't work anymore resulting in libxml2 host
  headers not being found. Replace with $(STAGING_DIR_HOSTPGK).
- Prevent Asterisk from adding -march=native when cross-compiling (patch
  for configure.ac).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agonet/asterisk-g72x: bump to 1.4.1
Sebastian Kemper [Sat, 22 Jul 2017 14:29:24 +0000 (16:29 +0200)]
net/asterisk-g72x: bump to 1.4.1

Version bump. This release was upstream-tested against bcg729 1.0.2.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agolibs/pjproject: prevent linking against opus
Sebastian Kemper [Sat, 22 Jul 2017 14:25:46 +0000 (16:25 +0200)]
libs/pjproject: prevent linking against opus

When opus is found in staging area it will be linked against, adding a
dep that is not in the Makefile. So explicity disable opus.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agolibs/bcg729: bump to 1.0.2
Sebastian Kemper [Sat, 22 Jul 2017 14:24:21 +0000 (16:24 +0200)]
libs/bcg729: bump to 1.0.2

Also remove the static binary from InstallDev as it's not used.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoMerge pull request #169 from micmac1/master
Jiri Slachta [Wed, 19 Jul 2017 21:28:38 +0000 (23:28 +0200)]
Merge pull request #169 from micmac1/master

freeswitch-stable: new PR

7 years agofreeswitch-stable: remove BROKEN from mod_av 169/head
Sebastian Kemper [Tue, 18 Jul 2017 20:09:14 +0000 (22:09 +0200)]
freeswitch-stable: remove BROKEN from mod_av

libffmpeg-full now includes libavresample. Make mod_av available
accordingly.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: disable mod_v8 heap snapshot by default
Sebastian Kemper [Sun, 16 Jul 2017 20:05:54 +0000 (22:05 +0200)]
freeswitch-stable: disable mod_v8 heap snapshot by default

mod_v8 sporadically failed to build due to a segmentation fault when
generating the heap snapshot. This patch adds a switch to FreeSWITCH to
disable the snapshot and a symbol to toggle it.

Default is to not use a heap snapshot.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: update COPTS fixes
Sebastian Kemper [Sun, 16 Jul 2017 19:57:05 +0000 (21:57 +0200)]
freeswitch-stable: update COPTS fixes

- Replace main COPTS fixes patch with the updated version sent upstream.
- For the above to work we need to update DEFAULT_VARS in modmake.rules
  (new patch)
- mod_pocketsphinx and mod_radius_cdr updated, no more extra COPTS fixes
  required there.
- Now zeromq gets to use fortify headers and fails (warning about GCC
  extension turns into error), so make it drop '-pedantic'.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: version bump
Sebastian Kemper [Sun, 16 Jul 2017 19:52:43 +0000 (21:52 +0200)]
freeswitch-stable: version bump

- Update to 1.6.19.
- Refresh patches.
- Fix mod_png dep.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agosiproxd: use PKG_HASH and update copyright date 164/head
guidosarducci [Mon, 10 Jul 2017 09:50:44 +0000 (02:50 -0700)]
siproxd: use PKG_HASH and update copyright date

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 years agoMerge pull request #166 from micmac1/master
Jiri Slachta [Sun, 9 Jul 2017 18:00:50 +0000 (20:00 +0200)]
Merge pull request #166 from micmac1/master

freeswitch-stable: Fix python-host.mk include

7 years agofreeswitch-stable: Fix python-host.mk include 166/head
Sebastian Kemper [Sun, 9 Jul 2017 16:09:41 +0000 (18:09 +0200)]
freeswitch-stable: Fix python-host.mk include

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoMerge pull request #165 from micmac1/master
Jiri Slachta [Sun, 9 Jul 2017 12:36:07 +0000 (14:36 +0200)]
Merge pull request #165 from micmac1/master

freeswitch-stable: New PR

7 years agofreeswitch-stable: Add PKG_CONFIG_DEPENDS 165/head
Sebastian Kemper [Sun, 9 Jul 2017 11:21:58 +0000 (13:21 +0200)]
freeswitch-stable: Add PKG_CONFIG_DEPENDS

Force a rebuild of freeswitch-stable on symbol change.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: Add more modules
Sebastian Kemper [Sun, 9 Jul 2017 11:15:37 +0000 (13:15 +0200)]
freeswitch-stable: Add more modules

- Add mod_portaudio, mod_portaudio_stream, mod_radius_cdr and mod_v8.
- mod_v8 takes some time to build and it's quite large, so only build it
  for x86_64. Users can force it on via a symbol for targets arm, i386
  and mipsel as well.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: Enable extra symbols for x86_64 target
Sebastian Kemper [Sun, 9 Jul 2017 11:03:14 +0000 (13:03 +0200)]
freeswitch-stable: Enable extra symbols for x86_64 target

There is no space constraint on x86_64, so enable the extra symbols for
a complete feature set.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: Fixes for modules and libs
Sebastian Kemper [Sun, 9 Jul 2017 10:50:50 +0000 (12:50 +0200)]
freeswitch-stable: Fixes for modules and libs

- Add missed dependency on libyuv to libvpx.
- Get rid of gratuitous @ in Config.in.
- Clean up Perl and Python deps.
- Fix installation paths for the ESL packages.
- Don't set ac_cv_lib_perl_perl_alloc=yes, it's not needed.
- Get rid of the build dep on erlang. Have the modules (erlang_event and
  kazoo) depend on erlang instead; they both require epmd at runtime.
- Force spandsp and pocketsphinx to use fixed point math when soft float
  support is enabled for the target device.
- Make libvpx use OpenWrt/LEDE flags, otherwhise it comes up with
  optimized flags on its own.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: Clean up the Makefile
Sebastian Kemper [Sun, 9 Jul 2017 10:08:43 +0000 (12:08 +0200)]
freeswitch-stable: Clean up the Makefile

- Fix alphabetical sorting.
- Move some of the blocks around, e.g. move everything together that
  adds to $(CONFIGURE_ARGS), move Download define upward to the other
  defines etc.
- Replace some strings with variables, e.g. $(FIND) and $(FPIC).
- Be consistent and prefix our own variables with "FS_STABLE_".
- Remove the dev package and use Build/InstallDev instead.
- All in all this change is purely cosmetic.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agosiproxd: fix support for domain-specific proxies
guidosarducci [Mon, 3 Jul 2017 02:56:53 +0000 (19:56 -0700)]
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>
7 years agosiproxd: update to version 0.8.2
guidosarducci [Mon, 19 Jun 2017 03:37:16 +0000 (20:37 -0700)]
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>
7 years agosiproxd: use clearer runtime file and directory names
guidosarducci [Mon, 19 Jun 2017 02:21:57 +0000 (19:21 -0700)]
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>
7 years agosiproxd: add shell helper function to build config file
guidosarducci [Mon, 19 Jun 2017 01:55:19 +0000 (18:55 -0700)]
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>
7 years agoMerge pull request #161 from micmac1/master
Jiri Slachta [Thu, 29 Jun 2017 07:09:27 +0000 (09:09 +0200)]
Merge pull request #161 from micmac1/master

freeswitch-stable: Fix perl-esl deps

7 years agofreeswitch-stable: Fix perl-esl deps 161/head
Sebastian Kemper [Wed, 28 Jun 2017 07:16:27 +0000 (09:16 +0200)]
freeswitch-stable: Fix perl-esl deps

Like mod-perl it also needs Perl with threads support.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoMerge pull request #160 from micmac1/master
Jo-Philipp Wich [Tue, 27 Jun 2017 20:21:03 +0000 (22:21 +0200)]
Merge pull request #160 from micmac1/master

freeswitch-stable: New PR

7 years agofreeswitch-stable: cleanup Python setup 160/head
Sebastian Kemper [Tue, 27 Jun 2017 20:14:43 +0000 (22:14 +0200)]
freeswitch-stable: cleanup Python setup

- Rename PYTHON_PKG_DIR to PYTHON_SITE_DIR, otherwise it's confusing.
- Remove the 'sed' hacks; handle the Python setup like the Perl setup is
  already done.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: Remove some needless variable escaping
Sebastian Kemper [Tue, 27 Jun 2017 20:07:34 +0000 (22:07 +0200)]
freeswitch-stable: Remove some needless variable escaping

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: Fix mod_pocketsphinx build
Sebastian Kemper [Tue, 27 Jun 2017 16:20:39 +0000 (18:20 +0200)]
freeswitch-stable: Fix mod_pocketsphinx build

- The builds currently fail with "undefined reference" errors. Fix that
  by turning off Pulseaudio support. Also turn of Jack support in case
  that gets detected in the future.
- aarch64 fails because this arch isn't recognized by the pocketsphinx
  build system. Fix that by running autoreconf in the pocketsphinx build
  dirs.
- Fix CFLAGS while we're here.
- Add dep on libsamplerate to mod_pocketsphinx. If it gets detected it
  will be linked against, there is no switch to prevent that.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: Refresh patch
Sebastian Kemper [Mon, 26 Jun 2017 21:52:45 +0000 (23:52 +0200)]
freeswitch-stable: Refresh patch

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoMerge pull request #159 from micmac1/master
Jiri Slachta [Mon, 26 Jun 2017 12:02:03 +0000 (14:02 +0200)]
Merge pull request #159 from micmac1/master

freeswitch-stable: New PR

7 years agofreeswitch-stable/-sounds: Use HASH instead of MD5SUM 159/head
Sebastian Kemper [Sun, 25 Jun 2017 13:30:42 +0000 (15:30 +0200)]
freeswitch-stable/-sounds: Use HASH instead of MD5SUM

All checksums are already SHA256, so move from MD5SUM to HASH.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: add Perl support
Sebastian Kemper [Sat, 24 Jun 2017 20:23:13 +0000 (22:23 +0200)]
freeswitch-stable: add Perl support

- add mod_perl and perl-esl.
- some patching is required to make this work.
- for the modules to find libperl, an rpath is needed, which currently
  doesn't work because of an rstrip.sh/patchelf issue. Patch sent to
  OpenWrt/LEDE devs (https://patchwork.ozlabs.org/patch/780008/)
- fix some more copts issues that became apparent with Perl enabled.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: add more modules
Sebastian Kemper [Sat, 24 Jun 2017 20:04:44 +0000 (22:04 +0200)]
freeswitch-stable: add more modules

- add b64, clearmode, cv (broken), dahdi_codec, dialplan_directory,
  event_test, event_zmq, pocketsphinx, posix_timer, random, vmd and yuv.
- some of the new modules require extra sources, so add a download
  routine for those so we can verify the checksums and prevent FreeSWITCH
  build system to download them on its own.
- add two patches to fix some issues with the new modules.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: Misc fixes
Sebastian Kemper [Sat, 24 Jun 2017 19:05:26 +0000 (21:05 +0200)]
freeswitch-stable: Misc fixes

- compile fix for mod_av added, without it the build errors out
  (warnings turned to errors). It's still labelled @BROKEN, but once
  OpenWrt's ffmpeg maintainers add libavresample to libffmpeg-full
  (PR #4490) it should work.
- disable Erlang detection if mod_erlang_event is not selected (build
  dep on Erlang unfortunately has to stay)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: Change Python setup
Sebastian Kemper [Sat, 24 Jun 2017 18:54:07 +0000 (20:54 +0200)]
freeswitch-stable: Change Python setup

- make the use of Python conditional and drop the build dep.
- change Python LDFLAGS to the ones suggested by host python-config.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: group all misc packages together
Sebastian Kemper [Sat, 24 Jun 2017 18:31:18 +0000 (20:31 +0200)]
freeswitch-stable: group all misc packages together

- Pull more packages into the misc group (timezones etc.)
- Change Misc generator to not force the misc handle onto packages
- Add possibility to Misc generator to tag packages as arch agnostic

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: use variables for paths
Sebastian Kemper [Sat, 24 Jun 2017 18:20:32 +0000 (20:20 +0200)]
freeswitch-stable: use variables for paths

Use variables for frequently used paths instead of writing them out.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agosiproxd: clean up directory permissions, ownership
guidosarducci [Sun, 18 Jun 2017 23:53:21 +0000 (16:53 -0700)]
siproxd: clean up directory permissions, ownership

Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
7 years agosiproxd: use reasonable logging level by default
guidosarducci [Sun, 18 Jun 2017 23:35:21 +0000 (16:35 -0700)]
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>
7 years agosiproxd: use standard interface names by default
guidosarducci [Sun, 18 Jun 2017 23:04:15 +0000 (16:04 -0700)]
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>
7 years agoMerge pull request #158 from micmac1/PR
Jo-Philipp Wich [Wed, 14 Jun 2017 21:04:54 +0000 (23:04 +0200)]
Merge pull request #158 from micmac1/PR

New PR for freeswitch-stable

7 years agofreeswitch-stable: version bump 158/head
Sebastian Kemper [Wed, 14 Jun 2017 21:00:01 +0000 (23:00 +0200)]
freeswitch-stable: version bump

Bump to 1.6.18

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: package cleanups
Sebastian Kemper [Wed, 14 Jun 2017 20:55:24 +0000 (22:55 +0200)]
freeswitch-stable: package cleanups

- removed xmlrpc-c todo; I compiled with external version in staging
  dir, it didn't make a difference (didn't seem to be used)
- removed swig calls as per suggestion from upstream

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agoMerge pull request #157 from micmac1/PR
Jiri Slachta [Sun, 11 Jun 2017 13:49:51 +0000 (15:49 +0200)]
Merge pull request #157 from micmac1/PR

freeswitch-stable: new PR

7 years agofreeswitch-stable: move examples location 157/head
Sebastian Kemper [Sun, 11 Jun 2017 12:51:05 +0000 (14:51 +0200)]
freeswitch-stable: move examples location

Moved location of example packages from /usr/share/freeswitch/conf to
/usr/share/freeswitch/examples. It makes more sense and is also the
place where the module configuration snippets go.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: add symbol to allow inclusion of module examples
Sebastian Kemper [Sun, 11 Jun 2017 12:48:27 +0000 (14:48 +0200)]
freeswitch-stable: add symbol to allow inclusion of module examples

Some modules include example content, e.g. xml snippets, in their source
directory. Added a symbol that causes these to be included in the
packages.

Disabled by default.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: added misc package builder
Sebastian Kemper [Sun, 11 Jun 2017 12:42:06 +0000 (14:42 +0200)]
freeswitch-stable: added misc package builder

- meant for packages where one only needs to copy files from one
  directory to another
- added three new packages using the new builder (dev, fonts, images)

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
7 years agofreeswitch-stable: whitespace fix for hotplug builder
Sebastian Kemper [Sun, 11 Jun 2017 12:36:29 +0000 (14:36 +0200)]
freeswitch-stable: whitespace fix for hotplug builder

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>