<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 12, 2015 at 3:10 PM, D'Arcy J.M. Cain <span dir="ltr"><<a href="mailto:darcy@vex.net" target="_blank">darcy@vex.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, 12 Jun 2015 11:49:05 -0700<br>
John Kiniston <<a href="mailto:johnkiniston@gmail.com">johnkiniston@gmail.com</a>> wrote:<br>
> Try this for CHAN_SIP:<br>
><br>
> same =>     n,Set(Peer=${SIPCHANINFO(peername)}) ; Get the peer<br>
> same =>     n,Set(MailBox=${SIPPEER(${Peer},mailbox)}); Get the<br>
> mailbox same =>     n,VoicemailMain(${MailBox}@LocalSets,s)   ; If we<br>
> have a mailbox defined log into it<br>
<br>
</span>Perfect.  Thanks.  However, I didn't bother setting a variable.  I just<br>
use it directly.<br>
<br>
same => n,VoicemailMain(${SIPCHANINFO(peername)}@LocalSets,s)<br>
<br>
However...<br>
<br>
<a href="http://www.voip-info.org/wiki/view/Asterisk+func+sipchaninfo" rel="noreferrer" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+func+sipchaninfo</a> says that<br>
SIPCHANINFO is deprecated and that we should use CHANNEL instead.  I<br>
tried that and it said "pbx.c: Function CHANNEL not registered".  Does<br>
that mean that this solution will eventually fail when SIPCHANINFO is<br>
removed in some future release?  I am running 11.17.1.<br></blockquote><div><br></div><div>No.  It means that you have not loaded func_channel.so.<br><br></div><div>Richard<br></div></div><br></div></div>