Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using a standard config of Asterisk 1.4 with FreePBX using the chanspy feature code. I want to restrict what channels it is possible to spy on, ideally doing this in a .conf file. How would I do this?

share|improve this question

It looks like you can do this by password protecting the feature, here is an example:

From the page:

Here's how it works - you pick up the phone and dial 555 (Channel Spy Feature Code), The system will ask for a password. If the correct password is entered spying ensues. IF the incorrect password is entered three times the call is dropped. All I did was add a couple of lines to extensions_custom.conf

;Password Protect Channel Spy
exten => 555,1,Authenticate(1234)

;Password Protect ZapBarge
exten => 888,1,Authenticate(1234)
share|improve this answer

protected by HopelessN00b Jan 21 '13 at 14:42

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.