[Asterisk-Users] AGI Channel Status
jerk face
jerkface2098 at yahoo.com
Thu Aug 21 08:08:52 MST 2003
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030821/47b06e46/attachment.htm
More information about the asterisk-users
mailing list