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
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
Taking my first steps into AGI then :
[r...@asterisk agi-bin]# cat sample.agi
#!/usr/bin/php -q
?php
$MYSQLSERVER2=localhost;
$MYSQLUSER2=user;
$MYSQLPASSWD2=passwd;
set_time_limit(30);
require('phpagi/phpagi.php');
$agi = new AGI();
$db=mysql_connect($MYSQLSERVER2, $MYSQLUSER2,
Here is a simple AGI using cagi that creates a user event when a call is
connected with a queue member:
#include stdio.h
#include stdarg.h
#include cagi.h
int main (int argc, char *argv[]) {
AGI_TOOLS agi;
AGI_CMD_RESULT res;
intrtn;
char