How to disclude extension numbers from chanspy

Hi All,

I need to disclude some extension numbers from being ‘spied’ upon using the chanspy feature in elastix/freepbx. Is this possible?

We enable the chanspy feature for new starters on a busy sales floor; the worry is, because it rotates through all extensions, they may get to listen in on private conversations the management team are having.

How can I specify which extensions can\cannot be spied upon? Any help or advice would be greatly appreciated. Thank you.

Sstart with:-

read the syntax from the Asterisk CLI:-

core show application ChanSpy

you will see that you can do that with ${SPYGROUP} which you can set in your chanspy context when you call it with the “g(grp)” or the “e(ext)” options to chanspy an example usage is in :-