I am in need of a little assistance with ChanSpy and contexts. I have disabled 555 and posted the following into the extensions_custom.conf file and did a dialplan reload from the CLI:
[ext-local-custom]
;listen
exten => _*222x.#,1,Macro(user-callerid,)
exten => _*222x.#,n,Answer
exten => _*222x.#,n,NoCDR
exten => _*222x.#,n,Wait(1)
exten => _*222x.#,n,ChanSpy(SIP/${EXTEN:4},q)
exten => _*222x.#,n,Hangup
;whisper
exten => _*223x.#,1,Macro(user-callerid,)
exten => _*223x.#,n,Answer
exten => _*223x.#,n,NoCDR
exten => _*223x.#,n,Wait(1)
exten => _*223x.#,n,ChanSpy(SIP/${EXTEN:4},qw)
exten => _*223x.#,n,Hangup
;barge
exten => _*224x.#,1,Macro(user-callerid,)
exten => _*224x.#,n,Answer
exten => _*224x.#,n,NoCDR
exten => _*224x.#,n,Wait(1)
exten => _*224x.#,n,ChanSpy(SIP/${EXTEN:4},qB)
exten => _*224x.#,n,Hangup
I’m trying to Listen/Whisper/Barge on a specific extension. However, when I dial *2221351 to Listen on ext 1351 the call fails and the Asterisk debug says rejected because extension not found in context ‘from-internal’.
I’m using FreePBX version 2.11.0.41 and Asterisk version 11.9.0
I’m happy to provide more info. Can anyone point me in the right direction to resolve this?
Thanks!