-- 作者:PABX
-- 发布时间:2016/1/17 21:13:20
-- asterisk G729 troubleshooting
- Noise or metalic sound with codec_g723
Configure /etc/asterisk/codecs.conf [g723] sendrate=63 or 53 as described at the top of this page.
- Distorted sound
Disable VAD and CNG in phone and/or your VOIP provider.
- show translation - codec is not loaded
Bump asterisk verbosity level with -vv and watch for messages right after \'loading module codec_g729...\'
- loader.c... /usr/lib/asterisk/modules/codec_g72...: cannot restore segment prot after reloc: Permission denied
Execute: $ chcon -t textrel_shlib_t /usr/lib/asterisk/modules/codec_g72[39]*.so This happens when SELinux is enabled and Asterisk process cannot load the codec because of ELF TEXTREL in shared library. This is how IPP works and that is fine.
- loader.c... /usr/lib/asterisk/modules/codec_g72...: cannot enable executable stack as shared object requires: Permission denied
Execute: $ execstack -c /usr/lib/asterisk/modules/codec_g72[39]*.so
- Error loading module codec_g72...: cannot open shared object file: No such file or directory
Check $ ldd codec_g729.so $ strace -o trace.log -efile -f asterisk send ldd output and trace.log file to Asterisk G.729 Google group.
- Error loading module codec_g72...: wrong ELF class: ELFCLASS32
Use x86_64 binaries because you\'re running 64-bit OS.
- $ ldd codec_g729.so: not a dynamic executable
You are running 32-bit, see Notes - note #2
- Asterisk crashing at startup
If Pentium4 codec is not working, try -no-sse builds, try Pentium3. Try ICC builds. Doesn\'t work - try Pentium and Debug builds.
- Asterisk still crashing at startup
Compile asterisk with CFLAGS=-g Run asterisk in gdb (with original and -debug version of the codec): $ gdb /usr/sbin/asterisk (gdb) r -cvvv when it crashes do: (gdb) set disassembly-flavor intel (32-bit gdb 6.x) disassemble $eip $eip+20 (32-bit gdb 7.x) disassemble $eip, $eip+20 (64-bit gdb 6.x) disassemble $rip $rip+20 (64-bit gdb 7.x) disassemble $rip, $rip+20 (gdb) info registers (gdb) info threads (gdb) bt (gdb) l (gdb) q Send an output to Asterisk G.729 Google group together with the result of \'cat /proc/cpuinfo\'.
- Why these Illegal instruction errors?
For in-depth technical information read http://gcc.gnu.org/PR32893 and http://bugs.gentoo.org/show_bug.cgi?id=151394.
|