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: 8527ea21c083821fb0bd69c834d17737
10 Patch0: chan_dongle-pin.patch
11 URL: http://wiki.e1550.mobi/
12 BuildRequires: asterisk-devel >= 1.8
13 BuildRequires: asterisk-devel < 1.9
14 Requires: usb-modeswitch
15 Requires: usb-modeswitch-data
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 chan_dongle is an Asterisk channel driver for Huawei UMTS/3G USB
20 modems (dongles). At this moment, the supported features are:
22 - Voice calls, dialling by modem name, group, round robin, provider
26 - Conference (multiparty) call
27 - Send SMS from CLI, asterisk manager and dialplan
28 - Receive SMS (latin charset and multiline included)
30 - Receive USSD (latin charset and multiline included)
31 - Send DTMF (excluding A,B,C,D letters not supported by Huawei)
35 %setup -q -n asterisk-chan-dongle-master
39 install /usr/share/automake/{config.*,install-sh,missing} .
46 rm -rf $RPM_BUILD_ROOT
48 install -D etc/dongle.conf $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/dongle.conf
49 install -D chan_dongle.so $RPM_BUILD_ROOT%{_libdir}/asterisk/modules/chan_dongle.so
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc BUGS README.txt TODO.txt etc/extensions.conf
57 %attr(755,root,root) %{_libdir}/asterisk/modules/chan_dongle.so
58 %attr(640,root,asterisk) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/dongle.conf