Chanspy to random ext in a spygroup

Hi,

I need to configure a random chanspy, allowing me to jump between custom context extensios with a single chanspy code. It’s that possible?

I did try with an spygroup but it didn’t works, here my asterisk code:

[globals]spygroup=vent1

[test-custom]
;listen
exten => _*42x.#,1,Macro(user-callerid,)
exten => _*42x.#,n,Answer
;exten => _*42x.#,n,NoCDR
exten => _*42x.#,n,Wait(1)
exten => _*42x.#,n,ChanSpy(sip/${EXTEN:3},qg(vent1))
exten => _*42x.#,n,Hangup

;whisper
exten => _*43x.#,1,Macro(user-callerid,)
exten => _*43x.#,n,Answer
;exten => _*43x.#,n,NoCDR
exten => _*43x.#,n,Wait(1)
exten => _*43x.#,n,ChanSpy(sip/${EXTEN:3},qwg(vent1))
exten => _*43x.#,n,Hangup

Is thos your goal?

1 Like

Thanks for you reply!

Nice code works perfect! but i’m seeking for a non targeted chanspy, i have more than a 100 extensions working and need to monitor all of them, thats why i ask about to jump between as random way.