Asterisk Gateway Interface Development

1 - I can do better 2 - Jury's out 3 - Pretty darn good 4 - Splendiferous 5 - Awesometastic by 0 people | Log in to rate

Ranked #2,701 in Tech & Geek, #65,538 overall

Welcome

There are very few resources online for those wanting assistance in the development of Asterisk Gateway Interface (AGI) applications. On this page, I hope to collate information to assist those wanting to learn more.

Getting Started 

The fountain of VoIP knowledge

One of the best places to start when beginning to write AGI scripts, is to come to terms with VoIP fundamentals. The ultimate resource for all things VoIP is a wonderful online wiki, VoIP-Info, found at http://voip-info.org .

Start by using the search box found on the left, and search for topics such as:
SIP
Channels
IVR
Zaptel
AIX
Asterisk Dialplan
AGI
AGI-PHP

Step 1 : Choose a Frame Work 

um.... not too many options unfortunately

Once you have wrapped your mind around the various VoIP features, terminology and technologies, you will want to choose a platform or framework on which to develop your AGI scripts.

The most widely used, though utterly "obese", framework is the OpenSource project PHP-AGI. This is hosted by SourceForge and makes use of OOP techniques to access Asterisk functionality.

However, if you wish for more control, you might consider writing your own mini-framework, as I did. You can have a look at my single-file function library for PHP I wrote here:
PHP AGI Function Library by Ralfe Poisson.

Links 

Some good web resources

PHP AGI function library by Ralfe Poisson
Here is a simple function library for easy inclusion into your AGI script which gives you easy to use access to Asterisk functionality.
Voip Info wiki
Everything you could possibly want to know about anything VoIP related.
PHP-AGI Frame Work
The most commonly used AGI frame work for PHP.
Asterisk Home Page
Here is where you can find forums, blogs, the actual software to download and other community features around the Asterisk system.

Books 

Here are some books on I highly recommend

Excellent reference for all things Asterisk related. There is also a great appendix for AGI functions, and a whole chapter on how to go about writing AGI scripts. This book has excellent content which you won't easily find online.

Asterisk: The Future of Telephony, 2nd Edition

Asterisk: The Future of Telephony

Additional References 

Here is what Google has found....

AGI-PHP agi->get_data, just get 3 digits
I have my script with AGI-PHP where I get the variables when somebody press the buttons of a remote phone with AGI->get_data. This function have 3. ... Default AGI-PHP agi->get_data, just get 3 digits ...
AGI Maximum execution time exceeded in PHP
extensions_custom.conf [testcontest] exten => 300,1,AGI(/var/www/html/agiscript.php, ${variable}) exten => 300,1,Hangup Tested many examples,
Voip Expert: This is Step by Step upgrade process for my Elastix ...
Step 11: Copy the entire content of the AGI directory into asterisk agi-bin directory. #cd /usr/local/src/a2billing/AGI #cp a2billing.php /var/lib/asterisk/agi-bin/ #cp -Rf /usr/local/src/a2billing/common/lib /var/lib/asterisk/agi-bin/ ...
agi-php agi->get_data, just get 3 digits
i have my script with agi-php where i get the variables when somebody press the buttons of a remote phone with agi->get_data. this function have 3 parameter, the third paramater are the maximum digits than can get, i tested putting 9999 ...

Reader Feedback 

submit

by ralfe

I am currently 23 years old, have a degree in Information Technology and Psychology from the University of KwaZulu-Natal and am currently employed as... (more)
Create a Lens!