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.

Attachment: 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

Reply via email to