How Asterisk13.23.1 increase G723 and G729 coding coding

The main article how to configure the encoding issues Asterisk G729 and G723 of the encoding

Today stepped in to configure a voice call during a pit, there was an error in a docking line process, there can not be spread to other lines in the transcoding process, resulting in an error.

View the next system g729 encoding format and is not installed.

Here's how to install the demonstration under the relevant encoding format. Let Asterisk system more perfect, good convenient compatible with more hardware vendors.

Reference article addresses: https://www.cnblogs.com/pipelone/archive/2009/06/10/1500195.html

My local environment: Asterisk 13.23.1

[[email protected] modules]# asterisk -V
Asterisk 13.23.1

 By cat / proc / cpuinfo command to view and cpu core architecture is X86_64 or X86 of CPU or Core

By looking asterisk configuration files that store the associated library files referenced by the module's path, which is encoded binary files

[[email protected] modules]# pwd
/usr/lib64/asterisk/modules

Then asterisk official website address system to find the corresponding .so library file, stored in the path

Best to change the relevant file because the file permissions to 755 before the reference is to this authority

The right to file a heavy red box that I need to install the g723 and g729 encoded binary files used

Then there are two ways to load the encoded file, let asterisk to identify and take effect

1 1. A method, performed directly in the system:

asterisk -rx "module load codec_g729-ast130-gcc4-glibc2.2-x86_64-core2.so"

In this way my version did not execute successfully test;

2. Method 2, execution proceeds to Asterisk at the command line:

asterisk -rv

localhost*CLI> module load codec_g723-ast130-gcc4-glibc2.2-x86_64-core2.so
Loaded codec_g723-ast130-gcc4-glibc2.2-x86_64-core2.so
== Registered translator 'g723tolin' from codec g723 to slin, table cost, 900000, computational cost 1000
== Registered translator 'lintog723' from codec slin to g723, table cost, 600000, computational cost 3000
Loaded codec_g723-ast130-gcc4-glibc2.2-x86_64-core2.so => (g723 Coder/Decoder, based on Intel IPP)

这个是执行成功的显示

然后输入命令core show translation  然后输出目前安装了哪些编码

上面有g723编码已经安装然后再次装会报警告提示已经安装过该编码格式

还有一个命令也可以看编码格式:core show codecs

常用的语音编码格式

g723.1 

g719

g729

g722

alaw

ulaw

今天就先到这儿。 明天再接着写。

 

Guess you like

Origin www.cnblogs.com/Enzoo/p/11234604.html