Hi, Let me append some extra info
cdr variable foo, shows on database, but value 'bar' doens't its not even shown in the insert query I tried with master_channel but no change On 10 June 2014 16:25, Eric Wieling <[email protected]> wrote: > Using Set(MASTER_CHANNEL(CDR(remoteUid))=foo); might do what you want > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Mikael Fredin > *Sent:* Tuesday, June 10, 2014 11:18 AM > *To:* Asterisk Users Mailing List - Non-Commercial Discussion > *Subject:* Re: [asterisk-users] CDR custom variable on second call leg - > via originate or .call file > > > > As far as I know, only way to set variables on another channel would be: > > asterisk -rx "core show help dialplan set chanvar" > Usage: dialplan set chanvar <channel> <varname> <value> > Set channel variable <varname> to <value> > > > > > > On 10 June 2014 16:39, Tiago Geada <[email protected]> wrote: > > Hi > > > > > > We have the following test .call file and test dialplan: > > > > I can't set a custom CDR var to a value on one channel leg, and another > value on the connected channel leg? > > > > > > Is there a way I can woraround this issue? > > > > > > > > ## test call file > > > > Channel: Local/queue@TiagoGeada > > CallerID: teste-geada:0:210332450: > > MaxRetries: 0 > > RetryTime: 1 > > WaitTime: 8640 > > Account: teste-geada > > Context: TiagoGeada > > Extension: outbound > > Archive: Yes > > > > > > > > > > ## dialplan > > > > queue => { > > Set(CDR(remoteUid)=foo); > > Queue(TiagoGeada,t,,,100); > > Hangup(); > > } > > > > outbound => { > > //NoCDR(); > > //ForkCDR(vdD); > > //ResetCDR(v); > > Set(CDR(remoteUid,r)=bar); > > Dial(Local/932485457@outbound,,gT); > > Hangup(); > > } > > > -- > _____________________________________________________________________ > -- 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 > > > > -- > _____________________________________________________________________ > -- 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 >
-- _____________________________________________________________________ -- 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
