[asterisk-users] extenspy and chanspy

Brian J. Murrell brian at interlinx.bc.ca
Wed Apr 16 15:25:03 CDT 2008


I want to add to my dialplan the ability to spy on an arbitrary
extension whether a call originates at it or is terminated at it.

Scenario 1: Given an extension, say 2001, a call comes in on a zap
channel and is Dial()ed to the phone that's at extension 2001, I want to
be able to pick up a phone and dial (say) *142001 and spy on that call.

Scenario 2: Extension 2001 makes a call to, say a zap channel, again, I
want to be able to pick up a phone and dial *142001 and spy on that
call.

ExtenSpy(<exten>@<context>) seems like the obvious first choice but it
requires a context and an extension.  I think that can work for scenario
2 but not scenario 1, yes?  An extension "answering" a call doesn't have
a context does it?

Alternatively I could use SPYGROUP and assign a SPYGROUP when an
outbound call is made but I think I would need some way for Dial to set
a SPYGROUP when an extension answers wouldn't I?

Does anyone have an implementation of this they'd like to share?

b.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080416/610f31e1/attachment.pgp 


More information about the asterisk-users mailing list