[asterisk-users] extenspy and chanspy

Steven Kurylo steven.kurylo at aviawest.com
Wed Apr 16 15:47:45 CDT 2008


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()




More information about the asterisk-users mailing list