On Mon, Jun 11, 2012 at 8:34 AM, Chet W. Stevens
<[email protected]> wrote:
> 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.
--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
---Heinlein
--
_____________________________________________________________________
-- 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