[Freeswitch-users] Variables from failed call to be exported to a a new B leg

Michael Collins msc at freeswitch.org
Thu Feb 26 14:03:38 PST 2009


>
> to make sure that there is indeed a value and that it gets exported to
> the second b-leg try this:
> <action application="set" data="my_var=${nolocal:sip_hangup_phrase}"/>

oops, that set line should have been:
<action application="set" data="my_var=${sip_hangup_phrase}"/>
That "nolocal:" was extraneous from a lazy copy & paste

> <action application="export" data="my_var" />
>
> see if my_var is populated on the new b-leg.
> -MC
>

The most elegant solution is the one Brian gave:
<action application="set" data=""export_vars=sip_hangup_phrase"/>

So use it, please, and forget what I wrote. :)
-MC




More information about the FreeSWITCH-users mailing list