It works! It looks that pipe | obey continue_on_fail. Nevertheless, in the end, I didn't specify this variable as it looks the pipe has all logic already implemented. đđ On Fri, 17 Dec 2021 at 11:03, Shaun Stokes <shaun@sysconfig.cloud> wrote:
You may want to specify fail_on_single_reject.
For example: {continue_on_fail=^^:NORMAL_TEMPORARY_FAILURE:NO_ROUTE_DESTINATION, fail_on_single_reject=^^:CALL_REJECTED:NORMAL_CLEARING:USER_BUSY}[ 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 22:21 *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* Re: [Freeswitch-users] Originate with failover
Thank you Shaun.
Guess if the first gateway will respond with NORMAL_CLEARING or USER_BUSY, call will not go to the next gateway?
Br, Gregor
On Thu, 16 Dec 2021 at 21:27, Shaun Stokes <shaun@sysconfig.cloud> wrote:
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 _________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.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 https://freeswitch.com
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services. Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.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 https://freeswitch.com