[asterisk-users] extenspy and chanspy

Brian J. Murrell brian at interlinx.bc.ca
Wed Apr 16 16:06:02 CDT 2008


On Wed, 2008-04-16 at 13:47 -0700, Steven Kurylo wrote:
> 
> 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()

Ahhh.  And this works because your sip.conf entries are of the form:

[<exten_num>]
...

I see.  I name mine more symbolically, but I wonder if I could create
some kind of mapping... or take advantage of the "callerid" attribution
of a sip.conf entry somehow to map from $callerid_number to $entry_name.

Cheers!

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/f403d1b5/attachment.pgp 


More information about the asterisk-users mailing list