; ----------------------------------------------------------
[ext-local-custom]
;listen 24684
; Dial 24684<PBX-EXTENSION># to spy on the PBX extension
; and its current conversation. Neither party can hear the
; spy's audio, so this is very safe real spying!
exten => _24684x.#,1,Macro(user-callerid,)
exten => _24684x.#,n,Answer
exten => _24684x.#,n,NoCDR
exten => _24684x.#,n,Wait(1)
exten => _24684x.#,n,ChanSpy(sip/${EXTEN:5},q)
exten => _24684x.#,n,Hangup
;whisper 24685
; Dial 24685<PBX-EXTENSION># to spy on the PBX extension
; and its current conversation. The PBX-EXTENSION can hear
; the spy, but the other party can't.
exten => _24685x.#,1,Macro(user-callerid,)
exten => _24685x.#,n,Answer
exten => _24685x.#,n,NoCDR
exten => _24685x.#,n,Wait(1)
exten => _24685x.#,n,ChanSpy(sip/${EXTEN:5},qw)
exten => _24685x.#,n,Hangup
;barge 24686
; Dial 24686<PBX-EXTENSION># to join into the conversation
; of the PBX extension with the other party. Both parties
; can hear the spy. So this is really for barging-in!
exten => _24686x.#,1,Macro(user-callerid,)
exten => _24686x.#,n,Answer
exten => _24686x.#,n,NoCDR
exten => _24686x.#,n,Wait(1)
exten => _24686x.#,n,ChanSpy(SIP/${EXTEN:5},qB)
exten => _24686x.#,n,Hangup
; ----------------------------------------------------------