John Kiniston
2014-Nov-06 23:16 UTC
[asterisk-users] Function to get mailbox for a PJSIP Endpoint?
Howdy, I'm trying to re-write my voicemail check extension. I formerly used the SIPPEER function to get the mailbox for a peer with ${SIPPEER(${peer},mailbox)} Is there a way to do this with PJSIP now that I've converted over? I see a function PJSIP_ENDPOINT and it has a mailboxes subset but I'm not retrieving any data from it when I query it. -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20141106/f296c5cc/attachment.html>
Joshua Colp
2014-Nov-07 01:09 UTC
[asterisk-users] Function to get mailbox for a PJSIP Endpoint?
John Kiniston wrote:> Howdy,Kia ora,> I'm trying to re-write my voicemail check extension. > > I formerly used the SIPPEER function to get the mailbox for a peer with > ${SIPPEER(${peer},mailbox)} > > Is there a way to do this with PJSIP now that I've converted over? > > I see a function PJSIP_ENDPOINT and it has a mailboxes subset but I'm > not retrieving any data from it when I query it.What is your pjsip.conf like for the endpoint and AOR? (Where have you configured it). If specified on the AOR then it won't be accessible via PJSIP_ENDPOINT and there is not, as of yet, a dialplan function for querying for AOR information. Cheers, -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org