Chanspy for group of extensions

freepbx-15
Tags: #<Tag:0x00007f702e094d90>

(Mohsin) #1

[app-chanspy]
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] ==-;

This is default chanspy code I am having. It is working very fine. I want little change it.

If I dial 555, I want it to listen extension 101 to 199 only.

If any body can tell me how to do it it will be appriciable


(Lorne Gaetz) #2

Not exactly what you’re asking for, but a basis you can start with:


(Mohsin) #3

I dont understand this. I applogize its too dificult for me. If you can edit the code I have mentioned for the specific series of extension that will be helpful


#4

You add your code to the extension_custom.conf. Then what?
Don’t you need to add the 556 to the feature codes somehow?


#5

Then reload and it works.

Very cool, thanks.


#6

Need to add some way to start again if you dial an extension that is not active.