search for: channel_status

Displaying 10 results from an estimated 10 matches for "channel_status".

2007 Apr 12
0
RAGI channel_status() never returnes
Hi there, I am new to this ML. Recently I started working on Asterisk 1.4 + RAGI + Ruby on Rails to create a call history browser. To record call history, I am trying to capture dialup, answer and hangup events. To check what status a call is, I use channel_status() that RAGI provides. I am having a trouble on this function. In a polling loop that checks call status, the first call of channel_status() returns -1 that indicates a failure. Then the second call never returns to caller once called. Below is a debug log and the code snippet of my app: debug log...
2008 Mar 11
2
AGI - calling functions, CHANNEL STATUS broken?
...t; 610,n,AGI(test.agi) $cc[0] = $AGI->get_variable('CC_200'); $cc[1] = $AGI->get_variable('CC_221'); $cc[2] = $AGI->get_variable('CC_231'); $AGI->verbose("Test using Set(): $cc[0] $cc[1] $cc[2]"); $AGI->verbose("Status of 200: " . $AGI->channel_status('SIP/200')); $AGI->verbose("Status of 221: " . $AGI->channel_status('SIP/221')); $AGI->verbose("Status of 231: " . $AGI->channel_status('SIP/231')); test.agi: Test using Set(): 0 1 0 ; Exactly as expected test.agi: Status of 200: -1 test.agi...
2003 Oct 13
1
AGI solution to Grandstream BT102 call waiting problem
...l return the channel as available. Maybe the definition of channel is available does not have anything to do if it is in a call or not. In the case of the Channel Status, it always returns 201 on the Sip channel. Actually, I'm using the Asterisk Perl Modules by James Golovich so the $AGI->channel_status('Zap/1-1') returns 4 and the $AGI->channel_status('Sip/2400') returns -1. I think that a major problem with the Channel Status is that the Sip channel is not being correctly provided. Since it seems to work with the Zap channel. The code is walking the channels to do a strcmp...
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 is down, but reserved 2 Channel is off hook 3 Digits (or equivalent) have been dialed 4 Line is ri...
2007 Jan 31
1
how to get the status of failed call files
i am creating call files, and catching successfully the ones that don't connect in a 'failed' extension. can anyone tell me how to find out the reason for the failure (ie busy, no answer). ${DIALSTATUS} doesn't appear to get set (presumably because Dial() isn't used) and channel_status doesn't seem to be any good. thanks in advance. -- - Rich Doughty
2010 Jan 11
1
MeetMe Conferencing - Announce your own join/leave to yourself and other conference members
...q}->execute) { exit; } $v{r} = $v{q}->fetchrow_hashref(); $v{q}->finish(); $v{dbh}->disconnect; if ($v{r}{members} > 1) { $AGI->stream_file("/var/spool/asterisk/meetme/meetme-username-".$v{conf}."-".$v{r}{members}); } while (!$v{loop}) { exit if (!$AGI->channel_status($v{chan})); $v{rc} = $AGI->wait_for_digit('60000'); } exit;
2006 Mar 10
2
Action after _caller_ has hungup(cmd Dial 'g'-option)
Hello! There's the "g"-option for the Dial-cmd that allows to execute the next extensions in the current context when the callee hangs up. I would need the same for a call where the caller hangs up, concretely i have to inform a agi-application of the end of a call. Does someone know a way to do this from the dialplan? thanks Christian
2009 Aug 17
0
Call back DIALSTATUS is empty
...lback: $call_id $ph_num $p_num"); #$self->agi->exec("Answer"); my $RESULT=$self->agi->get_variable("DIALSTATUS"); $self->log(1, " Call Status: $RESULT"); my $ChannelStatus = $self->agi->channel_status(""); $self->log(1, "Current Channel Status: $ChannelStatus"); --------------------------- The DIALSTATUS is empty. But the Channel status is coming as 6. I have the user decline the call and still not getting any DIALSTATUS???? Thanks a lot i...
2008 Feb 04
8
AGI: Not getting answers from get_data in a call-file call
...ation: I drop a call-file into the Asterisk spool directory and I get called back. That all works. And I have this script: #!/usr/bin/perl -w use Asterisk::AGI; my $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); $AGI->answer(); my $i; $i = $AGI->channel_status(); $AGI->say_digits($i); $i = $AGI->get_data("one-moment-please", 10000, 3); $AGI->say_digits($i); As you can see, nothing serious. When running this script in a normal telephone call, it works. When running this script in the call created with the call-file, I do...
2005 May 25
15
PHP/AGI Problem
Hi I am currently developing a IVR application using PHP/AGI. I am using the PHPAGI class at http://phpagi.sourceforge.net/ to handle the commuication with my *. The application basically asks a caller to enter in some information which is then processed and a answer is read back out to them. I want the application to loop back to the beginning after giving the answer so they can try another