[asterisk-users] Function to get mailbox for a PJSIP Endpoint?

Joshua Colp jcolp at digium.com
Thu Nov 6 19:09:19 CST 2014


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



More information about the asterisk-users mailing list