I would like to have a understandable documentation about phpagi. Have searched a lot but could not find it anywhere else complicated and vaguely described.
Does every phpagi script just maintain the agi commands or there are some functions and commands which are not directly an agi command but interpreted through phpagi and then pushed to asterisk?
So I would like to understand from an example, if someone could share it with me. Say for an example, if a customer calls, i have a dialplan which is like
Exten => 111,1,answer()
Same => here goes the agi
Same => n,hangup()
And i want to have a agi script which will just check a database and find that callers number in some row, and if it exists, the caller will be transfered to an IVR menu ‘xyz’. Otherwise the callers number will be registered(inserted) in some row of the database and hang up the call. Or maybe u can share just a very basic example from which I can understand.