-2

Just I need to write exten => 116,2,AGI(agi:async) in dialplan????

I did know that I should write an agi file in folder /usr/bin

Sorry but I have never create an AGI

Thanks

Asterisk ami/agi - not able to answer call

Community
  • 1
  • 1

1 Answers1

0

Simplest agi script is

#!/bin/bash
echo "ANSWER"
echo "STREAM \"somefile\" "

For more info see http://www.voip-info.org/wiki/view/Asterisk+AGI

There are alot of library for any common languages availible.

Async AGI just put call on hold, after that you have do any action using AMI. It is NOT simple. So try first usual AGI scripts.

arheops
  • 15,544
  • 1
  • 21
  • 27