[asterisk-users] Preserving CDR(accountcode) in Local channels

Nasir Iqbal nasir at ictinnovations.com
Tue Jul 20 12:37:30 CDT 2010


while setting up accountcode value try two underscores just before variable
name like '__accountcode'

for more google for "Inheritance of Channel Variables"


On Tue, Jul 20, 2010 at 5:05 PM, Chris Bagnall
<asterisk at lists.minotaur.cc>wrote:

> Greetings list,
>
> Whilst running through a routine check of some CDRs, I've noticed that the
> originating channel's accountcode isn't preserved on creating a local
> channel. For example, if we start with:
>
> exten => 123,1,Set(CDR(accountcode)=foo)
> exten => 123,n,Queue(bar,nrtw,,,)
>
> And the queue 'bar' is defined as follows:
>
> [bar]
> member => Local/456 at outbound
> member => Local/567 at outbound
> member => Local/568 at outbound
>
> The 'accountcode' field is empty in the CDRs, even if I add /n to the queue
> members.
>
> So, a couple of quick questions if I may:
>
> 1) Is this behaviour expected?
>
> 2) How would one go about the above scenario whilst preserving the
> 'accountcode' field?
>
> Thanks in advance!
>
> Regards,
>
> Chris
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Nasir Iqbal

ICT Innovations
http://www.ictinnovations.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100720/54f97215/attachment.htm 


More information about the asterisk-users mailing list