[Telegraph-users] how to know if an extension is doing a ChanSpy?
Jonathan Palley
jpalley at gmail.com
Mon Aug 13 21:55:59 EDT 2007
Haven't played around with ChanSpy myself but if you do:
AMIObject.find(:status, :channel=>"")
Where AMIObject is your class that inherits from
Telegraph::AsteriskManager (it'll be in your model directory) you
will get basically the same data as below in a nice hash/array
format. Its then just a manner of parsing that.
Jonathan
On Aug 13, 2007, at 1:40 PM, Edgar Gonzalez wrote:
> Hi,
>
> I already do a ChanSpy via ami_manager using Telegraph.
> But I can't figure a way how to know if an extension is doing a
> ChanSpy.
>
> Via "asterisk -r" I can do a:
> show channel
>
> and see some like this:
>
> asterisk1*CLI> show channels
> Channel Location State Application(Data)
> SIP/0131-09aece00 s at default:1 Up ChanSpy(sip/0133|q)
> SIP/0133-09adc9b0 (None) Up Bridged Call(Zap/
> 1-1)
> Zap/1-1 s at macro-dial:10 Up Dial(SIP/0133||tr)
> 3 active channels
> 1 active call>
>
> How can I do this from ami_manager?
>
> Thanks
>
> --
> Edgar González González
> E-mail: edgargonzalez at gmail.com
> http://www.hasmanydevelopers.com
> http://www.rubycorner.com
> http://www.to2blogs.com
> http://www.lacaraoscura.com
> --
> _______________________________________________
> Telegraph-users mailing list
> Telegraph-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/telegraph-users
More information about the Telegraph-users
mailing list