Help in development

Hi all,

I’d like to develop a little script of statistics which can be called by my asterisk proxy when someone call.
But i don’t know how to proceed… what is the syntax to call an application from asterisk when a user make a call, and what file have i to edit?

I think i have to modify the extensions.conf but i don’t know anything else…

Scenario :

  1. a user call the number 999
  2. asterisk execute the script ‘toto’
  3. the result is returned to the user who called the 999

voip-info.org/wiki-Asterisk+AGI