Brian J. Murrell wrote:
> Does anyone have an implementation of this they'd like to share?
>   
I cut out the authentication stuff we do, but this is part of the macro 
we use to spy and record calls arbitrary calls.  All of our users have 
sip handsets.  Asterisk 1.2.

exten => s,n(getext),Read(SPY,extension,4)
exten => s,n,GotoIf($[ ${LEN(${SPY})} != 4 ]?nospy)
exten => s,n(spy),UserEvent(ChanSpy,User ${CALLBACKNUM} spied on ${SPY})
exten => s,n,Chanspy(SIP/${SPY},r(monitor-ext-${SPY}))
exten => s,n,Hangup()
exten => s,n(nospy),Playback(sorry-cant-let-you-do-that3)
exten => s,n,UserEvent(ChanSpy,User ${CALLBACKNUM} failed to spy on ${SPY})
exten => s,n,Hangup()


_______________________________________________
-- 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

Reply via email to