[Asterisk-Users] Can't get ChanSpy to work

Patrick J. Conroy conroyp at contexttech.com
Sun Sep 12 10:29:11 MST 2004


Umar,

> I am a bit confused as to how this works. In particular I am trying to
> understand, if I had say 10 active sip calls (I am particularly interested
> in sip), how do I specify which one I one I want to listen into.

I haven't had enough chance to test ChanSpy to know what happens when
multiple calls are going on, if you have a generic statement like:
exten => _*53,1,ChanSpy(scan)

> Idealy I would like to have the ability to specify the extention
> that I want
> to listen into, is that possible?

That statement that I had in my original post was just for testing purposes
to get this working.  The actual statement that I have in my extensions.conf
is:
exten => _*53#812X,1,ChanSpy(scan,SIP/${EXTEN:4})

This allows me to specify the extension that I want to listen on (any 4
digit SIP extension beginning with 812), and I only monitor one extension at
a time.  I'm sure you could do nifty things with this to monitor any type of
extension, but this works for me.

Hope this helps,
Patrick


-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.




More information about the asterisk-users mailing list