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

Chris Bagnall asterisk at lists.minotaur.cc
Tue Jul 20 07:05:56 CDT 2010


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



More information about the asterisk-users mailing list