set the var failed_xml_cdr_prefix=foo before you call bridge
and the failed calls will have a complete xml cdr saved in foo_X where X is an incrementing number from 1 upwards.



On Thu, Feb 26, 2009 at 4:03 PM, Michael Collins <msc@freeswitch.org> wrote:
>
> 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. :)



--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400