Code Monkey home page Code Monkey logo

mod_bcg729's Introduction

mod_bcg729

FreeSWITCH G.729A module using the opensource bcg729 implementation by Belledonne Communications.

Simple G.729A codec for FreeSWITCH using the Belledonne Communications G.729A GPLv2 implementation. Please see http://www.linphone.org/eng/documentation/dev/bcg729.html for further informations.

The module is a modified version of fsg729 ( https://code.google.com/p/fsg729/ ) which uses the Intel IPP libraries, updated to use a different codec implementation and get rid of Intel stuff.

As of Jan 1 2017, G.729 is a royalty free codec: http://www.sipro.com/G729.html

You can get a faster and supported G.729A codec by purchasing licenses directly from FreeSWITCH guys http://www.freeswitch.org . This will have the side effect to support the FreeSWITCH project ;)

Installation

You need to have git on your build machine and internet access, since the Makefile will try to checkout bcg729 sources and build them.

Edit Makefile and edit FS_INCLUDES, FS_MODULES vars to point where your FreeSWITCH includes are and where you want to install the module.

After, just type make and, if build completes without errors, make install .

Edit autoload_configs/modules.conf.xml , comment out mod_g729 and add mod_bcg729 . Now restart your FreeSWITCH and you're done.

mod_bcg729's People

Contributors

bit4bit avatar bmanojlovic avatar csindle avatar martb avatar mickaelh51 avatar ovadbar avatar xadhoom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mod_bcg729's Issues

Compilation error on FreeBSD

Unfortunately, it doesnt compile on FreeBSD using this makefile (https://github.com/raruler/mod_bcg729/blob/master/Makefile.bsd) and gives the following error


Making all in test
Making all in bin
cc -O2 -pipe   -fPIC -O3 -fomit-frame-pointer -std=gnu99 -Qunused-arguments  -fstack-protector   -I/usr/include -Ibcg729/include -I/usr/local/freeswitch/include/freeswitch -c mod_bcg729.c
mod_bcg729.c:61:64: error: too few arguments to function call, single argument 'enableVAD' was not specified
            context->encoder_object = initBcg729EncoderChannel();
                                      ~~~~~~~~~~~~~~~~~~~~~~~~ ^
bcg729/include/bcg729/encoder.h:40:1: note: 'initBcg729EncoderChannel' declared here
BCG729_VISIBILITY bcg729EncoderChannelContextStruct *initBcg729EncoderChannel(uint8_t enableVAD);
^
bcg729/include/bcg729/encoder.h:29:27: note: expanded from macro 'BCG729_VISIBILITY'
#define BCG729_VISIBILITY __attribute__ ((visibility ("default")))
                          ^
mod_bcg729.c:106:60: error: too few arguments to function call, expected 4, have 3
            bcg729Encoder(context->encoder_object, ddp, edp);
            ~~~~~~~~~~~~~                                  ^
bcg729/include/bcg729/encoder.h:62:1: note: 'bcg729Encoder' declared here
BCG729_VISIBILITY void bcg729Encoder(bcg729EncoderChannelContextStruct *encoderChannelContext, int16_t inputFrame[], uint8_t bitStream[], uint8_t *bitStreamLength);
^
bcg729/include/bcg729/encoder.h:29:27: note: expanded from macro 'BCG729_VISIBILITY'
#define BCG729_VISIBILITY __attribute__ ((visibility ("default")))
                          ^
mod_bcg729.c:144:60: error: too few arguments to function call, expected 7, have 4
        bcg729Decoder(context->decoder_object, NULL, 1, ddp);
        ~~~~~~~~~~~~~                                      ^
bcg729/include/bcg729/decoder.h:60:1: note: 'bcg729Decoder' declared here
BCG729_VISIBILITY void bcg729Decoder(bcg729DecoderChannelContextStruct *decoderChannelContext, uint8_t bitStream[], uint8_t bitStreamLength, uint8_t frameErasureFlag, uint8_t SIDFrameFlag, uint8_t rfc3389PayloadFlag, int16_t signal[]);
^
bcg729/include/bcg729/decoder.h:29:27: note: expanded from macro 'BCG729_VISIBILITY'
#define BCG729_VISIBILITY __attribute__ ((visibility ("default")))
                          ^
mod_bcg729.c:157:59: error: too few arguments to function call, expected 7, have 4
        bcg729Decoder(context->decoder_object, edp, 0, ddp);
        ~~~~~~~~~~~~~                                     ^
bcg729/include/bcg729/decoder.h:60:1: note: 'bcg729Decoder' declared here
BCG729_VISIBILITY void bcg729Decoder(bcg729DecoderChannelContextStruct *decoderChannelContext, uint8_t bitStream[], uint8_t bitStreamLength, uint8_t frameErasureFlag, uint8_t SIDFrameFlag, uint8_t rfc3389PayloadFlag, int16_t signal[]);
^
bcg729/include/bcg729/decoder.h:29:27: note: expanded from macro 'BCG729_VISIBILITY'
#define BCG729_VISIBILITY __attribute__ ((visibility ("default")))
                          ^
4 errors generated.
*** Error code 1

Stop.
make: stopped in /usr/home/fs/mod_bcg729

Module crashes recent freeswitch (1.7 git)

Hi,

Freeswitch crashes on start if module configured.
If we try load after start FS complains
2015-11-05 14:34:36.767936 [CRIT] switch_loadable_module.c:197 Failed to load codec interface G.729 from mod_bcg729 due to bytes per frame 32606 exceeding buffer size 8192.

On unloading FS crashes :(

In trans-coding G729 play the grumbled noise at end of file

Hello,

Recently we are using FreeSWITCH version 1.8.5. on this version, we are using fs_encode for the converting .wav file into different codecs.

Here we are using four different types of codec PCMU, PCMA, G729 & G722. Fs encode works fine for convert .wav to .PCMU & .PCMA. But when we play converted .wav to .G729 file there is some grumbled noise at the end of the file. I have attached original .wav file and G729 converted file.

This same thing when we convert in Asterisk it’s very good quality and no grumbled noise on converted file which I have also attached.

I have converted from below command.
On FreeSWITCH:- /usr/local/freeswitch/bin/fs_encode -l mod_bcg729 file.wav file.G729

On Asterisk CLI:- file convert /home/xyz/req_fail.wav /home/xyz/req_fail.g729

I have attached three different files on ZIP
g729_transcoding.zip
which are as below.

asterisk_convert_file.g729
freeswitch_convert_file.G729
original.wav

Compile error in Debian 8

I've this error during compiling:

`if [ ! -d bcg729 ]; then
git clone git://git.linphone.org/bcg729.git; pushd bcg729 ; git checkout 1.0.3; popd;
fi
cd bcg729 && sh autogen.sh && CFLAGS=-fPIC ./configure && make && cd ..
ln: creazione del collegamento simbolico "README" non riuscita: File già esistente
Generating build scripts for G729 codec...

  • libtoolize --copy --force
    autogen.sh: 32: autogen.sh: libtoolize: not found
  • aclocal
    aclocal: warning: couldn't open directory 'm4': File o directory non esistente
  • autoheader
  • automake --force-missing --add-missing --copy
    msbcg729/Makefile.am:4: error: Libtool library used but 'LIBTOOL' is undefined
    msbcg729/Makefile.am:4: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
    msbcg729/Makefile.am:4: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
    msbcg729/Makefile.am:4: If 'LT_INIT' is in 'configure.ac', make sure
    msbcg729/Makefile.am:4: its definition is in aclocal's search path.
    src/Makefile.am:2: error: Libtool library used but 'LIBTOOL' is undefined
    src/Makefile.am:2: The usual way to define 'LIBTOOL' is to add 'LT_INIT'
    src/Makefile.am:2: to 'configure.ac' and run 'aclocal' and 'autoconf' again.
    src/Makefile.am:2: If 'LT_INIT' is in 'configure.ac', make sure
    src/Makefile.am:2: its definition is in aclocal's search path.
    test/bin/Makefile.am:17: warning: source file '$(top_srcdir)/test/src/CNGRFC3389decoderTest.c' is in a subdirectory,
    test/bin/Makefile.am:17: but option 'subdir-objects' is disabled
    automake: warning: possible forward-incompatibility.
    automake: At least a source file is in a subdirectory, but the 'subdir-objects'
    automake: automake option hasn't been enabled. For now, the corresponding output
    automake: object file(s) will be placed in the top-level directory. However,
    automake: this behaviour will change in future Automake versions: they will
    automake: unconditionally cause object files to be placed in the same subdirectory
    automake: of the corresponding sources.
    automake: You are advised to start using 'subdir-objects' option throughout your
    automake: project, to avoid future incompatibilities.
    test/bin/Makefile.am:4: warning: source file '$(top_srcdir)/test/src/testUtils.c' is in a subdirectory,
    test/bin/Makefile.am:4: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:18: warning: source file '$(top_srcdir)/test/src/CNGdecoderTest.c' is in a subdirectory,
    test/bin/Makefile.am:18: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:28: warning: source file '$(top_srcdir)/test/src/LP2LSPConversionTest.c' is in a subdirectory,
    test/bin/Makefile.am:28: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:29: warning: source file '$(top_srcdir)/test/src/LPSynthesisFilterTest.c' is in a subdirectory,
    test/bin/Makefile.am:29: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:30: warning: source file '$(top_srcdir)/test/src/LSPQuantizationTest.c' is in a subdirectory,
    test/bin/Makefile.am:30: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:8: warning: source file '$(top_srcdir)/test/src/adaptativeCodebookSearchTest.c' is in a subdirectory,
    test/bin/Makefile.am:8: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:9: warning: source file '$(top_srcdir)/test/src/computeAdaptativeCodebookGainTest.c' is in a subdirectory,
    test/bin/Makefile.am:9: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:10: warning: source file '$(top_srcdir)/test/src/computeLPTest.c' is in a subdirectory,
    test/bin/Makefile.am:10: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:34: warning: source file '$(top_srcdir)/test/src/computeNoiseExcitationTest.c' is in a subdirectory,
    test/bin/Makefile.am:34: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:11: warning: source file '$(top_srcdir)/test/src/computeWeightedSpeechTest.c' is in a subdirectory,
    test/bin/Makefile.am:11: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:12: warning: source file '$(top_srcdir)/test/src/decodeAdaptativeCodeVectorTest.c' is in a subdirectory,
    test/bin/Makefile.am:12: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:13: warning: source file '$(top_srcdir)/test/src/decodeFixedCodeVectorTest.c' is in a subdirectory,
    test/bin/Makefile.am:13: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:14: warning: source file '$(top_srcdir)/test/src/decodeGainsTest.c' is in a subdirectory,
    test/bin/Makefile.am:14: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:15: warning: source file '$(top_srcdir)/test/src/decodeLSPTest.c' is in a subdirectory,
    test/bin/Makefile.am:15: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:19: warning: source file '$(top_srcdir)/test/src/decoderMultiChannelTest.c' is in a subdirectory,
    test/bin/Makefile.am:19: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:16: warning: source file '$(top_srcdir)/test/src/decoderTest.c' is in a subdirectory,
    test/bin/Makefile.am:16: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:21: warning: source file '$(top_srcdir)/test/src/encoderMultiChannelTest.c' is in a subdirectory,
    test/bin/Makefile.am:21: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:20: warning: source file '$(top_srcdir)/test/src/encoderTest.c' is in a subdirectory,
    test/bin/Makefile.am:20: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:35: warning: source file '$(top_srcdir)/test/src/encoderVADTest.c' is in a subdirectory,
    test/bin/Makefile.am:35: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:22: warning: source file '$(top_srcdir)/test/src/findOpenLoopPitchDelayTest.c' is in a subdirectory,
    test/bin/Makefile.am:22: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:23: warning: source file '$(top_srcdir)/test/src/fixedCodebookSearchTest.c' is in a subdirectory,
    test/bin/Makefile.am:23: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:24: warning: source file '$(top_srcdir)/test/src/g729FixedPointMathTest.c' is in a subdirectory,
    test/bin/Makefile.am:24: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:26: warning: source file '$(top_srcdir)/test/src/gainQuantizationTest.c' is in a subdirectory,
    test/bin/Makefile.am:26: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:27: warning: source file '$(top_srcdir)/test/src/interpolateqLSPAndConvert2LPTest.c' is in a subdirectory,
    test/bin/Makefile.am:27: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:31: warning: source file '$(top_srcdir)/test/src/postFilterTest.c' is in a subdirectory,
    test/bin/Makefile.am:31: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:32: warning: source file '$(top_srcdir)/test/src/postProcessingTest.c' is in a subdirectory,
    test/bin/Makefile.am:32: but option 'subdir-objects' is disabled
    test/bin/Makefile.am:33: warning: source file '$(top_srcdir)/test/src/preProcessingTest.c' is in a subdirectory,
    test/bin/Makefile.am:33: but option 'subdir-objects' is disabled
  • autoconf
  • cd /root/mod_bcg729/bcg729
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking whether UID '0' is supported by ustar format... yes
    checking whether GID '0' is supported by ustar format... yes
    checking how to create a ustar tar archive... gnutar
    ./configure: line 2654: LT_INIT: command not found
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking whether gcc understands -c and -o together... yes
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking whether make supports nested variables... (cached) yes
    ./configure: line 3773: syntax error near unexpected token ORTP,' ./configure: line 3773: PKG_CHECK_MODULES(ORTP, ortp >= 0.21.0,found_ortp=true,foo=bar)'
    Makefile:34: set di istruzioni per l'obiettivo "bcg729" non riuscito
    make: *** [bcg729] Errore 2
    `

Do you have some advice? Thanks

Not showing in freeswitch codec list

Hi
Thanks for your decent work. I successfully built and tested this codec but when I issue "show codec" in freeswitch cli there is nothing that shows this codec is activated:

type,name,ikey
codec,ADPCM (IMA),mod_spandsp
codec,AMR / Bandwidth Efficient,mod_amr
codec,AMR / Octet Aligned,mod_amr
codec,B64 (STANDARD),mod_b64
codec,G.711 alaw,CORE_PCM_MODULE
codec,G.711 ulaw,CORE_PCM_MODULE
codec,G.722,mod_spandsp
codec,G.723.1 6.3k,mod_g723_1
codec,G.726 16k,mod_spandsp
codec,G.726 16k (AAL2),mod_spandsp
codec,G.726 24k,mod_spandsp
codec,G.726 24k (AAL2),mod_spandsp
codec,G.726 32k,mod_spandsp
codec,G.726 32k (AAL2),mod_spandsp
codec,G.726 40k,mod_spandsp
codec,G.726 40k (AAL2),mod_spandsp
codec,GSM,mod_spandsp
codec,LPC-10,mod_spandsp
codec,OPUS (STANDARD),mod_opus
codec,PROXY PASS-THROUGH,CORE_PCM_MODULE
codec,PROXY VIDEO PASS-THROUGH,CORE_PCM_MODULE
codec,RAW Signed Linear (16 bit),CORE_PCM_MODULE
codec,Speex,CORE_SPEEX_MODULE
codec,VP8 Video,CORE_VPX_MODULE
codec,VP9 Video,CORE_VPX_MODULE

mod_bcg729 is not building on Debian Jessie

Hi!

Build is failling on me, any idea on what I might have wrong?

make[3]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/src'
Making all in test
make[3]: Entering directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/test'
Making all in bin
make[4]: Entering directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/test/bin'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/test/bin'
make[4]: Entering directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/test'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/test'
make[3]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729/test'
make[3]: Entering directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729'
make[3]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729'
make[2]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729'
make[1]: Leaving directory '/opt/BuildTools/jenkins/work/jobs/CloudVoice_v3_STETP002_G729_SUPPORT/workspace/bcg729'
gcc -fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic -m64 -mtune=generic -I/usr/include -Ibcg729/include -I/opt/Cibersys/CloudVoice/v3/pbx/include/freeswitch/ -c mod_bcg729.c

mod_bcg729.c: In function ‘switch_bcg729_init’:
mod_bcg729.c:61:39: error: too few arguments to function ‘initBcg729EncoderChannel’
context->encoder_object = initBcg729EncoderChannel();
^
In file included from mod_bcg729.c:31:0:
bcg729/include/bcg729/encoder.h:40:54: note: declared here
BCG729_VISIBILITY bcg729EncoderChannelContextStruct initBcg729EncoderChannel(uint8_t enableVAD);
^
mod_bcg729.c: In function ‘switch_bcg729_encode’:
mod_bcg729.c:106:13: error: too few arguments to function ‘bcg729Encoder’
bcg729Encoder(context->encoder_object, ddp, edp);
^
In file included from mod_bcg729.c:31:0:
bcg729/include/bcg729/encoder.h:62:24: note: declared here
BCG729_VISIBILITY void bcg729Encoder(bcg729EncoderChannelContextStruct *encoderChannelContext, int16_t inputFrame[], uint8_t bitStream[], uint8_t *bitStreamLength);
^
mod_bcg729.c: In function ‘switch_bcg729_decode’:
mod_bcg729.c:144:57: warning: passing argument 4 of ‘bcg729Decoder’ makes integer from pointer without a cast
bcg729Decoder(context->decoder_object, NULL, 1, ddp);
^
In file included from mod_bcg729.c:32:0:
bcg729/include/bcg729/decoder.h:60:24: note: expected ‘uint8_t’ but argument is of type ‘int16_t *’
BCG729_VISIBILITY void bcg729Decoder(bcg729DecoderChannelContextStruct *decoderChannelContext, uint8_t bitStream[], uint8_t bitStreamLength, uint8_t frameErasureFlag, uint8_t SIDFrameFlag, uint8_t rfc3389PayloadFlag, int16_t signal[]);
^
mod_bcg729.c:144:9: error: too few arguments to function ‘bcg729Decoder’
bcg729Decoder(context->decoder_object, NULL, 1, ddp);
^
In file included from mod_bcg729.c:32:0:
bcg729/include/bcg729/decoder.h:60:24: note: declared here
BCG729_VISIBILITY void bcg729Decoder(bcg729DecoderChannelContextStruct *decoderChannelContext, uint8_t bitStream[], uint8_t bitStreamLength, uint8_t frameErasureFlag, uint8_t SIDFrameFlag, uint8_t rfc3389PayloadFlag, int16_t signal[]);
^
mod_bcg729.c:157:56: warning: passing argument 4 of ‘bcg729Decoder’ makes integer from pointer without a cast
bcg729Decoder(context->decoder_object, edp, 0, ddp);
^
In file included from mod_bcg729.c:32:0:
bcg729/include/bcg729/decoder.h:60:24: note: expected ‘uint8_t’ but argument is of type ‘int16_t *’
BCG729_VISIBILITY void bcg729Decoder(bcg729DecoderChannelContextStruct *decoderChannelContext, uint8_t bitStream[], uint8_t bitStreamLength, uint8_t frameErasureFlag, uint8_t SIDFrameFlag, uint8_t rfc3389PayloadFlag, int16_t signal[]);
^
mod_bcg729.c:157:9: error: too few arguments to function ‘bcg729Decoder’
bcg729Decoder(context->decoder_object, edp, 0, ddp);
^
In file included from mod_bcg729.c:32:0:
bcg729/include/bcg729/decoder.h:60:24: note: declared here
BCG729_VISIBILITY void bcg729Decoder(bcg729DecoderChannelContextStruct *decoderChannelContext, uint8_t bitStream[], uint8_t bitStreamLength, uint8_t frameErasureFlag, uint8_t SIDFrameFlag, uint8_t rfc3389PayloadFlag, int16_t signal[]);
^
Makefile:25: recipe for target 'mod_bcg729.o' failed
make: *
* [mod_bcg729.o] Error 1

I building against latest 1.6 branch.
Thanks, any help is welcome!

Can not compile

Makefile has the line:
git clone git://git.linphone.org/bcg729.git; pushd bcg729 ; git checkout 1.0.1; popd;
We're gonna use the latest (1.0.1) version of original sources, but lots of functions already has differences in arguments list and implementation since 1.0.0. So I could NOT compile the module using 1.0.1 sources version, but I could using 1.0.0.

Make error

Hi,

When I execute make there is error at the bottom.

gcc -fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic -m64 -mtune=generic -I/usr/include -Ibcg729/include -I/usr/lib/freeswitch/include -c mod_bcg729.c
Makefile:26: recipe for target 'mod_bcg729.o' failed

Can you help me to check?

Here is make log :

if [ ! -d bcg729 ]; then
git clone git://git.linphone.org/bcg729.git; pushd bcg729 ; git checkout 1.0.1; popd;
fi
cd bcg729 && sh autogen.sh && CFLAGS=-fPIC ./configure && make && cd ..
Generating build scripts for G729 codec...
libtoolize: putting auxiliary files in .'. libtoolize: copying file ./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, m4'. libtoolize: copying file m4/libtool.m4'
libtoolize: copying file m4/ltoptions.m4' libtoolize: copying file m4/ltsugar.m4'
libtoolize: copying file m4/ltversion.m4' libtoolize: copying file m4/lt~obsolete.m4'
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @file support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether make supports nested variables... (cached) yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ORTP... no
checking for MEDIASTREAMER... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating include/bcg729/Makefile
config.status: creating msbcg729/Makefile
config.status: creating test/Makefile
config.status: creating test/bin/Makefile
config.status: creating libbcg729.pc
config.status: creating bcg729.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing libtool-hacking commands
make[1]: Entering directory '/home/kosada/g729/mod_bcg729/bcg729'
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/kosada/g729/mod_bcg729/bcg729/missing autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[2]: Entering directory '/home/kosada/g729/mod_bcg729/bcg729'
Making all in include
make[3]: Entering directory '/home/kosada/g729/mod_bcg729/bcg729/include'
Making all in bcg729
make[4]: Entering directory '/home/kosada/g729/mod_bcg729/bcg729/include/bcg729'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/kosada/g729/mod_bcg729/bcg729/include/bcg729'
make[4]: Entering directory '/home/kosada/g729/mod_bcg729/bcg729/include'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/kosada/g729/mod_bcg729/bcg729/include'
make[3]: Leaving directory '/home/kosada/g729/mod_bcg729/bcg729/include'
Making all in src
make[3]: Entering directory '/home/kosada/g729/mod_bcg729/bcg729/src'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/kosada/g729/mod_bcg729/bcg729/src'
Making all in test
make[3]: Entering directory '/home/kosada/g729/mod_bcg729/bcg729/test'
Making all in bin
make[4]: Entering directory '/home/kosada/g729/mod_bcg729/bcg729/test/bin'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/kosada/g729/mod_bcg729/bcg729/test/bin'
make[4]: Entering directory '/home/kosada/g729/mod_bcg729/bcg729/test'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/kosada/g729/mod_bcg729/bcg729/test'
make[3]: Leaving directory '/home/kosada/g729/mod_bcg729/bcg729/test'
make[3]: Entering directory '/home/kosada/g729/mod_bcg729/bcg729'
make[3]: Leaving directory '/home/kosada/g729/mod_bcg729/bcg729'
make[2]: Leaving directory '/home/kosada/g729/mod_bcg729/bcg729'
make[1]: Leaving directory '/home/kosada/g729/mod_bcg729/bcg729'
gcc -fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic -m64 -mtune=generic -I/usr/include -Ibcg729/include -I/usr/lib/freeswitch/include -c mod_bcg729.c
Makefile:26: recipe for target 'mod_bcg729.o' failed

On fs 1.6.10 seem to get one way audio

On FS 1.6.10, I'm getting 1 way audio when one side of the call is in PCMU and the other is in G729. If i put both sides of call into g729 or both sides in PCMI all works fine. But for some reason transcoding is not working. I wasn't noticing this issue on fs1.6.9

bcg729 outdated version

Hi,

The Makefile is pointing to v1.0.1 of bcg729 (from Nov-2015), in the src repo there is a v1.0.2 (from Aug-2016).

root:/opt/bcg729# git tag
0.2
1.0.0
1.0.1
1.0.2
root:/opt/bcg729#

Any specific reason on why you haven't updated to use v1.0.2?

Thanks!

Best regards,
Joel

Codec negotiation error

Hi, I installed mod_bcg729 for beaglebone black and then configured 2 softphones (2 different machines using microsip) to only use codec g729. Whenever I try to make a call I get:

2018-04-17 15:19:20.234998 [ERR] switch_core_media.c:4316 a=crypto in RTP/AVP, refer to rfc3711
2018-04-17 15:19:20.234998 [ERR] mod_sofia.c:2343 CODEC NEGOTIATION ERROR. SDP:
v=0
o=- 3742115449 3742115449 IN IP4 191.4.205.68
s=pjmedia
b=AS:29
t=0 0
a=X-nat:0
m=audio 4028 RTP/AVP 18 101
c=IN IP4 191.4.205.68
b=TIAS:11800
a=rtpmap:18 G729/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtcp:4029 IN IP4 191.4.205.68
a=ssrc:815685879 cname:500659ae00113fc8
a=crypto:1 AES_256_CM_HMAC_SHA1_80 inline:+VGCBKWeSiGXDEBX/Y0m1H+gMmyQ8OriVdK4cDzaNfrIPaGMX3T6wkdseMhiYg==
a=crypto:2 AES_256_CM_HMAC_SHA1_32 inline:ynqAMMc0Ol/nHWnuZIVOpV1z5JzBDGVoiRsF7Dlhiry445b0Swkjx4pym30LFA==
a=crypto:3 AES_CM_128_HMAC_SHA1_80 inline:GrPdW0P9dE1R653VkWBmIabzbF7dvwotIW3oFBHJ
a=crypto:4 AES_CM_128_HMAC_SHA1_32 inline:nuZrqa/Bx5m6t8tkSV97szEl8Q1D1nHJGuQYiraM

I have modified vars.xml:

I run show codecs and I can see that G.729 is available in freeswitch and is using mod_bcg729, but I still cannot make a call between these 2 softphones. Any idea what could be wrong?

build error

with the recent changes in libbcg729 the following problem pops up:

mod_bcg729.c: In function ‘switch_bcg729_init’:
mod_bcg729.c:61:39: error: too few arguments to function ‘initBcg729EncoderChannel’
context->encoder_object = initBcg729EncoderChannel();

(and a few more)

cheers

Getting unexpected error at initial installation

Hey guys,
Thanks for this amazing success by allowing poor people communicate over IP with low bandwidth... I am trying to build this on my Fusion PBX (Debian Jessy) which has Freeswitch on it... well everything is alright the FS_INCLUDES, FS_MODULES points to the right side... I just executed the Makefile with sh permissions but return me these error...

Is it there any way to receive some help on setting this up?

root@XXXXX:~ /mod_bcg729# sh ./Makefile
./Makefile: line 8: SHELL: command not found
./Makefile: line 9: shell: command not found
./Makefile: line 9: PROC?=: command not found
./Makefile: line 12: -O3: command not found
./Makefile: line 13: syntax error near unexpected token ${PROC},x86_64' ./Makefile: line 13: ifeq (${PROC},x86_64)'
root@XXXX:~ /mod_bcg729#

Thanks for your coop and keep doing great things!
rusguns

Debian 8 fatal error: switch.h: No such file or directory

Having issues with Debian 8. Installed Freeswitch per their instructions https://freeswitch.org/confluence/display/FREESWITCH/Debian+8+Jessie
Error:
Ibcg729/include -I/usr/include/freeswitch -c mod_bcg729.c
mod_bcg729.c:30:20: fatal error: switch.h: No such file or directory

Full process:

root@cb-sbc:~/mod_bcg729# make
if [ ! -d bcg729 ]; then \
        git clone git://git.linphone.org/bcg729.git; \
fi
Cloning into 'bcg729'...
remote: Counting objects: 872, done.
remote: Total 872 (delta 194), reused 402 (delta 194)
Receiving objects: 100% (872/872), 657.94 KiB | 142.00 KiB/s, done.
Resolving deltas: 100% (194/194), done.
Checking connectivity... done.
pushd bcg729; git fetch; git checkout 1.0.4; popd;
~/mod_bcg729/bcg729 ~/mod_bcg729
Note: checking out '1.0.4'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b new_branch_name

HEAD is now at 9ada79d... Update version.
~/mod_bcg729
cd bcg729 && sh autogen.sh && CFLAGS=-fPIC ./configure && make && cd ..
Generating build scripts for G729 codec...
+ libtoolize --copy --force
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
+ aclocal
+ autoheader
+ automake --force-missing --add-missing --copy
configure.ac:12: installing './compile'
configure.ac:7: installing './config.guess'
configure.ac:7: installing './config.sub'
configure.ac:11: installing './install-sh'
configure.ac:11: installing './missing'
Makefile.am: installing './INSTALL'
src/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
test/bin/Makefile.am:17: warning: source file '$(top_srcdir)/test/src/CNGRFC3389decoderTest.c' is in a subdirectory,
test/bin/Makefile.am:17: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
test/bin/Makefile.am:4: warning: source file '$(top_srcdir)/test/src/testUtils.c' is in a subdirectory,
test/bin/Makefile.am:4: but option 'subdir-objects' is disabled
test/bin/Makefile.am:18: warning: source file '$(top_srcdir)/test/src/CNGdecoderTest.c' is in a subdirectory,
test/bin/Makefile.am:18: but option 'subdir-objects' is disabled
test/bin/Makefile.am:28: warning: source file '$(top_srcdir)/test/src/LP2LSPConversionTest.c' is in a subdirectory,
test/bin/Makefile.am:28: but option 'subdir-objects' is disabled
test/bin/Makefile.am:29: warning: source file '$(top_srcdir)/test/src/LPSynthesisFilterTest.c' is in a subdirectory,
test/bin/Makefile.am:29: but option 'subdir-objects' is disabled
test/bin/Makefile.am:30: warning: source file '$(top_srcdir)/test/src/LSPQuantizationTest.c' is in a subdirectory,
test/bin/Makefile.am:30: but option 'subdir-objects' is disabled
test/bin/Makefile.am:8: warning: source file '$(top_srcdir)/test/src/adaptativeCodebookSearchTest.c' is in a subdirectory,
test/bin/Makefile.am:8: but option 'subdir-objects' is disabled
test/bin/Makefile.am:9: warning: source file '$(top_srcdir)/test/src/computeAdaptativeCodebookGainTest.c' is in a subdirectory,
test/bin/Makefile.am:9: but option 'subdir-objects' is disabled
test/bin/Makefile.am:10: warning: source file '$(top_srcdir)/test/src/computeLPTest.c' is in a subdirectory,
test/bin/Makefile.am:10: but option 'subdir-objects' is disabled
test/bin/Makefile.am:34: warning: source file '$(top_srcdir)/test/src/computeNoiseExcitationTest.c' is in a subdirectory,
test/bin/Makefile.am:34: but option 'subdir-objects' is disabled
test/bin/Makefile.am:11: warning: source file '$(top_srcdir)/test/src/computeWeightedSpeechTest.c' is in a subdirectory,
test/bin/Makefile.am:11: but option 'subdir-objects' is disabled
test/bin/Makefile.am:12: warning: source file '$(top_srcdir)/test/src/decodeAdaptativeCodeVectorTest.c' is in a subdirectory,
test/bin/Makefile.am:12: but option 'subdir-objects' is disabled
test/bin/Makefile.am:13: warning: source file '$(top_srcdir)/test/src/decodeFixedCodeVectorTest.c' is in a subdirectory,
test/bin/Makefile.am:13: but option 'subdir-objects' is disabled
test/bin/Makefile.am:14: warning: source file '$(top_srcdir)/test/src/decodeGainsTest.c' is in a subdirectory,
test/bin/Makefile.am:14: but option 'subdir-objects' is disabled
test/bin/Makefile.am:15: warning: source file '$(top_srcdir)/test/src/decodeLSPTest.c' is in a subdirectory,
test/bin/Makefile.am:15: but option 'subdir-objects' is disabled
test/bin/Makefile.am:19: warning: source file '$(top_srcdir)/test/src/decoderMultiChannelTest.c' is in a subdirectory,
test/bin/Makefile.am:19: but option 'subdir-objects' is disabled
test/bin/Makefile.am:16: warning: source file '$(top_srcdir)/test/src/decoderTest.c' is in a subdirectory,
test/bin/Makefile.am:16: but option 'subdir-objects' is disabled
test/bin/Makefile.am:21: warning: source file '$(top_srcdir)/test/src/encoderMultiChannelTest.c' is in a subdirectory,
test/bin/Makefile.am:21: but option 'subdir-objects' is disabled
test/bin/Makefile.am:20: warning: source file '$(top_srcdir)/test/src/encoderTest.c' is in a subdirectory,
test/bin/Makefile.am:20: but option 'subdir-objects' is disabled
test/bin/Makefile.am:35: warning: source file '$(top_srcdir)/test/src/encoderVADTest.c' is in a subdirectory,
test/bin/Makefile.am:35: but option 'subdir-objects' is disabled
test/bin/Makefile.am:22: warning: source file '$(top_srcdir)/test/src/findOpenLoopPitchDelayTest.c' is in a subdirectory,
test/bin/Makefile.am:22: but option 'subdir-objects' is disabled
test/bin/Makefile.am:23: warning: source file '$(top_srcdir)/test/src/fixedCodebookSearchTest.c' is in a subdirectory,
test/bin/Makefile.am:23: but option 'subdir-objects' is disabled
test/bin/Makefile.am:24: warning: source file '$(top_srcdir)/test/src/g729FixedPointMathTest.c' is in a subdirectory,
test/bin/Makefile.am:24: but option 'subdir-objects' is disabled
test/bin/Makefile.am:26: warning: source file '$(top_srcdir)/test/src/gainQuantizationTest.c' is in a subdirectory,
test/bin/Makefile.am:26: but option 'subdir-objects' is disabled
test/bin/Makefile.am:27: warning: source file '$(top_srcdir)/test/src/interpolateqLSPAndConvert2LPTest.c' is in a subdirectory,
test/bin/Makefile.am:27: but option 'subdir-objects' is disabled
test/bin/Makefile.am:31: warning: source file '$(top_srcdir)/test/src/postFilterTest.c' is in a subdirectory,
test/bin/Makefile.am:31: but option 'subdir-objects' is disabled
test/bin/Makefile.am:32: warning: source file '$(top_srcdir)/test/src/postProcessingTest.c' is in a subdirectory,
test/bin/Makefile.am:32: but option 'subdir-objects' is disabled
test/bin/Makefile.am:33: warning: source file '$(top_srcdir)/test/src/preProcessingTest.c' is in a subdirectory,
test/bin/Makefile.am:33: but option 'subdir-objects' is disabled
+ autoconf
+ cd /root/mod_bcg729/bcg729
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether make supports nested variables... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating include/Makefile
config.status: creating include/bcg729/Makefile
config.status: creating test/Makefile
config.status: creating test/bin/Makefile
config.status: creating libbcg729.pc
config.status: creating bcg729.spec
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing libtool-hacking commands
make[1]: Entering directory '/root/mod_bcg729/bcg729'
make  all-recursive
make[2]: Entering directory '/root/mod_bcg729/bcg729'
Making all in include
make[3]: Entering directory '/root/mod_bcg729/bcg729/include'
Making all in bcg729
make[4]: Entering directory '/root/mod_bcg729/bcg729/include/bcg729'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/root/mod_bcg729/bcg729/include/bcg729'
make[4]: Entering directory '/root/mod_bcg729/bcg729/include'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/root/mod_bcg729/bcg729/include'
make[3]: Leaving directory '/root/mod_bcg729/bcg729/include'
Making all in src
make[3]: Entering directory '/root/mod_bcg729/bcg729/src'
  CC       LP2LSPConversion.lo
  CC       LPSynthesisFilter.lo
  CC       LSPQuantization.lo
  CC       adaptativeCodebookSearch.lo
  CC       codebooks.lo
  CC       computeAdaptativeCodebookGain.lo
  CC       computeLP.lo
  CC       computeWeightedSpeech.lo
  CC       decodeAdaptativeCodeVector.lo
  CC       decodeFixedCodeVector.lo
  CC       decodeGains.lo
  CC       decodeLSP.lo
  CC       decoder.lo
  CC       encoder.lo
  CC       findOpenLoopPitchDelay.lo
  CC       fixedCodebookSearch.lo
  CC       gainQuantization.lo
  CC       interpolateqLSP.lo
  CC       postFilter.lo
  CC       postProcessing.lo
  CC       preProcessing.lo
  CC       qLSP2LP.lo
  CC       utils.lo
  CC       cng.lo
  CC       vad.lo
  CC       dtx.lo
  CCLD     libbcg729.la
make[3]: Leaving directory '/root/mod_bcg729/bcg729/src'
Making all in test
make[3]: Entering directory '/root/mod_bcg729/bcg729/test'
Making all in bin
make[4]: Entering directory '/root/mod_bcg729/bcg729/test/bin'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/root/mod_bcg729/bcg729/test/bin'
make[4]: Entering directory '/root/mod_bcg729/bcg729/test'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/root/mod_bcg729/bcg729/test'
make[3]: Leaving directory '/root/mod_bcg729/bcg729/test'
make[3]: Entering directory '/root/mod_bcg729/bcg729'
make[3]: Leaving directory '/root/mod_bcg729/bcg729'
make[2]: Leaving directory '/root/mod_bcg729/bcg729'
make[1]: Leaving directory '/root/mod_bcg729/bcg729'
cc -fPIC -O3 -fomit-frame-pointer -fno-exceptions -Wall -std=c99 -pedantic -I/usr/include -Ibcg729/include -I/usr/include/freeswitch -c mod_bcg729.c
mod_bcg729.c:30:20: fatal error: switch.h: No such file or directory
 #include "switch.h"

Hello I am installing on Debian jessie

The make command is giving me this error

checking whether make supports nested variables... (cached) yes
./configure: line 12341: syntax error near unexpected token ORTP,' ./configure: line 12341:PKG_CHECK_MODULES(ORTP, ortp >= 0.21.0,found_ortp=true,foo=bar)'
Makefile:36: recipe for target 'bcg729' failed
make: *** [bcg729] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.