[Freeswitch-users] Originate with failover
Gregor Nanger
gregor at infomedia.si
Thu Dec 16 21:21:35 UTC 2021
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 at 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 at lists.freeswitch.org>
> on behalf of Gregor Nanger <gregor at infomedia.si>
> *Sent:* 16 December 2021 17:45
> *To:* FreeSWITCH Users Help <freeswitch-users at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20211216/81d0c51f/attachment-0001.html>
More information about the FreeSWITCH-users
mailing list