steven.kurylo at aviaw... Guest
|
Posted: Wed Apr 16, 2008 3:47 pm Post subject: [asterisk-users] extenspy and chanspy |
|
|
Brian J. Murrell wrote:
Quote: | 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() |
|