Thank you John. This is a much more elegant solution since I have already defined 'mailbox' for my SIP device. I'm now using this in my dial plan.
Chet Stevens asterisk-users@lists.digium.com writes: >> Also, related to this question; is there a "best" or recommended method to >> determine the dialing extensions voice mail box? I have been using >> variations of ${CUT(CHANNEL,-,1)} which does work but I just have to be >> aware of how I name my devices. > >I use the following method to get the mailbox for a peer under 1.4: > >exten => *98,n,Set(peer=${SIPCHANINFO(peername)}) ; Get the peer >exten => *98,n,Set(mailbox=${SIPPEER(${peer},mailbox)}); Get the mailbox > >I dont know about it being the best or recommended method but I've yet >to have it break on me.
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users