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.
signature.asc
Description: This is a digitally signed message part
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
