Asterisk运行中报“ Unable to find a codec translation path from (g729) to (slin”错误解决办法
2017-05-11 10:09
435 查看
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/module wget http://asterisk.hosting.lv/bin/codec_g729-ast110-gcc4-glibc-x86_64-pentium4.so mv 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
相关文章推荐
- unable to find valid certification path to requested target 我的解决办法
- "Unable to find record. No key specified"错误分析及解决办法
- linux之Unable to find the ncurses libraries or the required header files.错误解决办法
- 错误 Unable to find vcvarsall.bat 的终极无敌最完美的解决办法
- unable to find the wrapper "https"错误解决办法
- android编程中遇到的Unable to find explicit activity class错误的原因及解决办法
- Unable to find vcvarsall.bat的错误的解决办法
- Unable to find the wrapper "https"错误的解决办法
- 解决错误:unable to find valid certification path to requested target
- unable to find valid certification path to requested target或Certificate chaining error的解决办法
- 安装Adobe Flash CS5出错的解决办法(Exit Code: 7 ERROR: Unable to get root from inChildPath)
- unable to find valid certification path to requested target 的简单解决办法
- 通过findViewById()方法从layout中获取view并进行相应的转换时提示:"Cannot cast from View to AutoCompleteTextView"的解决办法!(转+自己错误)
- linux之Unable to find the ncurses libraries or the required header files.错误解决办法
- MAVEN ERROR: unable to find valid certification path to requested target 解决办法
- 举例说明关于android编程中遇到的Unable to find explicit activity class错误的原因及解决办法
- Unable to find the wrapper "https"错误的解决办法
- Unable to find a javac compiler错误之解决办法
- Unable to find the wrapper "https"错误的解决办法
- JTAG“Unable to find target”错误解决办法