Extension listen -- How to listen to specific extensions

The system is a FPBX13 with Asterisk 13. My customer wants to be able to listen in on specific extensions. I know the chanSPy works if you know the channel. I have seen some custom contexts in Google searches. It seems there should be a better way. Is there one?


There you go

One trick would be to use ChanSpy’s ‘e (exclusive)’ option, something like

exten => 007,n,ChanSpy(all,ne(${DB(AMPUSER/${CALLERID(num)}/spylist)}))

you can set the DB with

rasterisk -x 'database put AMPUSER/201 spylist SIP/202:SIP/203:SIP/204:SIP/205'

1 Like