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
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.
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
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
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
-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: .