Re: [asterisk-users] Preserving CDR(accountcode) in Local channels
On Tuesday 20 July 2010 12:37:30 Nasir Iqbal wrote: > while setting up accountcode value try two underscores just before variable > name like '__accountcode' You cannot do that with CDR variables at this time, only channel variables. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org -- _ -- 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
Re: [asterisk-users] Preserving CDR(accountcode) in Local channels
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 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/4...@outbound > member => Local/5...@outbound > member => Local/5...@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/ -- _ -- 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
[asterisk-users] Preserving CDR(accountcode) in Local channels
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/4...@outbound member => Local/5...@outbound member => Local/5...@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