Chet W. Stevens
2012-Jun-12 17:29 UTC
[asterisk-users] asterisk-users Digest, Vol 95, Issue 14
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 at 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.-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120612/41590360/attachment.htm>