การติดตั้ง codec บน elastix 2.0.x
ผมติดตั้งบน hyper-v ครับ
[root@elastix ~]# cat /proc/cpuinfo
processor : 0vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
stepping : 10
cpu MHz : 2478.158
cache size : 6144 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 6
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc up pni ssse3 cx16 sse4_1 lahf_lmbogomips : 4956.31
[root@elastix ~]# asterisk -rvvvvvvvvvvvv
Asterisk 1.6.2.13, Copyright (C) 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
wget
http://asterisk.hosting.lv/bin162/codec ... entium4.sowget
http://asterisk.hosting.lv/bin162/codec ... entium4.socp codec_g723-ast16-gcc4-glibc-pentium4.so codec_g723.so
cp codec_g729-ast16-gcc4-glibc-pentium4.so codec_g729.so
mv codec_g723.so /usr/lib/asterisk/modules/
mv codec_g729.so /usr/lib/asterisk/modules/
asterisk -rvvvvvvvvvv
elastix*CLI> module load codec_g729.so
Loaded codec_g729.so
== Registered translator 'g729tolin' from format g729 to slin, cost 1000
== Registered translator 'lintog729' from format slin to g729, cost 3999
Loaded codec_g729.so => (g729 Coder/Decoder, based on IPP)
elastix*CLI> module load codec_g723.so
Loaded codec_g723.so
== Parsing '/etc/asterisk/codecs.conf': == Found
== Registered translator 'g723tolin' from format g723 to slin, cost 1000
== Registered translator 'lintog723' from format slin to g723, cost 6999
Loaded codec_g723.so => (g723 Coder/Decoder, based on IPP)
elastix*CLI> core show translation
Translation times between formats (in microseconds) for one second of data
Source Format (Rows) Destination Format (Columns)
g723 gsm ulaw alaw g726aal2 adpcm slin lpc10 g729 speex ilbc g726 g722 siren7 siren14 slin16
g723 - 4000 1001 1001 4000 1001 1000 3999 4999 14998 - 3999 2000 - - 3000
gsm 7999 - 1001 1001 4000 1001 1000 3999 4999 14998 - 3999 2000 - - 3000
ulaw 7000 3001 - 1 3001 2 1 3000 4000 13999 - 3000 1001 - - 2001
alaw 7000 3001 1 - 3001 2 1 3000 4000 13999 - 3000 1001 - - 2001
g726aal2 8999 5000 2001 2001 - 2001 2000 4999 5999 15998 - 4999 3000 - - 4000
adpcm 7000 3001 2 2 3001 - 1 3000 4000 13999 - 3000 1001 - - 2001
slin 6999 3000 1 1 3000 1 - 2999 3999 13998 - 2999 1000 - - 2000
lpc10 8999 5000 2001 2001 5000 2001 2000 - 5999 15998 - 4999 3000 - - 4000
g729 7999 4000 1001 1001 4000 1001 1000 3999 - 14998 - 3999 2000 - - 3000
speex 8998 4999 2000 2000 4999 2000 1999 4998 5998 - - 4998 2999 - - 3999
ilbc - - - - - - - - - - - - - - - -
g726 7999 4000 1001 1001 4000 1001 1000 3999 4999 14998 - - 2000 - - 3000
g722 7999 4000 1001 1001 4000 1001 1000 3999 4999 14998 - 3999 - - - 1000
siren7 - - - - - - - - - - - - - - - -
siren14 - - - - - - - - - - - - - - - -
slin16 8999 5000 2001 2001 5000 2001 2000 4999 5999 15998 - 4999 1000 - - -
-- Remote UNIX connection
-- Remote UNIX connection disconnected