Hi all,
I'm trying to run CHANNEL STATUS from AGI written in PHP. It does'nt seem to work, because Asterisk
just hangs. I am using Asterisk 1.2.7 and PHP 5.
Here is a cut:
fwrite(STDOUT,"CHANNEL STATUS Zap1-1");
fflush(STDOUT);
fwrite(STDERR,"STATUS IS:"+trim(fgets(STDIN,100
Hi,
I have developed a custom agi and connect to it by placing a call
through a sip phone. The agi issues the "STREAM FILE" command from a
number of places in code to play out prerecorded messages. The problem
is if the agi tries to play a file, using the STREAM FILE command,
after the caller ha
> MC,
>
> I think I worked out that I need to use ${DIALSTATUS} anyway. Don't
really
> see what 'channel status' is for...
>
Doug,
I think the channel status might be more useful for incoming calls, or
possibly to monitor specific channels other than the 'current' channel.
I can't think of a re
Douglas Garstang schrieb:
If dial() doesn't return until after the call completes,
> it means the channel status AGI command is a waste of time.
Hi,
you are right, dial will block, so you won't get the channel
status by that method when having an outbound call.
You can use the manager. But w
PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] AGI Channel Status
> I'd like to use the AGI command "CHANNEL STATUS" to check the status
of a
> channel. However, the dial() command doesn't return -1 until after the
> ca
cial Discussion
Subject: RE: [Asterisk-Users] AGI Channel Status
> I'd like to use the AGI command "CHANNEL STATUS" to check the status
of a
> channel. However, the dial() command doesn't return -1 until after the
> call has hung up. If that's the case, how is chan
> I'd like to use the AGI command "CHANNEL STATUS" to check the status
of a
> channel. However, the dial() command doesn't return -1 until after the
> call has hung up. If that's the case, how is channel status supposed
to
> return statuses like:
>
> values:
> 0 Channel is down and available
> 1
I'd like to use the AGI command "CHANNEL STATUS" to check the status of a
channel. However, the dial() command doesn't return -1 until after the call has
hung up. If that's the case, how is channel status supposed to return statuses
like:
values:
0 Channel is down and available
1 Channel is
>>$status = $AGI->channel_status('Zap/1-1');
I did try to do that, but it doesn't work for some reason.
What I did was change $AGI->channel_status('Zap/1-1'); to score($AGI->channel_status('Zap/1-1'));
Then I added
sub score{
my ($returncode) = @_;
print STDERR "Return code for Zap/1-
On Thu, 21 Aug 2003, jerk face wrote:
> 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 kn
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 mat
11 matches
Mail list logo