Hi,
We are looking into listening in on conversations with our asterisk server and I have read that ChanSpy does just that. I enabled it on freePBX and I was able to cycle trough all the active calls by pressing * but I was having a difficult time trying to go to a specific call.
We also needed a way to make it password protected. After doing some searching I found that if I put this in the extensions.conf file it should work.
[code:1]
exten => 555,1,Authenticate(1234)
exten => 555,2,Read(SPYNUM,extension)
exten => 555,3,ChanSpy(SIP/${SPYNUM},q)
[/code:1]
but it wouldn’t work and I think it had to do with freepbx already has ChanSpy integrated in the files. I found out that in the extensions_additional.conf there is the following to enable ChanSpy:
[code:1]
[app-chanspy]
include => app-chanspy-custom
exten => 555,1,Macro(user-callerid,)
exten => 555,n,Answer
exten => 555,n,Wait(1)
exten => 555,n,ChanSpy()
exten => 555,n,Hangup
; end of [app-chanspy]
[/code:1]
I modified this section so it looks like this:
[code:1]
[app-chanspy]
include => app-chanspy-custom
exten => 555,1,Authenticate(1234)
exten => 555,2,Read(SPYNUM,extension)
exten => 555,3,ChanSpy(SIP/${SPYNUM},q)
;old code
;exten => 555,1,Macro(user-callerid,)
;exten => 555,n,Answer
;exten => 555,n,Wait(1)
;exten => 555,n,ChanSpy()
;exten => 555,n,Hangup
; end of [app-chanspy]
[/code:1]
It works great, by dialing 555 it asks for a password and then it asks for the extension and then connects me to it if there is a call. This is exactly what we need, but I found out everytime I make a change in the freePBX system and reload the changes it erases my changes.
I have tried to disable the ChanSpy in FreePbx and then stick this code in extensions.conf and extensions_custom.conf but it doesn’t work at all it just gives me a 484 error on my phone.
Is there any way I can get ti so when I reload the changes in freepbx it keeps my changes on the ChanSpy, or is there a new update that lets me add authentication and jump to a certain extension in ChanSpy in freePBX?
Also one more question does anyone know how to disallow a certain extension(s) from ChanSpy. The CEO doesn’t want anyone listening to his calls and with ChanSpy they would.
Thanks
Blake