This codec is only usable in passthrough mode!

toolzs

New Member
Apr 22, 2021
2
0
1
44
Hi All,

I'm a new Fusion pbx user, I have setup my IVR and its not working. The call rings and hangs up after 3sec without my IVR playing.

When i check the logs this error stands out.

mod_g729.c:102 This codec is only usable in passthrough mode!

Where can i purchase the codec?

Regards
 

toolzs

New Member
Apr 22, 2021
2
0
1
44
swisscodec.PNG

Yes the codec is enabled by the supplier..
Its also enabled on my fusionpbx.

Regards
 

abelitouci

New Member
Jul 3, 2019
25
5
3
Houston, Texas

bcmike

Active Member
Jun 7, 2018
281
45
28
50
It would be interesting to know the use case for G729 these days. Most clients I run into have more than enough bandwidth for G711 and beyond. I know that sometimes people will use G729 hoping to cure problems that are jitter and packet loss based, which is obviously problematic.
 

abelitouci

New Member
Jul 3, 2019
25
5
3
Houston, Texas
@bcmike Great Question.
In our case G711 is our go to code, no problems at all for IP Phones.
However we also have a mobile APP (sip client) and most clients present quality problems when they are on mobile data, it's not that bad when they are on WIFI though.
So we tested the same app connected to asterisk with G729 and it does help when your bandwith is low. According to the doc g729 uses 1/8 of the BW compared to G711.
That's the reason I'm trying to add G729 to freeswitch to have all calls from/to the mobile APP using G729 instead.
 
  • Like
Reactions: bcmike

Adrian Fretwell

Active Member
Aug 13, 2017
991
244
43
We still use G729 quite a lot. We have customers in rural areas of the UK with really poor internet connections.

We also off load quite a lot of SIP traffic to BT Wholesale, (basically the original Telecommunications provider in the UK) and their first choice codec is G.729.

To help answer the post above, source code is available at the link below:
https://gitlab.linphone.org/BC/public/bcg729

However you are interested in the FreeSWITCH module, source below:
https://github.com/xadhoom/mod_bcg729

Compiling should not be difficult, set up a dev box and do something like:
Code:
apt-get -y install libfreeswitch-dev git autoconf automake libtool
cd /usr/src/
git clone https://github.com/xadhoom/mod_bcg729.git
cd mod_bcg729
make && make install
 
  • Like
Reactions: abelitouci

Adrian Fretwell

Active Member
Aug 13, 2017
991
244
43
Make is a software build tool (https://en.wikipedia.org/wiki/Make_(software))

&& is a Linux (bash [https://www.gnu.org/software/bash/]) shell logical operator, it is used here so that the second command will only execute if the first command is successful.

You can check it you have make of your system with the which command:

Code:
root@a2es-dev16:~# which make
/usr/bin/make

If you do not have it, and depending what system you are running there may be a virtural package available like "build essential" which is primarily aimed at people who are building packages but it will install all the basic build tools and compilers for you:
https://packages.debian.org/bullseye/build-essential

Code:
root@a2es-dev16:~# apt-get install build-essential
 

Haban

New Member
Sep 13, 2021
7
1
3
49
thank you so much
unfortunate i do not have it, my instant on Amazon debian,
the command
root@a2es-dev16:~# which make
shows nothing

i will try the second option you gave me and get back to you.

thank so much
 

Haban

New Member
Sep 13, 2021
7
1
3
49
Dear Adrian,
i run the second option and could have Make commands
and i completed the steps of
make && Make install
it seems no error messages and smooth

i restarted the instant (servers)
at default setting i enabled swissvoice_codec_order
and at Advanced--> module Codec , i just found the old G729 codec supports passthrough mode

am i missing any step?