Displaying 4 results from an estimated 4 matches for "channelstatus".
Did you mean:
channelstats
2009 Aug 17
0
Call back DIALSTATUS is empty
...$self->log(1,"Callback: $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 an...
2010 Jun 05
5
Controlling calls
...e script dial the peer
4-if the call is answered, let the call up for 1min
5-then the script hangs up the channel.
I tried either in php or in java but no success.
In java i did this:
//////////////
exec("Dial", "IAX2/400");
boolean t=true;
while(t){
if(getChannel().getChannelStatus()==6)t=false;
}
wait(60000);
hangup();
//////////
in my extension.conf:
exten =>777,1,AGI(agi://localhost/sc.agi)
the script is running but it does not hangup.
Second solution,i tried this :
exten => 777,1,Dial(IAX2/400,G(myscript))
exten =>777,n(myscript),AGI(agi://localhost/sc.agi)...
2011 Mar 16
1
Discover held channel?
Hi,
Here is a scenario:
1) A call comes in on an outside line on a DAHDI device
2) The call is answered by a SIP extension (Linksys SPA942 to be exact)
3) The SIP extension places the outside call on hold
4) The same SIP extension dials another extension.
Is it possible for the dialplan in step 4 to discover the channel of the
call placed on hold in step 3? In other words, since it is the
2007 Aug 15
3
Dialplan / AGI autoanswer question
Hi. I've got a working dial plan on my home system but there are problems
with it and I was hoping someone more comfortable with dial plans might be
able to help. In a nutshell here's what I'm currently doing on an incoming
outside phone call
[default]
Set(TIMEOUT(digit)=3
Set(TIMEOUT(response)=60
exten => s,1,NoOp(Answering in default context)
exten =>