ChanSpy and SPYGROUP_COUNT

Hi,

Just wondering if there is SPYGROUP_COUNT variable same like GROUP_COUNT, that would make a good addon, since ChanSpy returns only one variable (spyed channel or something like that)

Thanks,
M

I’m having this issue with ChanSpy app:

== Spying on channel SIP/sip2 [Aug 26 13:46:15] NOTICE[8422]: app_chanspy.c:480 start_spying: Attaching SIP/sip1 to SIP/sip2 [Aug 26 13:46:15] NOTICE[8422]: app_chanspy.c:480 start_spying: Attaching SIP/sip1 to SIP/sip2 -- SIP/<ip>:5050-00000074 answered SIP/sip2
And when the phone who is spying hangs up, I’m getting this warning:

[Aug 26 13:46:50] WARNING[4954]: chan_sip.c:3860 __sip_autodestruct: Autodestruct on dialog 'some dialog' with owner in place (Method: BYE) == Using SIP RTP CoS mark 5
So when a Spy-er ends call it never leaves ChanSpy application, so no h exten. can be caught. :frowning:

*CLI> core show channels Channel Location State Application(Data) SIP/<sip2>-00000082 s@macro-IVRMachineID Up Dial(SIP/222@<ip>:5050 SIP/<sip1>-00000085 sw_2806_2@macro-IVRM Up ChanSpy(,qSx(0)g(<group>)) SIP/<sip1>-00000084 sw_2806_2@macro-IVRM Up ChanSpy(,qSx(0)g(<group>))
sip1 can make a lot of calls and leave a lot of channels up, all until sip2 and SIP/:5050-…74 end theirs call.
When original call (the one that was spied) has ended all channels are killed but it’s impossible to get stats (when spying ended…) and :

*CLI> core show channels Channel Location State Application(Data) 0 active channels 0 active calls 3 calls processed *CLI> group show channels Channel Group Category SIP/<sip2> <group> (default) 1 active channel
it’s not removed from the group.

Can anyone tell me if this has to be this way or it can be fixed. I’m using: Asterisk 1.8.5.0 built by …

Thanks,
M