[asterisk-users] Chanspy() not working with group in asterisk 1.4.42
Sammy Govind
govoiper at gmail.com
Tue Oct 18 03:28:17 CDT 2011
Hey,
I don't think you are doing it right. The memebers/channels you need to spy
should be added in SPYGROUP and not the channel which is spying. i.e your
code maybe something like this.
exten => 43681111,1,Answer()
exten => 43681111,n,NoOp(****${CHANNEL}****)
exten => 43681111,n,Set(SPYGROUP=my-group)
exten => 43681111,n,Konference(VADSTR)
exten => 43681156,1,Answer()
exten => 43681156,n,NoOp(***${SPYGROUP}****)
exten => 43681156,n,ChanSpy(DAHDI,g(my-group))
exten => 43681156,n,Hangup()
On Tue, Oct 18, 2011 at 12:30 PM, virendra bhati <virbhati at gmail.com> wrote:
> Hi list,
>
> I have write down my code on which chanspy not working when I make a group
> with name of spy. Please help me where is the issue on that.
>
> a) caller will call this number to join konference and spy group
>
> exten => 43681111,1,Answer()
> exten => 43681111,n,NoOp(****${CHANNEL}****)
> exten => 43681111,n,Set(GROUP(${CHANNEL})=spy)
> exten => 43681111,n,Set(a=${GROUP_LIST(spy)})
> exten => 43681111,n,Set(b=${GROUP_LIST()})
> exten => 43681111,n,Konference(VADSTR)
>
> b) spy will dial it to spy the channels
>
> exten => 43681156,1,Answer()
> exten => 43681156,n,NoOp(***${SPYGROUP}****)
> exten => 43681156,n,Set(SPYGROUP=spy)
> exten => 43681156,n,NoOp(***${SPYGROUP}****)
> exten => 43681156,n,ChanSpy(DAHDI,g(spy))
> exten => 43681156,n,Hangup()
>
> when I used chanspy without option then It works
> like Chanspy(DAHDI)
>
> Any help will be appreciated
>
> -----
> Thanks and regards
>
> Virendra Bhati
> +91-9172341457
> Software Engineer
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111018/ec6d635c/attachment.htm>
More information about the asterisk-users
mailing list