while setting up accountcode value try two underscores just before variable name like &#39;__accountcode&#39; <br><br>for more google for &quot;Inheritance of Channel Variables&quot;<br><br><br><div class="gmail_quote">On Tue, Jul 20, 2010 at 5:05 PM, Chris Bagnall <span dir="ltr">&lt;<a href="mailto:asterisk@lists.minotaur.cc">asterisk@lists.minotaur.cc</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Greetings list,<br>
<br>
Whilst running through a routine check of some CDRs, I&#39;ve noticed that the<br>
originating channel&#39;s accountcode isn&#39;t preserved on creating a local<br>
channel. For example, if we start with:<br>
<br>
exten =&gt; 123,1,Set(CDR(accountcode)=foo)<br>
exten =&gt; 123,n,Queue(bar,nrtw,,,)<br>
<br>
And the queue &#39;bar&#39; is defined as follows:<br>
<br>
[bar]<br>
member =&gt; Local/456@outbound<br>
member =&gt; Local/567@outbound<br>
member =&gt; Local/568@outbound<br>
<br>
The &#39;accountcode&#39; field is empty in the CDRs, even if I add /n to the queue<br>
members.<br>
<br>
So, a couple of quick questions if I may:<br>
<br>
1) Is this behaviour expected?<br>
<br>
2) How would one go about the above scenario whilst preserving the<br>
&#39;accountcode&#39; field?<br>
<br>
Thanks in advance!<br>
<br>
Regards,<br>
<br>
Chris<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Nasir Iqbal<br><br>ICT Innovations<br><a href="http://www.ictinnovations.com/" target="_blank">http://www.ictinnovations.com/</a><br><br>