I am not sure if you misunderstood my question. The XML provided by mod_xml_cdr does not tell which gateway succeeded. When I use a single gateway without failover I know the gateway specified in lastapp was used. When I use failover the last_app string contains all the gateways. I am looking for a value which tells which gateway was used. <include>
<context name="external"> <extension name="external_outbound"> <condition field="destination_number" expression="(.*)"> <!-- <action application="set" data="proxy_media=true"/> --> <action application="set" data="hangup_after_bridge=true"/> <action application="set" data="continue_on_fail=true"/> <action application="set" data="originate_timeout=2"/> <action application="set" data="originate_retries=1"/> <action application="set" data="progress_timeout=15"/> <action application="set" data="call_timeout=35"/> <action application="set" data="proxy_media=true"/> <action application="bridge" data="sofia/gateway/provider1/$1|sofia/gateway/provider2/$1|sofia/gateway/provider3/$1" /> </condition> </extension> </context> </include>
On 30 April 2010 04:09, Rupa Schomaker <rupa@rupa.com> wrote:
set a var for each leg, this is how I do it in mod_lcr: [gateway=foo]sofia/gateway/foo/$1|[gateway=bar]sofia/gateway/bar/$1
On Thu, Apr 29, 2010 at 8:20 PM, Frank Church <vfclists@googlemail.com> wrote:
How does Freeswitch CDR determine which gateway was used in failover?
I am looking at the xml cdr and cdr_csv and they don't appear to show which gateway was used in the bridge data.
Is there a separate uuid for each bridging attempt, that can be obtained from the CDR, or the event socket as last resort?
-- Frank Church
======================= http://devblog.brahmancreations.com
_______________________________________________ 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
-- -Rupa
_______________________________________________ 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
-- Frank Church ======================= http://devblog.brahmancreations.com