Displaying 3 results from an estimated 3 matches for "ast_sorcery".
2014 Nov 17
1
Get the status of a PJSIP endpoint?
Is there an equivalent to ${SIPPEER(${peer},status)} for PJSIP?
The closest I've been able to get is to use AST_SOURCERY to see if they
have a contact
${AST_SORCERY(res_pjsip,aor,${peer},contact) but I'm not certain if I'll
still have a contact entry after a phone has gone unreachable?
--
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, s...
2015 Jun 12
0
Voice mail and caller ID
...,s) ; If we have a
mailbox defined log into it
If you are using PJSIP it's more complex
same => n,Set(EndPoint=${CHANNEL(endpoint)}) ; Get the peer
same => n,Set(MailBox=${PJSIP_ENDPOINT(${EndPoint},mailboxes)})
same => n,ExecIf($[${ISNULL(${MailBox})} =
1]?Set(MailBox=${AST_SORCERY(res_pjsip,aor,${EndPoint},mailboxes)}))
same => n,VoicemailMain(${MailBox}@LocalSets,s) ; If we have a
mailbox defined log into it
On Fri, Jun 12, 2015 at 11:23 AM, D'Arcy J.M. Cain <darcy at vex.net> wrote:
> I have this in my sip.conf:
>
> exten => *98,1,Verbose(0...
2015 Jun 12
2
Voice mail and caller ID
I have this in my sip.conf:
exten => *98,1,Verbose(0,CALLERID number is "${CALLERID(num)}")
same => n,VoicemailMain(${CALLERID(num)}@LocalSets,s)
same => n,Hangup
However, my extensions are set up so that they always show the external
number, not the extension:
[foobar2](client-phone)
secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
callerid=Candace <5555551212>