[Asterisk-Users] AGI Channel Status

Douglas Garstang dgarstang at oneeighty.com
Mon Feb 27 13:48:19 MST 2006


MC,

But.... the channel status command is documented as an AGI command itself. 
If you look at http://www.voip-info.org/wiki-Asterisk+AGI, you'll see the 'channel status' command listed there as an AGI command.

I can't post my dial plan, as I don't really have one. Well, I do, and it looks like this:
exten => _X.,1,AGI(router.py)

Everything is being controlled from the script. The script calls the dial() command. Problem is that dial() doesn't return a -1 (or anything) until after the call is complete. That makes it a BIT tough to check the status of a call. 

If dial() doesn't return until after the call completes, it means the channel status AGI command is a waste of time.

Doug.

-----Original Message-----
From: Michael Collins [mailto:mcollins at fcnetwork.biz]
Sent: Monday, February 27, 2006 1:36 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
> call has hung up. If that's the case, how is channel status supposed
to
> return statuses like:
> 
> <status> values:
> 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
> 
> If dial() doesn't return -1 until after the call is complete, it
doesn't
> seem possible to me that you can check '4 Line is ringing' for
example.
> 
> Doug

Doug, 
I get the distinct impression that CHANNEL STATUS is to be used
independently of the dial() app.  At least that's what I see when I read
up on AGI, CHANNEL STATUS and dial().  Can you post a snip of the
dialplan you've got?  I'd like to tinker around with it.

Thanks,
MC
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list