asterisk-g729, G.729a voice codec for Asterisk
thanks to ian@ and sthen@ for testing and reviewing
This commit is contained in:
parent
ec5d2188b7
commit
7d416dc50c
28
telephony/asterisk-g729/Makefile
Normal file
28
telephony/asterisk-g729/Makefile
Normal file
@ -0,0 +1,28 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/06/04 17:14:58 jolan Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
COMMENT= G.729a voice codec for Asterisk
|
||||
DISTNAME= asterisk-g72x-1.1-beta2
|
||||
PKGNAME= asterisk-g729-1.1beta2
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
CATEGORIES= telephony
|
||||
MASTER_SITES= http://asterisk.hosting.lv/src/
|
||||
|
||||
HOMEPAGE= http://asterisk.hosting.lv/
|
||||
|
||||
# GPL frontend to patented algorithm; free to use for non-commercial purposes
|
||||
PERMIT_DISTFILES_CDROM= contains non-compiled proprietary Intel code
|
||||
PERMIT_DISTFILES_FTP= contains non-compiled proprietary Intel code
|
||||
PERMIT_PACKAGE_CDROM= patents
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
RUN_DEPENDS= telephony/asterisk>=1.8,<1.9
|
||||
CONFIGURE_STYLE=gnu
|
||||
CONFIGURE_ARGS+=--with-asterisk18 \
|
||||
--with-asterisk-includes=${LOCALBASE}/include \
|
||||
--with-itu
|
||||
|
||||
.include <bsd.port.mk>
|
5
telephony/asterisk-g729/distinfo
Normal file
5
telephony/asterisk-g729/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (asterisk-g72x-1.1-beta2.tar.bz2) = bnCqlj8Ud++ShTByBNZq4w==
|
||||
RMD160 (asterisk-g72x-1.1-beta2.tar.bz2) = 2c9O+XYSoiryjUopXii6pyDDsgg=
|
||||
SHA1 (asterisk-g72x-1.1-beta2.tar.bz2) = viivEI0YjXrQQGxT6Fdah6Fl4JE=
|
||||
SHA256 (asterisk-g72x-1.1-beta2.tar.bz2) = oSJghA0WeQJeABoHMiQEfjzeVB04JY7yllxwOcc+ChE=
|
||||
SIZE (asterisk-g72x-1.1-beta2.tar.bz2) = 498122
|
27
telephony/asterisk-g729/patches/patch-Makefile_in
Normal file
27
telephony/asterisk-g729/patches/patch-Makefile_in
Normal file
@ -0,0 +1,27 @@
|
||||
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2011/06/04 17:14:58 jolan Exp $
|
||||
--- Makefile.in.orig Sun Mar 20 16:21:12 2011
|
||||
+++ Makefile.in Tue May 24 20:20:59 2011
|
||||
@@ -178,10 +178,9 @@ CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
|
||||
--mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
|
||||
$(LDFLAGS) -o $@
|
||||
-SOURCES = $(codec_g723_la_SOURCES) $(codec_g729_la_SOURCES) \
|
||||
+SOURCES = $(codec_g729_la_SOURCES) \
|
||||
$(codec_g729nofp_la_SOURCES)
|
||||
-DIST_SOURCES = $(am__codec_g723_la_SOURCES_DIST) \
|
||||
- $(am__codec_g729_la_SOURCES_DIST) \
|
||||
+DIST_SOURCES = $(am__codec_g729_la_SOURCES_DIST) \
|
||||
$(am__codec_g729nofp_la_SOURCES_DIST)
|
||||
ETAGS = etags
|
||||
CTAGS = ctags
|
||||
@@ -327,8 +326,8 @@ AM_CFLAGS = @ASTERISK_ASTERISK_H@ -DG72X_ASTERISK=@AST
|
||||
AM_LDFLAGS = @IPP_LDFLAGS@ @FLTO_LDFLAGS@ -avoid-version -module
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
moddir = ${libdir}/asterisk/modules
|
||||
-@G729_NOFP_FALSE@mod_LTLIBRARIES = codec_g723.la codec_g729.la
|
||||
-@G729_NOFP_TRUE@mod_LTLIBRARIES = codec_g723.la codec_g729nofp.la
|
||||
+@G729_NOFP_FALSE@mod_LTLIBRARIES = codec_g729.la
|
||||
+@G729_NOFP_TRUE@mod_LTLIBRARIES = codec_g729nofp.la
|
||||
@ITU_CODE_FALSE@codec_g723_la_CFLAGS = ${AM_CFLAGS} -Iipp -DG72X_3
|
||||
@ITU_CODE_TRUE@codec_g723_la_CFLAGS = ${AM_CFLAGS} -Iitu/g.723.1a -DG72X_3
|
||||
@ITU_CODE_FALSE@codec_g723_la_SOURCES = codec_g72x.c ipp/decg723.c ipp/encg723.c ipp/owng723.c ipp/vadg723.c ipp/aux_tbls.c
|
1
telephony/asterisk-g729/pkg/DESCR
Normal file
1
telephony/asterisk-g729/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
asterisk-g729 is a G.729a voice codec for Asterisk.
|
3
telephony/asterisk-g729/pkg/PLIST
Normal file
3
telephony/asterisk-g729/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/06/04 17:14:58 jolan Exp $
|
||||
lib/asterisk/modules/codec_g729.so
|
||||
share/doc/pkg-readmes/${FULLPKGNAME}
|
24
telephony/asterisk-g729/pkg/README
Normal file
24
telephony/asterisk-g729/pkg/README
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: README,v 1.1.1.1 2011/06/04 17:14:58 jolan Exp $
|
||||
|
||||
G.729 codec for the Asterisk open source PBX.
|
||||
|
||||
After installing this package, you will need to either restart Asterisk
|
||||
or manually load the module:
|
||||
|
||||
$ sudo /etc/rc.d/asterisk restart
|
||||
$ asterisk -rx 'module load codec_g729.so'
|
||||
|
||||
You can verify the module has been loaded using the following command:
|
||||
|
||||
$ asterisk -rx 'core show codecs' |grep g729
|
||||
|
||||
You may also need to add 'allow=g729' to configuration files to
|
||||
completely enable it. Review these files:
|
||||
|
||||
${SYSCONFDIR}/asterisk/sip.conf
|
||||
${SYSCONFDIR}/asterisk/iax.conf
|
||||
|
||||
If you have problems with the codec, increase the Asterisk verbosity level
|
||||
to 3 and use the following command to enable debugging:
|
||||
|
||||
$ asterisk -rx 'g729 debug'
|
Loading…
x
Reference in New Issue
Block a user