2 Summary: Asterisk huawei 3g dongle channel driver
3 Name: asterisk-chan_dongle
8 Source0: https://github.com/bg111/asterisk-chan-dongle/archive/master.zip
9 # Source0-md5: 6e741be5b1be052c14d6fea48277626c
10 Patch0: chan_dongle-pin.patch
11 # https://patch-diff.githubusercontent.com/raw/bg111/asterisk-chan-dongle/pull/216.patch
12 Patch1: https://patch-diff.githubusercontent.com/raw/bg111/asterisk-chan-dongle/pull/216.patch
13 # Patch1-md5: d2a7d524ba60f597ad436cb115f5baf5
14 URL: http://wiki.e1550.mobi/
15 BuildRequires: asterisk-devel >= 1.8
17 Requires: usb-modeswitch
18 Requires: usb-modeswitch-data
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 chan_dongle is an Asterisk channel driver for Huawei UMTS/3G USB
23 modems (dongles). At this moment, the supported features are:
25 - Voice calls, dialling by modem name, group, round robin, provider
29 - Conference (multiparty) call
30 - Send SMS from CLI, asterisk manager and dialplan
31 - Receive SMS (latin charset and multiline included)
33 - Receive USSD (latin charset and multiline included)
34 - Send DTMF (excluding A,B,C,D letters not supported by Huawei)
38 %setup -q -n asterisk-chan-dongle-master
43 install /usr/share/automake/{config.*,install-sh,missing} .
47 --with-astversion=$(rpm -q --queryformat "%{VERSION}\n" asterisk-devel | awk -F. ' { printf("%d%02d%02d", $1, $2, $3); } ')
51 rm -rf $RPM_BUILD_ROOT
53 install -D etc/dongle.conf $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/dongle.conf
54 install -D chan_dongle.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules/chan_dongle.so
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc BUGS README.md TODO.txt etc/extensions.conf
62 %attr(755,root,root) %{_libdir}/asterisk/modules/chan_dongle.so
63 %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/dongle.conf