[asterisk-users] AGI tutorials

Steve Edwards asterisk.org at sedwards.com
Mon Jul 17 19:32:39 MST 2006


Here is an AGI I wrote -- whether its a good example I'll leave to your 
judgement

 	http://www.sedwards.com/agi-c-example.tar.gz

The AGI, block-ani, reads channel variables, looks up stuff in a MySQL 
database, and fiddles with the PRIORITY.

A big stumbling block for me was realizing that all interaction between 
Asterisk and the AGI is via stdin/stdout. I read it, I understood it, but 
it didn't really sink in until I was trying to debug the agi by lamely 
peppering it with printf's.

Also, the Asterisk command "agi debug" is your new best friend :)

On Wed, 12 Jul 2006, Rizwan Hisham wrote:

> Thanx for the tips guys. I need one more favour. can anybody tell me where
> to find help for writing AGI scripts in C language. I have read the pdf book
> called Asterisk TFOT, but it explains AGI scripting in languages other than
> C. I feel comfortable using C language, so i didnt understand the concepts
> fully. Anybody who knows a good source of AGI scripting in C, plz share
>
> On 7/11/06, Kai Ober <kast.asterisk at gmx.de> wrote:
>> 
>> Rizwan Hisham schrieb:
>> > Anybody who knows a good source of AGI tutorials on the net? plz share
>> >
>> try one of the mirrors and then the pages on AGI,
>> http://www.asteriskdocs.org/modules/tinycontent/index.php?id=11
>> 
>> have Phun
>> 
>> Kai
>> _______________________________________________
>> --Bandwidth and Colocation provided by Easynews.com 
>> <http://easynews.com/>--
>> 
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>> 
>
>
>
> -- 
> Regards
> Rizwan Hisham
> Software Engineer
>

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000



More information about the asterisk-users mailing list