Asterisk运行中报“ Unable to find a codec translation path from (g729) to (slin”错误解决办法
来源:互联网 发布:无影无踪软件 编辑:程序博客网 时间:2024/06/18 07:32
Asterisk
版本
Asterisk 11
问题描述:
新装了台通讯服务器,在打电话的过程中,都是还没出现通话就挂断了,于是查看了下日志记录,发现以下几条报警一直出现
vim /var/log/asterisk/messages[May 10 22:30:08] WARNING[2491][C-00000003] channel.c: Unable to find a codec translation path from (g729) to (slin)[May 10 22:30:08] WARNING[2491][C-00000003] res_musiconhold.c: Unable to open file '/var/lib/asterisk/moh/macroform-the_simplicity': No such file or directory[May 10 22:30:08] WARNING[2491][C-00000003] channel.c: Unable to find a codec translation path from (g729) to (slin)[May 10 22:30:08] WARNING[2491][C-00000003] res_musiconhold.c: Unable to open file '/var/lib/asterisk/moh/reno_project-system': No such file or directory[May 10 22:30:08] WARNING[2491][C-00000003] channel.c: Unable to find a codec translation path from (g729) to (slin)[May 10 22:30:08] WARNING[2491][C-00000003] res_musiconhold.c: Unable to open file '/var/lib/asterisk/moh/manolo_camp-morning_coffee': No such file or directory[May 10 22:30:08] WARNING[2491][C-00000003] channel.c: Unable to find a codec translation path from (g729) to (slin)[May 10 22:30:08] WARNING[2491][C-00000003] res_musiconhold.c: Unable to open file '/var/lib/asterisk/moh/macroform-cold_day': No such file or directory[May 10 22:30:08] WARNING[2491][C-00000003] channel.c: Unable to find a codec translation path from (g729) to (slin)[May 10 22:30:08] WARNING[2491][C-00000003] res_musiconhold.c: Unable to open file '/var/lib/asterisk/moh/macroform-robot_dity': No such file or directory[May 10 22:30:08] VERBOSE[2491][C-00000003] res_musiconhold.c: -- Stopped music on hold on SIP/siptrunk-00000004
解决方案
用谷歌搜了下,发现是音频转码失败,缺少 g729
语音编码,去 http://asterisk.hosting.lv/ 找到右边 Linux binaries
中 Asterisk 11
的 codec_g729-ast110-gcc4-glibc-x86_64-pentium4.so
,下载到服务器 /var/lib64/asterisk/module
,重启 Asterisk
,然后使用命令查看音频解码列表,发现 g729
加上去了,之后便能正常的打电话了。
cd /var/lib64/asterisk/modulewget http://asterisk.hosting.lv/bin/codec_g729-ast110-gcc4-glibc-x86_64-pentium4.somv codec_g729-ast110-gcc4-glibc-x86_64-pentium4.so codec_g729.so
[root@FJr-YZ-KVM-255-141 modules]# asterisk -rx "module show "Module Description Use Count ... codec_g729.so g729 Coder/Decoder, based on Intel IPP 0 ...
[root@FJr-YZ-KVM-255-141 supdev]# asterisk -rx 'core show translation recalc 10' Recalculating Codec Translation (number of sample seconds: 10) Translation times between formats (in microseconds) for one second of data Source Format (Rows) Destination Format (Columns) gsm ulaw alaw g726 adpcm slin lpc10 g729 ilbc g726aal2 g722 slin16 testlaw slin12 slin24 slin32 slin44 slin48 slin96 slin192 g729 15000 15000 15000 15000 15000 9000 15000 - 15000 15000 17250 17000 15000 17000 17000 17000 17000 17000 17000 17000
0 0
- Asterisk运行中报“ Unable to find a codec translation path from (g729) to (slin”错误解决办法
- Unable to find a javac compiler错误之解决办法
- unable to find valid certification path to requested target'解决办法
- JTAG“Unable to find target”错误解决办法
- “Unable to find vcvarsall.bat”错误解决办法
- Terminal错误: unable to find utility "PackageApplication", not a developer tool or in PATH
- SQL Developer报错:Unable to find a Java Virtual Machine解决办法
- python27安装paramiko报 unable to find vcvarsall.bat错误解决办法
- 环境变量设置无误,但Tomcat仍报“Unable to find a javac compiler”错误的排除
- XP下运行VS2010生成程序报错:unable to find a version of the runtime to run this application
- python 中运行 pip 或者 easy_install 时出现 error: unable to find vcvarsall.bat 的解决办法
- CocoaPods报错:[!] Unable to find a specification for xxxx
- Unable to find the wrapper "https"错误的解决办法
- unable to find the wrapper "https"错误解决办法
- Unable to find the wrapper "https"错误的解决办法
- Unable to find the wrapper "https"错误的解决办法
- Unable to find vcvarsall.bat的错误的解决办法
- android编程中遇到的Unable to find explicit activity class错误的原因及解决办法
- 【转】Java 线程池的原理与实现
- Android向服务器发送Json格式请求——转载许晓北博客
- The Solution to Leetcode 55 Jump Game
- rman备份(教程与案例)
- 顺序串的操作实现
- Asterisk运行中报“ Unable to find a codec translation path from (g729) to (slin”错误解决办法
- list set 求交集、差集、并集
- maven依赖关系中Scope的作用
- 通过反编译深入理解Java String及intern
- PHP——AJAX 与 PHP
- Quake4之Fx
- android studio 修改应用版本号
- MFC之窗口控件更新重绘相关函数
- js原型与闭包 读书笔记