[asterisk-users] CDR custom variable on second call leg - via originate or .call file

Eric Wieling EWieling at nyigc.com
Tue Jun 10 10:25:26 CDT 2014


Using Set(MASTER_CHANNEL(CDR(remoteUid))=foo); might do what you want

From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] 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 <tiago.geada at gmail.com<mailto:tiago.geada at gmail.com>> 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 at 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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140610/f36a3702/attachment-0001.html>


More information about the asterisk-users mailing list