Subscribe By RSS or Email

Agispeedy - faster than AGI and performance improved 10 times comparing with AGI.

Print PDF

agispeedy_workflow

The Agispeedy is robust implemention of AGI in asterisk. Agispeedy is inconceivable faster than AGI. The result of test shows that by using Agispeedy in asterisk, the performance of system would be improved more than 10 times comparing with AGI.

Agispeedy Features:

* implemention of AGI(FastAGI) over TCP Sockets
* Work in Stabilize Prefork Mode and Written by Pure Perl.
* Easy to Maintain, unlike FastAGI(Dynamic Load AGI no need restart Agispeedy services)
* Providing possibility of running AGI on a remote server(Inheriting the FastAGI)
* Fast Database Connect(system can hook database connection in child process)

agispeedy_cluster

Table of asterisk extend tech:

name

speed

reliability

cluster

asterisk module

top faster

easy crash

no

agi

slowly

strong

no

fastagi

faster

maybe crash

yes

agispeedy

faster

strong

yes

Get Agispeedy

get source files from SVN:
>svn export http://darwin.freeiris.org/svn/freeiris/addition/agispeedy/

Installation

Under the agispeedy, install agispeedy by run the script: ./install.pl You also can add -–prefix=path to other directory, for example, you can add agispeedy to system boot by copying contrib/agispeedy.init.centos to /etc/init.d/

please note: sudo as root

>cd agispeedy
>chmod +x install.pl
>./install.pl

  [RESPONSE] Agispeedy Installer
    [INPUT] continue to install agispeedy to /agispeedy (yes/no)?yes
......
  [RESPONSE] set /etc/agispeedy
  [RESPONSE] set agispeedy services

Command Line

More parameters to run AGIspeedy:

-?, –help Display this help and exit.
-V, –version Output version information and exit.
-v, –verbose Display more messages on screen(debug level 4).
-q, –quiet Start Agispeedy as background.
-c, –config=path Specify Config files directory.
-L, –log=path Specify Log files directory.
-l, –lib=lib Specify Agispeedy include directory.
-P, –pid=path Specify pid file directory.
-a, –var=path Specify Agispeedy script modules directory.

run DEBUG mode:
./agispeedy –verbose

will output all messages from agispeedy services

Run Normal Commandline:
./agispeedy –quiet

agispeedy will quiet and slience run in background and write messages to log_files.

run Services:
/etc/init.d/agispeedy start

If you are not use redhat, you have to manually install init scripts.

checking process:
>ps ax|grep agispeedy
32424 ?        Ss     0:00 /usr/bin/perl /agispeedy/bin/agispeedy -q -c /etc/agispeedy
32425 ?        S      0:00 /usr/bin/perl /agispeedy/bin/agispeedy -q -c /etc/agispeedy
32426 ?        S      0:00 /usr/bin/perl /agispeedy/bin/agispeedy -q -c /etc/agispeedy
32427 ?        S      0:00 /usr/bin/perl /agispeedy/bin/agispeedy -q -c /etc/agispeedy
32428 ?        S      0:00 /usr/bin/perl /agispeedy/bin/agispeedy -q -c /etc/agispeedy
32430 ?        S      0:00 /usr/bin/perl /agispeedy/bin/agispeedy -q -c /etc/agispeedy
32431 ?        S      0:00 /usr/bin/perl /agispeedy/bin/agispeedy -q -c /etc/agispeedy
 
how does agispeedy work
example : 
exten => 123456,n,AGI(agi://127.0.0.1/demo_dynamic?number=7890)

* asterisk send socket request scriptname demo_dynamic with args
* agispeedy get one child to response asterisk
* child find demo_dynamic static module in memory
* child find demo_dynamic.dam in /agispeedy/var/
* child do args parse and push to hash table
* child synatx checking and complie demo_dynamic.dam
* child run entry function demo_dynamic()
* child exit

Add comment


Security code
Refresh

  • Latest
  • Polls
  • Comments

VoIP Today Store

A400 FXO & FXS $869.00
A108 8-port T1/E1/J1 $2,406.00

Interviews with VoIP Masters

Since the launch of VoIP Today, we had a special interviews done with the VoIP masters in the world.

more
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow
  • An Image Slideshow

Voip Today - Twitter