Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 199a8b4d243737e8d8dcc46ceee03418 > files > 5

asterisk-app_nv_faxdetect-1.0.6-1mdk.src.rpm

Summary:	Fax Detection for IAX/SIP/ZAP and the Asterisk PBX
Name:		asterisk-app_nv_faxdetect
Version:	1.0.6
Release:	%mkrel 1
License:	GPL
Group:		System/Servers
URL:		http://www.newmantelecom.com/asterisk/faxdetect/
#http://www.newmantelecom.com/download/asterisk/faxdetect/1.0.6/app_nv_faxdetect.c
Source0:	app_nv_faxdetect.c.bz2
Source1:	asterisk-app_nv_faxdetect-1.0.6-Makefile.bz2
Source2:	app_nv_faxdetect.README.bz2
Patch0:		asterisk-app_nv_faxdetect-1.0.6-antibork.diff
BuildRequires:	asterisk-devel
Requires:	asterisk
Buildroot:	%{_tmppath}/%{name}-%{version}

%description
This application listens for fax tones (on IAX and SIP channels
too) for waitdur seconds of time. In addition, it can be
interrupted by digits, or non-silence. Audio is only monitored in
the receive direction. If digits interrupt, they must be the start
of a valid extension unless the option is included to ignore. If
fax is detected, it will jump to the 'fax' extension. If a period
of non-silence greater than 'mindur' ms, yet less than 'maxdur' ms
is followed by silence at least 'sildur' ms then the app is
aborted and jumps to the 'talk' extension. If all undetected,
control will continue at the next priority.

%prep

%setup -q -T -c
bzcat %{SOURCE0} > app_nv_faxdetect.c
bzcat %{SOURCE1} > Makefile
bzcat %{SOURCE2} > README

%patch0 -p0

%build

%make CFLAGS="%{optflags} -Wall -D_REENTRANT -D_GNU_SOURCE -fPIC"

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_libdir}/asterisk
install -m0755 app_nv_faxdetect.so %{buildroot}%{_libdir}/asterisk/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%attr(0755,root,root) %{_libdir}/asterisk/app_nv_faxdetect.so

%changelog
* Thu Feb 09 2006 Oden Eriksson <oeriksson@mandriva.com> 1.0.6-1mdk
- initial Mandriva package