[asterisk-users] AGI: Channel status

2006-07-05 Thread yusuf
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

[Asterisk-Users] agi channel status

2006-03-06 Thread Danish Samad
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

RE: [Asterisk-Users] AGI Channel Status

2006-02-27 Thread Michael Collins
> 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

Re: [Asterisk-Users] AGI Channel Status

2006-02-27 Thread Roger Schreiter
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

RE: [Asterisk-Users] AGI Channel Status

2006-02-27 Thread Douglas Garstang
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

RE: [Asterisk-Users] AGI Channel Status

2006-02-27 Thread Douglas Garstang
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

RE: [Asterisk-Users] AGI Channel Status

2006-02-27 Thread Michael Collins
> 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

[Asterisk-Users] AGI Channel Status

2006-02-27 Thread Douglas Garstang
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

Re: [Asterisk-Users] AGI Channel Status

2003-08-21 Thread jerk face
>>$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-

Re: [Asterisk-Users] AGI Channel Status

2003-08-21 Thread James Golovich
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

[Asterisk-Users] AGI Channel Status

2003-08-21 Thread jerk face
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