Here is a simple AGI using cagi that creates a user event when a call is
connected with a queue member:
#include
#include
#include "cagi.h"
int main (int argc, char *argv[]) {
AGI_TOOLS agi;
AGI_CMD_RESULT res;
intrtn;
char channel_name[200], uniqueid[
Taking my first steps into AGI then :
[r...@asterisk agi-bin]# cat sample.agi
#!/usr/bin/php -q
verbose("query is: $QUERY", 3);
$result=mysql_query($QUERY);
$VMCONTEXT=mysql_fetch_array($result);
$agi->verbose("VMCONTEXT is: $VMCONTEXT", 3);
$vmcontext=$VMCONTEXT['vmcontext'];
$exten = $agi->re
Yes it gets called when the call is connected to a queue member.
In version 1.4.x you can execute an AGI instead of a sub or macro.
--
Jim Dickenson
mailto:dicken...@cfmc.com
CfMC
http://www.cfmc.com/
On Jun 30, 2010, at 7:20 AM, Jonas Kellens wrote:
> Hello list,
>
> I notice on the wiki t
Hello list,
I notice on the wiki that it is possible to execute a macro or a gosub
within the queue-command in asterisk 1.6.x
1. Does this mean the macro/gosub is executed everytime a queued call is
answered by a queue member ?
2. I'm using asterisk 1.4.30. Is there a backport or other way