Commit graph

23 commits

Author SHA1 Message Date
Sebastian Kemper
4e30b64604 asterisk-chan-dongle: adapt BUILD_NLS handling
openwrt recently stopped using libiconv-stub in the BUILD_NLS=n case.
Instead the libc's iconv has to be used.

This commit changes the iconv include path passed to
asterisk-chan-dongle for the BUILD_NLS=n case to
$(TOOLCHAIN_DIR)/include. That's where musl and glibc store iconv.h.

Also, the patch 200-fix-iconv-detection.patch gets replaced with a sed
script that only runs in the BUILD_NLS=y case.

And finally, $(AUTORELEASE) is added.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2022-07-16 20:34:25 +02:00
Shaleen Jain
409e797785 asterisk-chan-dongle: update to the latest git HEAD
The upstream commit 6073c91fcf0a46a1525d500c274fa5ab96af7dda broke
non-quectel devices due to the channel driver unable to complete
initialization.

This is fixed in the latest upstream commit.

Signed-off-by: Shaleen Jain <shaleen@jain.sh>
2022-01-04 16:09:08 +05:30
Sebastian Kemper
829c1cf031 asterisk-chan-dongle: add postinst note
Provide quick hint to users to sort out possible/likely permission
issue.

Also refreshes some patches.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2021-10-23 18:28:56 +02:00
Deomid "rojer" Ryabkov
02d5dc545e asterisk-chan-dongle: bump for upstream fixes
To pull in fixes, specifically 3d2a97f26b which fixes decoding of SMS messages.

Also fixes https://github.com/openwrt/telephony/issues/686
and pulls in Quectel support (alternative to https://github.com/openwrt/telephony/pull/682).

Signed-off-by: Deomid "rojer" Ryabkov <rojer@rojer.me>
2021-09-29 11:07:04 +01:00
Sebastian Kemper
fee0cc861b asterisk-chan-dongle: update for Asterisk 18 LTS
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-11-01 11:57:29 +01:00
Sebastian Kemper
edbeb1b9a3 asterisk-chan-dongle: fix iconv lib detection
A small but important oversight crept into the last asterisk-chan-dongle
update. The iconv library detection was changed to look for iconv()
instead of libiconv().

Reminder: the autoconf macros for finding libraries do _not_ include any
extra headers when testing the compile. So the redefinitions done in
iconv.h provided by any libiconv (stub or regular) aren't visible during
the test the macros execute.

This means that when testing for iconv() the only iconv that can be
detected is the one from libc. Moreover, if the libc doesn't provide
iconv, the check will fail. Below example is with uclibc:

checking for iconv in -liconv... no
configure: error: iconv library missing
Makefile:87: recipe for target '/builder/shared-workdir/build/sdk/build_dir/target-arc_archs_uClibc/asterisk-chan-dongle-asterisk16/asterisk-chan-dongle-2020-05-28-328b2b7d/.configured_a17fb5ef857664f03cd0ce37cc5ea591' failed

So, this changes the patch to look for libiconv(), again.

Also, instead of using AC_CHECK_LIB this uses AC_SEARCH_LIBS, like
upstream does. There apparently was a problem with that in the past, but
now it works fine.

checking for rm... rm
checking for library containing libiconv... -liconv
checking for sqlite3_open in -lsqlite3... yes

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-06-11 19:27:51 +02:00
Sebastian Kemper
9b0e13700a asterisk-chan-dongle: bump + cleanup
Bump dongle plugin to latest git revision. PKG_SOURCE_SUBDIR and
PKG_BUILD_DIR are removed because defaults are fine. PKG_VERSION is
replaced by PKG_SOURCE_DATE, which is in line with OpenWrt
recommendation.

Soft deps are removed as per request in issue #536.

iconv handling is updated. Upstream now lets us specify the include
directory, so that makes the patch simpler. The iconv lib detection is
also updated so that it never picks the libc iconv. This way we get the
same iconv handling independent of the libc in use. Now it'll be always
iconv-stub or iconv-full.

libsqlite3 dep is made explicit. There was always a dep on it, but it
was implicit via asterisk. When the dep is made explicit, the dongle
package picks up on the sqlite3 ABI_VERSION, which is nice.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2020-06-09 18:46:39 +02:00
Jiri Slachta
2b6907b05e asterisk-13.x: move package to abandoned packages
Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2019-07-14 19:25:59 +02:00
Jiri Slachta
cf51b9b0ff asterisk-15.x: drop support for asterisk-15.x
This commit drops support for asterisk-15.x in favor
of asterisk-16.x.

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2019-05-05 22:10:53 +02:00
Sebastian Kemper
4fdcd74dd5 asterisk-chan-dongle: add asterisk 16 variant
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2019-04-13 22:53:18 +02:00
Sebastian Kemper
63caadb3d3 asterisk-chan-dongle: update snapshot
Includes USSD encoding fix for E3531.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-07-18 22:11:46 +02:00
Sebastian Kemper
d5f36f5394 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>
2018-07-18 22:07:50 +02:00
Sebastian Kemper
929ad42044 asterisk-chan-dongle: bump snapshot
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-04-28 15:03:53 +02:00
Sebastian Kemper
1459baa061 asterisk-chan-dongle: update snapshot
./configure now requires us to set DESTDIR.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 14:52:42 +01:00
Sebastian Kemper
b22af0210e asterisk-chan-dongle: simplify Makefile
Simplify the Makefile by using the default Build/Compile routine.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-03-09 14:47:34 +01:00
Sebastian Kemper
5229b5d8ee asterisk-chan-dongle: add PKG_MIRROR_HASH
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-20 20:27:41 +01:00
Sebastian Kemper
d4bfeae356 chan-dongle: add variant for asterisk 15
chan-dongle already supports asterisk 15. This commit adds a variant for
it.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-11-23 11:16:03 +01:00
Jiri Slachta
bb3d3aa83a asterisk-chan-dongle: remove asterisk-11.x variant
The removal of asterisk-11.x variant is made due to
asterisks 11.x EOL.

Signed-off-by: Jiri Slachta <jiri@slachta.eu>
2017-10-29 18:16:36 +01:00
Sebastian Kemper
3dccee6e76 telephony: replace git:// URIs with https:// equivalents
Plain git:// doesn't add security. Use https:// instead. See
https://gist.github.com/grawity/4392747.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-10-08 09:52:21 +02:00
Sebastian Kemper
b55daa66c9 asterisk-chan-dongle: sync up with master, fix endian issue
- Sync module to master.
- Drop big endian patch as it was included upstream.
- This fixes endian issue reported at
  https://github.com/wdoekes/asterisk-chan-dongle/issues/44.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-09-14 20:58:38 +02:00
Sebastian Kemper
0835ad378b asterisk-chan-dongle: fix uclibc build
uclibc doesn't include iconv, so we need to use libiconv-full. This
fixes the ARC builds as they still default to uclibc.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-09-02 00:28:19 +02:00
Sebastian Kemper
fa7b0c6cae asterisk-chan-dongle: change project URL
Change the upstream URL to the one where we get the source from to avoid
confusion.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-09-02 00:24:53 +02:00
Sebastian Kemper
fbda98058b asterisk-chan-dongle: overhaul
- Make the Makefile use BUILD_VARIANT so the package can be built for
  different Asterisk versions. This is also the reason why the folder is
  renamed from asterisk-11.x-chan-dongle to asterisk-chan-dongle.
- Change source URI from upstream to the fork of wdoekes. Upstream
  doesn't update the repo anymore, wdoekes does.
- Remove dep on libiconv-full, make the package use toolchain's iconv
  (compile-tested with musl).
- Drop patches that are already upstream.
- Update flags.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2017-08-28 19:57:41 +02:00