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] 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)