Can't confirm if originate will work with pipe (never tried it), you can always test it, but I don't think continue_on_fail should be necessary.  When using pipe with gateways, you probably want to add leg_timeout, we've had issues with calls getting stuck on a down gateway in the past, leg_timeout ensures the call fails over after the specified time if there's no response. Some mobiles take a while to respond with ringing but 15s should be ample.

For example:
{continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION}[leg_timeout=15]originate sofia/gateway/provider1|[leg_timeout=15]sofia/gateway/provider2 19005551212 XML default

Shaun

From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> on behalf of Gregor Nanger <gregor@infomedia.si>
Sent: 16 December 2021 17:45
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
Subject: [Freeswitch-users] Originate with failover
 
Guys, I need some advice.

I would like to make an originate to provider and if call fails, proceed to second provider.

For this, I can use pipe |. But will pipe obey what I set in continue_on_fail?

For example:

1. continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION
2. originate sofia/gateway/provider1|sofia/gateway/provider2 19005551212 XML default

Any advice would be appreciated.

Br, Gregor