Oh I just remembered something, You can set the "failed_xml_cdr_prefix" variable (on the A-leg). And it will copy ALL variables from the B-leg if the call fails. <action application="set" data="failed_xml_cdr_prefix=providerA" /> <action application="bridge" data="...." /> <action application="set" data="failed_xml_cdr_prefix=providerB" /> <action application="bridge" data="...." /> Then you should have providerA_hangup_cause, providerB_hangup_cause. Mathieu On 26-Feb-09, at 3:56 PM, Tchavdar Paskov wrote:
Hi Everybody,
this is what i' trying to do / unsuccessfully / so far:
<extension name="test"> <condition field="destination_number" expression="^1(\d+)$" break="never"> <action application="set" data="bypass_media=true" /> <action application="set" data="continue_on_fail=true"/> <action application="bridge" data="sofia/gateway/gw_1/$1"/> <action application="info" /> -> at this point i'd like to collect some sip Vars from the failed call <action application="export" data="nolocal:sip_hangup_phrase" /> - from what i red in wiki i think this is the way to export the var to the Bleg <action application="bridge" data="sofia/gateway/gw_2/$0" /> </condition> </extension>
the gw_2 does not seem to receive the sip_hangup_phrase. pls help me to figure out what i'm doing wrong.
thank you in advance. regards Chav _______________________________________________ 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