Hello,
This is my first attempt at setting up and developing application to integrate with Asterisk, so please bear w/ any dumb questions i ask…
Anyways i’ve setup asterisk and the call queues in real time configuration and I’m trying to develop a web management tool for the call queue. I’m using the yahoo ext lib to make AJAX calls to a my backend php script that’s uses the phpAGI library.
I’m having difficulties figuring out just how to obtain the events returned when you issue a QueueStatus command.
$res = $asm->QueueStatus("123456789");
if ($res['Response'] == "Success") {
print_r($res);
}
the above code will print
Which maybe what you expect it to print, but i also kind of expected it to include the Events such as QueueMembers and QueueParams …
i’ve tried to setup event handlers to fire off a function when the events occur using the function add_even_handler however that also fails to ever fire…
Please anyone w/ any experience with phpAGI i would love to either see some example code or just a quick explanation on how to implement these functions… Thanks a lot
[Edit] I guess i should mention that i’m not using the phpAGI but the phpAGI-asmangaer… so just the asterisk manager class for the API.