Difference between revisions of "HOWTO g729 Manual Install PBXware"

From Bicom Systems Wiki

Line 10: Line 10:
 
   ln -s ../../bin/cat less
 
   ln -s ../../bin/cat less
  
'''To navigate to the Asterisk modules directory, run the following command:'''
+
'''Navigate to the Asterisk modules directory by executing command:'''
  
 
   cd /opt/pbxware/pw/usr/lib/asterisk/modules/
 
   cd /opt/pbxware/pw/usr/lib/asterisk/modules/
  
'''To download ''the G729 binary'' required for the architecture, click the link below:'''
+
'''To download ''G729 binary'' please execute commands corresponding to your PBXware version'''
  
http://asterisk.hosting.lv/
 
  
'''Choose codec binary appropriate for your Asterisk version and CPU type, use x86_64 for 64-bit mode.'''
+
'''PBXware 5.x'''
  
'''To find out your processor info type, run the following command:'''
 
  cat /proc/cpuinfo
 
  
'''(PBXware 5.1) Asterisk 13 binary, example for core2-sse4:'''
+
Download g729 binary:
  
  wget http://asterisk.hosting.lv/bin/codec_g729-ast130-gcc4-glibc2.2-x86_64-core2-sse4.so
+
wget http://asterisk.hosting.lv/bin/codec_g729-ast130-gcc4-glibc2.2-x86_64-core2-sse4.so
  
'''Asterisk 16 binary, example for pentinum4:'''
+
Rename downloaded file to codec_g729a.so
  
  wget http://asterisk.hosting.lv/bin/codec_g729-ast160-gcc4-glibc-x86_64-pentium4.so
+
mv codec_g729-ast130-gcc4-glibc2.2-x86_64-core2-sse4.so codec_g729a.so
 +
 
 +
 
 +
 
 +
'''PBXware 6.x'''
 +
 
 +
 
 +
Download g729 binary:
 +
 
 +
wget http://asterisk.hosting.lv/bin/codec_g729-ast160-gcc4-glibc-x86_64-pentium4.so
 +
 
 +
Rename downloaded file to codec_g729a.so
 +
 
 +
mv codec_g729-ast160-gcc4-glibc-x86_64-pentium4.so codec_g729a.so
 +
 
 +
 
 +
To change the file ownership, run the following commands:
  
'''To change the file ownership, run the following commands: '''
 
  mv codec_g729-ast130-gcc4-glibc2.2-x86_64-core2-sse4.so codec_g729.so
 
 
   chmod 755 codec_g729.so
 
   chmod 755 codec_g729.so
 
   chown 555:555 codec_g729.so
 
   chown 555:555 codec_g729.so
  
(re)Load g729 codec:
 
  
'''Enter Asterisk CLI'''
+
Execute this command from PBXware shell, to load G729 codec, without entering Asterisk CLI:
 +
 
 +
 
 +
asterisk -rx 'module load codec_g729a.so'
 +
 
 +
 
 +
To check if codec was loaded correctly execute these commands in PBXware shell, without entering Asterisk CLI:
 +
 
  
  asterisk -rvvvvvv
+
asterisk -rx 'core show translation | grep g729
  
'''Load module and check the system response to see if the g729 codec is installed:'''
 
 
 
  module load codec_g729.so
 
  core show translation recalc 10
 
  
'''To exit Asterisk CLI, run the following command:'''
+
asterisk -rx 'core show codecs'
  CTRL + C
+

Revision as of 14:35, 17 November 2021

In order to manually install g729, please follow these steps:


Log in to the system shell as a root user.

Go to /opt/pbxware/pw/usr/bin and create symbolic links:

 cd /opt/pbxware/pw/usr/bin
 ln -s ../../bin/cat more
 ln -s ../../bin/cat less

Navigate to the Asterisk modules directory by executing command:

 cd /opt/pbxware/pw/usr/lib/asterisk/modules/

To download G729 binary please execute commands corresponding to your PBXware version


PBXware 5.x


Download g729 binary:

wget http://asterisk.hosting.lv/bin/codec_g729-ast130-gcc4-glibc2.2-x86_64-core2-sse4.so

Rename downloaded file to codec_g729a.so

mv codec_g729-ast130-gcc4-glibc2.2-x86_64-core2-sse4.so codec_g729a.so


PBXware 6.x


Download g729 binary:

wget http://asterisk.hosting.lv/bin/codec_g729-ast160-gcc4-glibc-x86_64-pentium4.so

Rename downloaded file to codec_g729a.so

mv codec_g729-ast160-gcc4-glibc-x86_64-pentium4.so codec_g729a.so


To change the file ownership, run the following commands:

 chmod 755 codec_g729.so
 chown 555:555 codec_g729.so


Execute this command from PBXware shell, to load G729 codec, without entering Asterisk CLI:


asterisk -rx 'module load codec_g729a.so'


To check if codec was loaded correctly execute these commands in PBXware shell, without entering Asterisk CLI:


asterisk -rx 'core show translation | grep g729


asterisk -rx 'core show codecs'