Wondering if we can post failed tried call cdr to mod_json_cdr. I have below dialplan generated and I want to post cdr any gateway fail to process the call. That means if test1 fail then it should send cdr to mod_json_cdr and then go for test2. If test2 fail then post cdr and then try test3 so on.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="Dialplan">
<context name="default">
<extension name="12127773456">
<condition field="destination_number" expression="12127773456">
<action application="set" data="effective_destination_number=12127773456"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="gwid=101"/>
<action application="bridge" data="sofia/gateway/test1/12127773456"/>
<action application="set" data="gwid=102"/>
<action application="bridge" data="sofia/gateway/test2/12127773456"/>
<action application="set" data="gwid=103"/>
<action application="bridge" data="sofia/gateway/test3/12127773456"/>
</condition>
</extension>
</context>
</section>
</document>