[asterisk-users] asterisk-users Digest, Vol 95, Issue 14
Chet W. Stevens
cwstevens at interact.ccsd.net
Tue Jun 12 12:29:42 CDT 2012
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>
More information about the asterisk-users
mailing list