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 is down, but reserved
2 Channel is off hook
3 Digits (or equivalent) have been dialed
4 Line is ringing
5 Remote end is ringing
6 Line is up
7 Line is busy
 
Any help is always appreciated.


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

Reply via email to