ติดตั้ง Codec G.723 และ G.729 ฟรีโดยไม่ต้องซื้อ

Elastix IP Pbx

Moderator: jubjang

Re: ติดตั้ง Codec G.723 และ G.729 ฟรีโดยไม่ต้องซื้อ

โพสต์โดย tiger7th » 24 มี.ค. 2011 11:33

voip*CLI> module load codec_g723.so
Unable to load module codec_g723.so
Command 'module load codec_g723.so' failed.
voip*CLI> module load codec_g729.so
Unable to load module codec_g729.so
Command 'module load codec_g729.so' failed.

ผมจะลองถอยไปใช้ Elastix v1.5-1.6 อย่างกระทู้ข้างบนดูก่อนครับ
tiger7th
Bronz Member
 
โพสต์: 14
ลงทะเบียนเมื่อ: 17 ก.พ. 2011 13:11

Re: ติดตั้ง Codec G.723 และ G.729 ฟรีโดยไม่ต้องซื้อ

โพสต์โดย tiger7th » 24 มี.ค. 2011 11:44

elastix*CLI> module load codec_g729.so
== Registered translator 'g729tolin' from format g729 to slin, cost 1
== Registered translator 'lintog729' from format slin to g729, cost 3
Loaded codec_g729.so => (g729 Coder/Decoder, based on IPP)
elastix*CLI> module load codec_g723.so
== Parsing '/etc/asterisk/codecs.conf': Found
== Registered translator 'g723tolin' from format g723 to slin, cost 1
== Registered translator 'lintog723' from format slin to g723, cost 6


ได้เลยครับ
tiger7th
Bronz Member
 
โพสต์: 14
ลงทะเบียนเมื่อ: 17 ก.พ. 2011 13:11

Re: ติดตั้ง Codec G.723 และ G.729 ฟรีโดยไม่ต้องซื้อ

โพสต์โดย nuiz » 24 มี.ค. 2011 17:16

Elastix 2.x นี่ติดตั้ง Codec G.723, G.729 ได้แน่นอนครับ หลายๆคนทำสำเร็จแล้ว

1. คือผมไม่รู้ว่าคุณใช้ไฟล์ไหน ดาวน์โหลดไฟล์ไหนมาใช้งาน ช่วยก๊อบลิ้งค์มาให้หน่อยได้ป่าวครับ ว่าตอน Elastix 2.x ใช้ codec ไฟล์ไหน และ Elastix 1.5 ใช้ codec ไฟล์ไหน ก๊อบลิ้งค์มาเลยนะครับ เพราะถ้าก๊อบมาแต่ชื่อไฟล์จะไม่รู้ว่ามันเป็นของ Asterisk เวอร์ชั่นอะไร โดยเฉพาะเวอร์ชั่น 1.6 ซึ่งมันมีทั้ง 1.6.0, 1.6.1 แล้วก็ 1.6.2

2. Elastix 1.5 นี่ใช้ Asterisk เวอร์ชั่นไรครับ

3. ที่ผมสอบถามไปครั้งก่อนว่าตอนพิมพ์ /proc/pcuinfo มันขึ้นแค่ process:0 หรือว่ามี processid:1, processid:2 ด้วย รบกวนตอบด้วยครับ
** หากมีปัญหากับอุปกรณ์ที่ซื้อมาเองหรือบริการที่ทำขึ้นมาเอง ให้โพสต์ถามในเว็บบอร์ดนี้นะครับ **
** งานเร่งด่วนติดต่อว่าจ้างที่เบอร์ 08-5161-9439 อีเมล์ iamaladin@gmail.com ไลน์ NuizVoip ครับ **
nuiz
Diamond Member
 
โพสต์: 6995
ลงทะเบียนเมื่อ: 24 มี.ค. 2010 09:33

Re: ติดตั้ง Codec G.723 และ G.729 ฟรีโดยไม่ต้องซื้อ

โพสต์โดย tiger7th » 25 มี.ค. 2011 08:45

ข้อแรกครับ
http://asterisk.hosting.lv/bin162/codec ... entium4.so
http://asterisk.hosting.lv/bin162/codec ... entium4.so

ข้อสองเดี๋ยวขอเปิดเครื่องก่อน

ข้อสามครับ
ผมติดตั้งบน VmwareESX ครับผมแล้วให้ CPU แค่1 processor ครับผม
tiger7th
Bronz Member
 
โพสต์: 14
ลงทะเบียนเมื่อ: 17 ก.พ. 2011 13:11

Re: ติดตั้ง Codec G.723 และ G.729 ฟรีโดยไม่ต้องซื้อ

โพสต์โดย zip » 28 มี.ค. 2011 08:14

สอบถามนิดนึงครับ พอดีติดปัญหาตอนสั่ง load module นะครับ มันฟ้องว่า "Disconnected from Asterisk server" นะครับ

Connected to Asterisk 1.6.2.10 currently running on ippbxvg0 (pid = 2618)
Verbosity is at least 3
ippbxvg0*CLI> module load codec_g723.so
ippbxvg0*CLI>
Disconnected from Asterisk server
[root@ippbxvg0 ~]#


หลังจากนั้นพอพิมพ์คำสั้ง asterisk -r ก็เข้าไมได้ครับ

หรือต้องตั้งค่าให้เชื่อมต่อกับ asterisk server ก่อนหรอครับ
ขอบคุณมากครั้บสำหรับคำแนะนำ
zip
Gold Member
 
โพสต์: 62
ลงทะเบียนเมื่อ: 18 ธ.ค. 2010 14:47

Re: ติดตั้ง Codec G.723 และ G.729 ฟรีโดยไม่ต้องซื้อ

โพสต์โดย nuiz » 28 มี.ค. 2011 10:39

ที่มันหลุดเป็นเพราะว่าคอนเน็คกับ Asterisk ไม่ได้ครับ เป็นเพราะว่า Asterisk ดับไปแล้ว อาการแบบนี้ไม่เคยเจอเลยครับ เคสแรกจริงๆ
ต้องเอา message ใน log file ของ Asterisk มาดูครับ

cd /var/log/asterisk

ในนั้นมีไฟล์ messages หรือว่า full อ่ะคับ สมมติว่ามีไฟล์ full หล่ะกัน พิมพ์คำสั่ง

tail -f /var/log/asterisk/full

แล้วล๊อกอินเข้า server อีก session นึง อันนี้สตาร์ท Asterisk แล้วโหลด codec ใหม่ครับ ดูว่ามันจะมีข้อความอะไรโชว์ในไฟล์ full หรือเปล่า ก๊อบข้อความโพสต์มาครับ
** หากมีปัญหากับอุปกรณ์ที่ซื้อมาเองหรือบริการที่ทำขึ้นมาเอง ให้โพสต์ถามในเว็บบอร์ดนี้นะครับ **
** งานเร่งด่วนติดต่อว่าจ้างที่เบอร์ 08-5161-9439 อีเมล์ iamaladin@gmail.com ไลน์ NuizVoip ครับ **
nuiz
Diamond Member
 
โพสต์: 6995
ลงทะเบียนเมื่อ: 24 มี.ค. 2010 09:33

Re: ติดตั้ง Codec G.723 และ G.729 ฟรีโดยไม่ต้องซื้อ

โพสต์โดย smuchcha » 29 มิ.ย. 2011 00:11

เรียนคุณ zip
อาการที่คุณเจอคือคุณ load module ของ codec ผิด version แล้วทำให้ระบบมีปัญหาครับ
วิธีแก้ไข คือ
1. stop asterisk ครับ
2. เข้าไปลบ file codec_g7xxx ออกจาก ห้อง /usr/lib/asterisk/module ครับ
3. start asterisk ครับ

น่าจะแก้ไขได้ครับ
smuchcha
Silver Member
 
โพสต์: 43
ลงทะเบียนเมื่อ: 27 ส.ค. 2010 10:36

Re: ติดตั้ง Codec G.723 และ G.729 ฟรีโดยไม่ต้องซื้อ

โพสต์โดย smuchcha » 30 มิ.ย. 2011 13:12

การติดตั้ง codec บน elastix 2.0.x
ผมติดตั้งบน hyper-v ครับ
[root@elastix ~]# cat /proc/cpuinfo
processor : 0
vendor_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_lm
bogomips : 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.so
wget http://asterisk.hosting.lv/bin162/codec ... entium4.so

cp 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
smuchcha
Silver Member
 
โพสต์: 43
ลงทะเบียนเมื่อ: 27 ส.ค. 2010 10:36

Re: ติดตั้ง Codec G.723 และ G.729 ฟรีโดยไม่ต้องซื้อ

โพสต์โดย nakonklang » 17 ต.ค. 2013 14:20

Asterisk 1.8.20.0 built by palosanto @ rpmbuild64-2.elastix.palosanto.com on a x86_64 running Linux on 2013-01-15 15:00:03 UTC

ใช้ CPU รุ่นนี้ ติดตั้ง Codec G.723 และ G.729 ตัวไหนครับ

โค้ด: เลือกทั้งหมด
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 16
model name      : AMD A10-5800K APU with Radeon(tm) HD Graphics
stepping        : 1
cpu MHz         : 3793.527
cache size      : 2048 KB
physical id     : 1
siblings        : 4
core id         : 0
cpu cores       : 2
apicid          : 16
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good constant_tsc nonstop_tsc cpb pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 nodeid_msr tbm topoext perfctr_core perfctr_nb
bogomips        : 7587.05
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate [8] [9] [10]

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 16
model name      : AMD A10-5800K APU with Radeon(tm) HD Graphics
stepping        : 1
cpu MHz         : 3793.527
cache size      : 2048 KB
physical id     : 1
siblings        : 4
core id         : 1
cpu cores       : 2
apicid          : 17
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good constant_tsc nonstop_tsc cpb pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 nodeid_msr tbm topoext perfctr_core perfctr_nb
bogomips        : 7586.14
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate [8] [9] [10]

processor       : 2
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 16
model name      : AMD A10-5800K APU with Radeon(tm) HD Graphics
stepping        : 1
cpu MHz         : 3793.527
cache size      : 2048 KB
physical id     : 1
siblings        : 4
core id         : 2
cpu cores       : 2
apicid          : 18
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good constant_tsc nonstop_tsc cpb pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 nodeid_msr tbm topoext perfctr_core perfctr_nb
bogomips        : 7586.17
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate [8] [9] [10]

processor       : 3
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 16
model name      : AMD A10-5800K APU with Radeon(tm) HD Graphics
stepping        : 1
cpu MHz         : 3793.527
cache size      : 2048 KB
physical id     : 1
siblings        : 4
core id         : 3
cpu cores       : 2
apicid          : 19
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good constant_tsc nonstop_tsc cpb pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 nodeid_msr tbm topoext perfctr_core perfctr_nb
bogomips        : 7586.20
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate [8] [9] [10]
nakonklang
Bronz Member
 
โพสต์: 13
ลงทะเบียนเมื่อ: 25 ก.พ. 2013 18:40

Re: ติดตั้ง Codec G.723 และ G.729 ฟรีโดยไม่ต้องซื้อ

โพสต์โดย nuiz » 17 ต.ค. 2013 16:01

ลง Elastix แบบ x86_64
เป็น Asterisk 1.8
CPU เป็น AMD แต่มี sse4

ลองตัวนี้ดูก่อนครับ
ast18-gcc4-glibc-x86_64-core2-sse4.so

ถ้าไม่ได้ก็ต้องตัวนี้
ast18-gcc4-glibc-x86_64-pentium4.so
** หากมีปัญหากับอุปกรณ์ที่ซื้อมาเองหรือบริการที่ทำขึ้นมาเอง ให้โพสต์ถามในเว็บบอร์ดนี้นะครับ **
** งานเร่งด่วนติดต่อว่าจ้างที่เบอร์ 08-5161-9439 อีเมล์ iamaladin@gmail.com ไลน์ NuizVoip ครับ **
nuiz
Diamond Member
 
โพสต์: 6995
ลงทะเบียนเมื่อ: 24 มี.ค. 2010 09:33

ย้อนกลับ

ย้อนกลับไปยัง Elastix - Unified Communications Software

ผู้ใช้งานขณะนี้

กำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และ บุคคลทั่วไป 2 ท่าน

cron