Protect spychan by password or specific extensions

In our call center, only the shift manager should listen to other calls. but spychan is open to everybody.
Can I put a password or limit the spychan to use only from specific extensions (shift manager phones) ?

Thanks (:

You can limit the access to one part of the Asterisk dialplan in more then one way. These are two examples:

  1. Using Autenticate() application … thenticate

  2. With dialplan contexts
    You define two contexts - one for shift manager and one for agents. When you have this defined, you assign the shift manager context to shift manager extension and agents context to all the agents extensions. This is a quick example for defined contexts in extensions.conf:

-- ChanSpy extension ---

include => agents

-- extension that agents can use --

Thank You (: