Hi

There are at least 3 ways:

Collect CDR for both (a and b) legs;
Export variable from a-leg to be leg;
Or set you variable before bridge application, use {variable=value}/sofia/gw/... for global, and [variable=value]/sofia/gw/... for b-leg only.



On Wed, Oct 9, 2013 at 4:38 PM, adahary <adahary@gmail.com> wrote:
Hi,

I'm trying to pass some custom variables from dialplan to cdr with no
success.
here is an example of my dialplan with the 'set' of some custom variable
'x_dialplan_mode'.

why I cannot see this variable 'x_dialplan_mode' in the CDR XML ?

<?xml version='1.0' encoding='UTF-8' standalone='no'?>
                                <document type='freeswitch/xml'>
                                  <section name='dialplan' description='CALL Routing request'>
                                    <context name='agents'>
                                      <extension name='call_to_sony27i'>
                                        <condition field='destination_number' expression='^sony27i'>
                                                <action application='set' data='call_timeout=45'/>
<action application='set' data='ringback=${us-ring}'/>
<action application='set' data='x_dialplan_mode=FS-LOCAL'/>
<action application='set' data='effective_caller_id_number=adahary54'/>
<action application='set' data='effective_caller_id_name=adahary54'/>
<action application='set' data='execute_on_answer=sched_hangup +3600
alloted_timeout' />
<action application='set' data='hangup_after_bridge=true'/>
<action application='set' data='continue_on_fail=true'/>
<action application='bridge' data='user/sony27i@mydomain.com' />
                                        </condition>
                                      </extension>
                                    </context>
                                  </section>
                                </document>

regards
Assaf



--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Dialplan-set-variable-not-found-in-CDR-tp7595574.html
Sent from the freeswitch-users mailing list archive at Nabble.com.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Yours sincerely,
Vladimir Getmanshchuk