<div dir="ltr">Hi<div><br></div><div>There are at least 3 ways:</div><div><br></div><div>Collect CDR for both (a and b) legs;</div><div><a href="https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_export">Export</a> variable from a-leg to be leg;</div>

<div>Or set you variable before bridge application, use {variable=value}/sofia/gw/... for global, and [variable=value]/sofia/gw/... for b-leg only.</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Wed, Oct 9, 2013 at 4:38 PM, adahary <span dir="ltr">&lt;<a href="mailto:adahary@gmail.com" target="_blank">adahary@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi,<br>
<br>
I&#39;m trying to pass some custom variables from dialplan to cdr with no<br>
success.<br>
here is an example of my dialplan with the &#39;set&#39; of some custom variable<br>
&#39;x_dialplan_mode&#39;.<br>
<br>
why I cannot see this variable &#39;x_dialplan_mode&#39; in the CDR XML ?<br>
<br>
&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39; standalone=&#39;no&#39;?&gt;<br>
                                &lt;document type=&#39;freeswitch/xml&#39;&gt;<br>
                                  &lt;section name=&#39;dialplan&#39; description=&#39;CALL Routing request&#39;&gt;<br>
                                    &lt;context name=&#39;agents&#39;&gt;<br>
                                      &lt;extension name=&#39;call_to_sony27i&#39;&gt;<br>
                                        &lt;condition field=&#39;destination_number&#39; expression=&#39;^sony27i&#39;&gt;<br>
                                                &lt;action application=&#39;set&#39; data=&#39;call_timeout=45&#39;/&gt;<br>
&lt;action application=&#39;set&#39; data=&#39;ringback=${us-ring}&#39;/&gt;<br>
&lt;action application=&#39;set&#39; data=&#39;x_dialplan_mode=FS-LOCAL&#39;/&gt;<br>
&lt;action application=&#39;set&#39; data=&#39;effective_caller_id_number=adahary54&#39;/&gt;<br>
&lt;action application=&#39;set&#39; data=&#39;effective_caller_id_name=adahary54&#39;/&gt;<br>
&lt;action application=&#39;set&#39; data=&#39;execute_on_answer=sched_hangup +3600<br>
alloted_timeout&#39; /&gt;<br>
&lt;action application=&#39;set&#39; data=&#39;hangup_after_bridge=true&#39;/&gt;<br>
&lt;action application=&#39;set&#39; data=&#39;continue_on_fail=true&#39;/&gt;<br>
&lt;action application=&#39;bridge&#39; data=&#39;user/<a href="mailto:sony27i@mydomain.com">sony27i@mydomain.com</a>&#39; /&gt;<br>
                                        &lt;/condition&gt;<br>
                                      &lt;/extension&gt;<br>
                                    &lt;/context&gt;<br>
                                  &lt;/section&gt;<br>
                                &lt;/document&gt;<br>
<br>
regards<br>
Assaf<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/Dialplan-set-variable-not-found-in-CDR-tp7595574.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/Dialplan-set-variable-not-found-in-CDR-tp7595574.html</a><br>


Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Yours sincerely,<br>Vladimir Getmanshchuk
</div>