Stopping beep and announcement in chanspy

I need some help in getting rid of the beep and the message telling me what ext. when listening in on an ext. I am using Freepbx 14.05.2 Asterisk 13.22.0. I don’t want a beep to be heard by anyone. I put this code into the extentions_custom_conf but it is still making the beep and giving me a message before listening. TIA, not sure what I’m doing wrong.

[app-chanspy]
include => app-chanspy-custom
exten => *798,1,Macro(user-callerid,q)
exten => *798,n,Answer
exten => *798,n,Wait(1)
exten => *798,n,ChanSpy(q)
exten => *798,n,Hangup

Change your dialplan to:

[from-internal-custom]
exten => *798,1,Macro(user-callerid,q)
exten => *798,n,Answer
exten => *798,n,Wait(1)
exten => *798,n,ChanSpy(q)
exten => *798,n,Hangup

Hi,

Where exactly do I put that? When I put that into the extentions_custom_conf , I didn’t get an announcement of what ext. I was listening to but I also could no longer hear anything.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

You’re misusing the ChanSpy application, from Asterisk console:

freepbx*CLI> core show application ChanSpy

  -= Info about application 'ChanSpy' =-

   *snip*

[Syntax]
ChanSpy([chanprefix][,options])

Per the above, options come as the second argument to ChanSpy, not the first. You need to modify the ChanSpy line to:

exten => *798,n,ChanSpy(,q)