Re: [asterisk-users] Voice mail and caller ID

2015-06-12 Thread Richard Mudgett
On Fri, Jun 12, 2015 at 3:10 PM, D'Arcy J.M. Cain da...@vex.net wrote: On Fri, 12 Jun 2015 11:49:05 -0700 John Kiniston johnkinis...@gmail.com wrote: Try this for CHAN_SIP: same = n,Set(Peer=${SIPCHANINFO(peername)}) ; Get the peer same =

Re: [asterisk-users] Voice mail and caller ID

2015-06-12 Thread John Kiniston
Try this for CHAN_SIP: same = n,Set(Peer=${SIPCHANINFO(peername)}) ; Get the peer same = n,Set(MailBox=${SIPPEER(${Peer},mailbox)}); Get the mailbox same = n,VoicemailMain(${MailBox}@LocalSets,s) ; If we have a mailbox defined log into it If you are using PJSIP it's more complex

Re: [asterisk-users] Voice mail and caller ID

2015-06-12 Thread D'Arcy J.M. Cain
On Fri, 12 Jun 2015 11:49:05 -0700 John Kiniston johnkinis...@gmail.com wrote: Try this for CHAN_SIP: same = n,Set(Peer=${SIPCHANINFO(peername)}) ; Get the peer same = n,Set(MailBox=${SIPPEER(${Peer},mailbox)}); Get the mailbox same = n,VoicemailMain(${MailBox}@LocalSets,s) ;

[asterisk-users] RES: Banco de dados interno no Asterisk e variáveis em SIP HEADERS

2015-06-12 Thread Rodrigo Pimenta Carvalho
Prezado Fernando, Muito obrigado por sua complementação na resposta! Surgiram algumas dúvidas agora: A única forma de retornar os dados num header field, como o Rafael dos Santos Saraiva sugeriu envolve criar outro channel? Ou seja, o que eu preciso é que a mesma execução do dia plan obtenha

[asterisk-users] Can dial plan handle new proprietary SIP HEADER fields? How?

2015-06-12 Thread Rodrigo Pimenta Carvalho
Dear asterisk-users, I have listened that a diaplan on Asterisk can extract information from proprietary SIP messages header fields. That is, if Asterisk receives a SIP message with a modified HEADER (containing proprietary fields) , is it possible to program the dial plan to make Asterisk

[asterisk-users] Voice mail and caller ID

2015-06-12 Thread D'Arcy J.M. Cain
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)