[Freeswitch-users] Dialplan 'set' variable not found in CDR

Vladimir Getmanshchuk vladget at gmail.com
Thu Oct 10 17:35:23 MSD 2013


Hi

There are at least 3 ways:

Collect CDR for both (a and b) legs;
Export <https://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_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 at 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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131010/06bb2f45/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list