Need help testing a new 64-bit G729/G723 codec installer

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

Need help testing a new 64-bit G729/G723 codec installer

Postby Kumba » Thu Mar 29, 2018 1:53 pm

Since I have a pretty homogenous CPU assortment, meaning they're all basically Intel Core2+ architecture with SSE4 instructions, I am asking if anyone wants to help me test this script. It's fairly basic and should work with ViciBox 6, 7 and 8, or any 64-bit Asterisk 1.8 or newer system. It will detect whether you are running Intel or AMD CPU, which architecture, and install the best optimized G729 and G723 codec for you from asterisk.hosting.lv. As a bonus if Asterisk is running it will also load the modules into asterisk for you, otherwise Asterisk will load them automatically when it starts.

Here's how you run it:
Code: Select all
wget http://download.vicidial.com/optional-apps/codec-install.sh
bash codec-install.sh

[edited to allow full url in simple copy/paste - williamconley]

You should see output that looks like this:

--- Asterisk G729/G723 codec installer for AMD and Intel 64-bit CPUs
--- Written by James Pearson at ViciDial Group <jamesp@vicidial.com>
--- Supports Asterisk v.1.8, 11, 12, 13, 14, and 15 only
--- Please make sure you have internet connectivity to download codecs

Found Asterisk 13 - v.13.19.0-vici
Found Intel CPU, Core2 arch or better, with SSE4 instructions
Installing from asterisk.hosting.lv
Downloading G729 - codec_g729-ast130-gcc4-glibc-x86_64-core2-sse4.so... done
Downloading G723 - codec_g723-ast130-gcc4-glibc-x86_64-core2-sse4.so... done
Asterisk not running, skipping module load
Finished



Let me know if it ran OK for you. Thanks!
Kumba
 
Posts: 939
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida

Re: Need help testing a new 64-bit G729/G723 codec installer

Postby sadikhov » Mon Apr 02, 2018 3:10 pm

i have just tried it on my system. it was installed successfully. after restarting asterisk, the codecs are set
sadikhov
 
Posts: 41
Joined: Tue Jan 24, 2012 4:49 am
Location: PHILIPPINES

Re: Need help testing a new 64-bit G729/G723 codec installer

Postby frequency » Fri Apr 06, 2018 3:02 pm

I think it should come as standard in Vicibox 8.1 which i think it will. Any ETA on Vicibox 8.1 release date?
frequency
 
Posts: 117
Joined: Mon Jun 13, 2016 11:18 am

Re: Need help testing a new 64-bit G729/G723 codec installer

Postby williamconley » Fri Apr 06, 2018 5:23 pm

2CPU/8 core Intel

ViciBox v.7.0.4-170113

Code: Select all
# dmidecode | grep Product
Product Name: PowerEdge 2950
# cat /proc/cpuinfo | grep 'model name'
model name      : Intel(R) Xeon(R) CPU           E5440  @ 2.83GHz


Code: Select all
# bash codec-install.sh

---  Asterisk G729/G723 codec installer for AMD and Intel 64-bit CPUs
---  Written by James Pearson at ViciDial Group <jamesp@vicidial.com>
---  Supports Asterisk v.1.8, 11, 12, 13, 14, and 15 only
---  Please make sure you have internet connectivity to download codecs

  Found Asterisk 11 - v.11.25.1-vici
  Found Intel CPU, Core2 arch or better, with SSE4 instructions
  Installing from asterisk.hosting.lv
    Downloading G729 - codec_g729-ast110-gcc4-glibc-x86_64-core2-sse4.so... done
    Downloading G723 - codec_g723-ast110-gcc4-glibc-x86_64-core2-sse4.so... done

  Loading codec modules into asterisk PID 1571...
    Loading module codec_g729.so... done
    Loading module codec_g723.so... done
  Finished


Did not load the module automatically. But did succeed after a reboot.
Code: Select all
# asterisk -rx "core show translation"
         Translation times between formats (in microseconds) for one second of data
          Source Format (Rows) Destination Format (Columns)

            gsm  ulaw  alaw  g726 adpcm  slin lpc10 speex speex16  ilbc g726aal2  g722 slin16 testlaw speex32 slin12 slin24 slin32 slin44 slin48 slin96 slin192
      gsm     - 15000 15000 15000 15000  9000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
     ulaw 15000     -  9150 15000 15000  9000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
     alaw 15000  9150     - 15000 15000  9000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
     g726 15000 15000 15000     - 15000  9000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
    adpcm 15000 15000 15000 15000     -  9000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
     slin  6000  6000  6000  6000  6000     -  6000  6000   14000  6000     6000  8250   8000    6000   14000   8000   8000   8000   8000   8000   8000    8000
    lpc10 15000 15000 15000 15000 15000  9000     - 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
    speex 15000 15000 15000 15000 15000  9000 15000     -   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
  speex16 23500 23500 23500 23500 23500 17500 23500 23500       - 23500    23500 15000   9000   23500   23000  17500  17000  17000  17000  17000  17000   17000
     ilbc 15000 15000 15000 15000 15000  9000 15000 15000   23000     -    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
 g726aal2 15000 15000 15000 15000 15000  9000 15000 15000   23000 15000        - 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
     g722 15600 15600 15600 15600 15600  9600 15600 15600   15000 15600    15600     -   9000   15600   23000  17500  17000  17000  17000  17000  17000   17000
   slin16 14500 14500 14500 14500 14500  8500 14500 14500    6000 14500    14500  6000      -   14500   14000   8500   8000   8000   8000   8000   8000    8000
  testlaw 15000 15000 15000 15000 15000  9000 15000 15000   23000 15000    15000 17250  17000       -   23000  17000  17000  17000  17000  17000  17000   17000
  speex32 23500 23500 23500 23500 23500 17500 23500 23500   23500 23500    23500 23500  17500   23500       -  17500  17500   9000  17000  17000  17000   17000
   slin12 14500 14500 14500 14500 14500  8500 14500 14500   14000 14500    14500 14000   8000   14500   14000      -   8000   8000   8000   8000   8000    8000
   slin24 14500 14500 14500 14500 14500  8500 14500 14500   14500 14500    14500 14500   8500   14500   14000   8500      -   8000   8000   8000   8000    8000
   slin32 14500 14500 14500 14500 14500  8500 14500 14500   14500 14500    14500 14500   8500   14500    6000   8500   8500      -   8000   8000   8000    8000
   slin44 14500 14500 14500 14500 14500  8500 14500 14500   14500 14500    14500 14500   8500   14500   14500   8500   8500   8500      -   8000   8000    8000
   slin48 14500 14500 14500 14500 14500  8500 14500 14500   14500 14500    14500 14500   8500   14500   14500   8500   8500   8500   8500      -   8000    8000
   slin96 14500 14500 14500 14500 14500  8500 14500 14500   14500 14500    14500 14500   8500   14500   14500   8500   8500   8500   8500   8500      -    8000
  slin192 14500 14500 14500 14500 14500  8500 14500 14500   14500 14500    14500 14500   8500   14500   14500   8500   8500   8500   8500   8500   8500       -


After reboot
Code: Select all
# asterisk -rx "core show translation"
         Translation times between formats (in microseconds) for one second of data
          Source Format (Rows) Destination Format (Columns)

           g723   gsm  ulaw  alaw  g726 adpcm  slin lpc10  g729 speex speex16  ilbc g726aal2  g722 slin16 testlaw speex32 slin12 slin24 slin32 slin44 slin48 slin96 slin192
     g723     - 15000 15000 15000 15000 15000  9000 15000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
      gsm 15000     - 15000 15000 15000 15000  9000 15000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
     ulaw 15000 15000     -  9150 15000 15000  9000 15000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
     alaw 15000 15000  9150     - 15000 15000  9000 15000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
     g726 15000 15000 15000 15000     - 15000  9000 15000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
    adpcm 15000 15000 15000 15000 15000     -  9000 15000 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
     slin  6000  6000  6000  6000  6000  6000     -  6000  6000  6000   14000  6000     6000  8250   8000    6000   14000   8000   8000   8000   8000   8000   8000    8000
    lpc10 15000 15000 15000 15000 15000 15000  9000     - 15000 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
     g729 15000 15000 15000 15000 15000 15000  9000 15000     - 15000   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
    speex 15000 15000 15000 15000 15000 15000  9000 15000 15000     -   23000 15000    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
  speex16 23500 23500 23500 23500 23500 23500 17500 23500 23500 23500       - 23500    23500 15000   9000   23500   23000  17500  17000  17000  17000  17000  17000   17000
     ilbc 15000 15000 15000 15000 15000 15000  9000 15000 15000 15000   23000     -    15000 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
 g726aal2 15000 15000 15000 15000 15000 15000  9000 15000 15000 15000   23000 15000        - 17250  17000   15000   23000  17000  17000  17000  17000  17000  17000   17000
     g722 15600 15600 15600 15600 15600 15600  9600 15600 15600 15600   15000 15600    15600     -   9000   15600   23000  17500  17000  17000  17000  17000  17000   17000
   slin16 14500 14500 14500 14500 14500 14500  8500 14500 14500 14500    6000 14500    14500  6000      -   14500   14000   8500   8000   8000   8000   8000   8000    8000
  testlaw 15000 15000 15000 15000 15000 15000  9000 15000 15000 15000   23000 15000    15000 17250  17000       -   23000  17000  17000  17000  17000  17000  17000   17000
  speex32 23500 23500 23500 23500 23500 23500 17500 23500 23500 23500   23500 23500    23500 23500  17500   23500       -  17500  17500   9000  17000  17000  17000   17000
   slin12 14500 14500 14500 14500 14500 14500  8500 14500 14500 14500   14000 14500    14500 14000   8000   14500   14000      -   8000   8000   8000   8000   8000    8000
   slin24 14500 14500 14500 14500 14500 14500  8500 14500 14500 14500   14500 14500    14500 14500   8500   14500   14000   8500      -   8000   8000   8000   8000    8000
   slin32 14500 14500 14500 14500 14500 14500  8500 14500 14500 14500   14500 14500    14500 14500   8500   14500    6000   8500   8500      -   8000   8000   8000    8000
   slin44 14500 14500 14500 14500 14500 14500  8500 14500 14500 14500   14500 14500    14500 14500   8500   14500   14500   8500   8500   8500      -   8000   8000    8000
   slin48 14500 14500 14500 14500 14500 14500  8500 14500 14500 14500   14500 14500    14500 14500   8500   14500   14500   8500   8500   8500   8500      -   8000    8000
   slin96 14500 14500 14500 14500 14500 14500  8500 14500 14500 14500   14500 14500    14500 14500   8500   14500   14500   8500   8500   8500   8500   8500      -    8000
  slin192 14500 14500 14500 14500 14500 14500  8500 14500 14500 14500   14500 14500    14500 14500   8500   14500   14500   8500   8500   8500   8500   8500   8500       -
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Need help testing a new 64-bit G729/G723 codec installer

Postby vkad » Thu Apr 12, 2018 3:01 am

Kumba wrote:Since I have a pretty homogenous CPU assortment, meaning they're all basically Intel Core2+ architecture with SSE4 instructions, I am asking if anyone wants to help me test this script. It's fairly basic and should work with ViciBox 6, 7 and 8, or any 64-bit Asterisk 1.8 or newer system. It will detect whether you are running Intel or AMD CPU, which architecture, and install the best optimized G729 and G723 codec for you from asterisk.hosting.lv. As a bonus if Asterisk is running it will also load the modules into asterisk for you, otherwise Asterisk will load them automatically when it starts.

Here's how you run it:
Code: Select all
wget http://download.vicidial.com/optional-apps/codec-install.sh
bash codec-install.sh

[edited to allow full url in simple copy/paste - williamconley]

You should see output that looks like this:

--- Asterisk G729/G723 codec installer for AMD and Intel 64-bit CPUs
--- Written by James Pearson at ViciDial Group <jamesp@vicidial.com>
--- Supports Asterisk v.1.8, 11, 12, 13, 14, and 15 only
--- Please make sure you have internet connectivity to download codecs

Found Asterisk 13 - v.13.19.0-vici
Found Intel CPU, Core2 arch or better, with SSE4 instructions
Installing from asterisk.hosting.lv
Downloading G729 - codec_g729-ast130-gcc4-glibc-x86_64-core2-sse4.so... done
Downloading G723 - codec_g723-ast130-gcc4-glibc-x86_64-core2-sse4.so... done
Asterisk not running, skipping module load
Finished



Let me know if it ran OK for you. Thanks!



Can you please do OPUS as that is touted to be a lot better than g729....
Vicibox 8.0.1 (Asterisk 13.21.0-vici) + Remote WebRTC Agents
Version: 2.14b0.5 | SVN: 2990 | DB Version: 1548
1 x DB + Web + Dialer - E3 1270 v6 + 16gb ddr4 + 256gb SSD
2 x Additional Dialer - E3 1270 v6 + 8gb ddr4 + 256gb SSD
vkad
 
Posts: 208
Joined: Thu Nov 09, 2017 3:46 am

Re: Need help testing a new 64-bit G729/G723 codec installer

Postby Kumba » Fri Apr 13, 2018 6:02 pm

vkad wrote:Can you please do OPUS as that is touted to be a lot better than g729....


Who or what carrier supports Opus? Plus I think that's part of core Asterisk not really an add-on like the G729/G723 codecs are.


frequency wrote:I think it should come as standard in Vicibox 8.1 which i think it will. Any ETA on Vicibox 8.1 release date?


Yes, this was specifically written on my current ViciBox v.8.1 test build. There is also an integrated IPSet firewall blocking using the IP address' from www.voipbl.org built into ViciBox v.8.1. That's already been tested and is live in production.


williamconley wrote:Did not load the module automatically. But did succeed after a reboot.


I'll look at module loading to see why it wasn't coming up correctly. But it loading after reboot is good and in ViciBox v.8.1 this is ran during install which is followed up by a reboot.
Kumba
 
Posts: 939
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida

Re: Need help testing a new 64-bit G729/G723 codec installer

Postby williamconley » Fri Apr 13, 2018 6:09 pm

Kumba wrote:
williamconley wrote:Did not load the module automatically. But did succeed after a reboot.


I'll look at module loading to see why it wasn't coming up correctly. But it loading after reboot is good and in ViciBox v.8.1 this is ran during install which is followed up by a reboot.


I'm quite happy with it needing a reboot. Doesn't bother me a bit.

Off topic: Have you considered adding Dynamic Good Guys-type "easy add for authorized IP" to the installer (that would save us some install time ...)? Whitelisting is the best policy, and having an "easy add" method for newly authorized IPs (in a web interface) is rather popular.

We'll likely be updating it soon for a prettier version and possibly limit the ports that are opened for "GOOD" IPs instead of just opening the IP entirely. Both of those are already built, but not together in the same build yet.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Need help testing a new 64-bit G729/G723 codec installer

Postby Kumba » Wed Apr 18, 2018 3:03 pm

williamconley wrote:Off topic: Have you considered adding Dynamic Good Guys-type "easy add for authorized IP" to the installer (that would save us some install time ...)? Whitelisting is the best policy, and having an "easy add" method for newly authorized IPs (in a web interface) is rather popular.


Yes but there are some things I need to work out on the implementation. It will be using IPSets similar to how I did the VoIP Block List integration here: viewtopic.php?f=8&t=37716

I'm still working on how I will implement it but my current incarnation is to scrape the IPs of successful agent logins once per minute and allow them to connect to the dialers. There's still some design ideas I'm kicking around on how to best attack it and make it maintainable from ViciDial.
Kumba
 
Posts: 939
Joined: Tue Oct 16, 2007 11:44 pm
Location: Florida

Re: Need help testing a new 64-bit G729/G723 codec installer

Postby williamconley » Wed Apr 18, 2018 3:36 pm

Lemme know if you need a test-dummy or Solution Artist. I've been known to find hidden pathways. 8-)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 42 guests