Re: [asterisk-users] AGI - calling functions, CHANNEL STATUS broken?

2008-03-12 Thread Kevin DeGraaf
I am writing an AGI script that needs to check on the idle/busy status of a number of SIP peers (mostly SPA9xx phones, with a few Polycoms and Snoms thrown in for fun). I ended up grabbing this info from the manager interface, within an AGI script. A little back-asswards, but it works. I

Re: [asterisk-users] AGI - calling functions, CHANNEL STATUS broken?

2008-03-12 Thread Steve Edwards
On Wed, 12 Mar 2008, Kevin DeGraaf wrote: I am writing an AGI script that needs to check on the idle/busy status of a number of SIP peers (mostly SPA9xx phones, with a few Polycoms and Snoms thrown in for fun). I ended up grabbing this info from the manager interface, within an AGI script.

Re: [asterisk-users] AGI - calling functions, CHANNEL STATUS broken?

2008-03-12 Thread David Van Ginneken
Kevin DeGraaf wrote: I am writing an AGI script that needs to check on the idle/busy status of a number of SIP peers (mostly SPA9xx phones, with a few Polycoms and Snoms thrown in for fun). I ended up grabbing this info from the manager interface, within an AGI script. A little

Re: [asterisk-users] AGI - calling functions, CHANNEL STATUS broken?

2008-03-12 Thread Kevin DeGraaf
This worked for me on * 1.6 where 1223 is the sip peer I wanted to get status from. use Asterisk::AGI; my $AGI = new Asterisk::AGI; my $peer = $AGI-get_variable(SIPPEER(1223,status)); It didn't work (for me) on 1.4.18. An empty string was returned, even though I gave a it a valid peer

[asterisk-users] AGI - calling functions, CHANNEL STATUS broken?

2008-03-11 Thread Kevin DeGraaf
Greetings, I am writing an AGI script that needs to check on the idle/busy status of a number of SIP peers (mostly SPA9xx phones, with a few Polycoms and Snoms thrown in for fun). Is it possible to call Asterisk functions (e.g. SIPPEER) from AGI scripts? Based on my Googling, I would guess

Re: [asterisk-users] AGI - calling functions, CHANNEL STATUS broken?

2008-03-11 Thread Matt Riddell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin DeGraaf wrote: $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: .