<tt><font size=2>> Asterisk 12.5<br>
> <br>
> I'm using AMI to initiate a "call me now" feature from the
web site.  <br>
> The AMI looks like:<br>
> Action: Originate<br>
> Channel: Local/s@callmenow<br>
> Context: dial-to-customer<br>
> Exten: s<br>
> Priority: 1<br>
> Async: true<br>
> Variable: CHANNEL_TO_CUSTOMER=SIP/voipms/1112223333<br>
> Timeout: 999999<br>
> <br>
> Dial Plan:<br>
> [callmenow]<br>
> exten => s,1,NoOp(callmenow: Queue without answer)<br>
>    same =>n,Queue(sales,Rtc)<br>
> <br>
> [dial-to-customer]<br>
> exten => s,1,NoOp(dial-to-customer channel=${CHANNEL(name)})<br>
>    same =>n,DumpChan()<br>
> <br>
> The dial-to-customer context is invoked when the sales queue agent
<br>
> answers the phone.<br>
> <br>
> When the local channel is used, the queue related variables, <br>
> specifically MEMBERINTERFACE, are missing.  When a normal call
<br>
> (typically SIP or DAHDI channel) enters the queue, the MEMBERINTERFACE
<br>
> and other variables are present.<br>
> <br>
> my queues.conf has<br>
> setinterfacevar = yes<br>
> setqueueentryvar = yes<br>
> setqueuevar = yes ;<br>
> <br>
> I didn't see anything in the V12 doc that related to this.<br>
> <br>
> Is this a bug or a feature?<br>
</font></tt>
<br><tt><font size=2>I haven't done what you are looking to do exactly,
but I think I understand where you are going with this.</font></tt>
<br>
<br><tt><font size=2>Take a look at this link: </font></tt><a href="http://www.voip-info.org/wiki/view/Asterisk+local+channels"><tt><font size=2>http://www.voip-info.org/wiki/view/Asterisk+local+channels</font></tt></a>
<br>
<br><tt><font size=2>I think if you add a /n to your local channel, it
might do what you want. From reading this, it looks like the local channel
is being optimized out and causing you to lose some of your variables that
you had set. So, in your AMI, </font></tt>
<br><tt><font size=2>change this: Channel: Local/s@callmenow</font></tt>
<br><tt><font size=2>to this: Channel: Local/s@callmenow/n</font></tt>
<br><tt><font size=2>and see if that gets you what you are looking for.
I bet the local channel has the MEMBERINTERFACE variable and it gets lost
when optimized out.</font></tt>