Displaying 1 result from an estimated 1 matches for "dfbb8858".
2003 Aug 21
7
AGI Channel Status
I'm having some trouble getting the channel status with an AGI script.
#!/usr/bin/perl
use Asterisk::AGI;
$AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();
$AGI->channel_status('Zap/1-1');
I am now stuck, and don't know how to get the return codes:
-1 There is no channel that matches the given <channelname>
0 Channel is down and available
1 Channel