VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
gregor at infomedia.si Guest
|
Posted: Thu Dec 16, 2021 12:16 pm Post 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 |
|
Back to top |
|
|
shaun at sysconfig.cloud Guest
|
Posted: Thu Dec 16, 2021 3:39 pm Post subject: [Freeswitch-users] Originate with failover |
|
|
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 |
|
Back to top |
|
|
gregor at infomedia.si Guest
|
Posted: Thu Dec 16, 2021 4:50 pm Post subject: [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:
Quote: | 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 (freeswitch-users-bounces@lists.freeswitch.org)> on behalf of Gregor Nanger <gregor@infomedia.si (gregor@infomedia.si)>
Sent: 16 December 2021 17:45
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (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 (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 (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 |
|
|
Back to top |
|
|
shaun at sysconfig.cloud Guest
|
Posted: Fri Dec 17, 2021 5:16 am Post subject: [Freeswitch-users] Originate with failover |
|
|
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:
Quote: | 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 (freeswitch-users-bounces@lists.freeswitch.org)> on behalf of Gregor Nanger <gregor@infomedia.si (gregor@infomedia.si)>
Sent: 16 December 2021 17:45
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (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 (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 (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 |
|
|
Back to top |
|
|
gregor at infomedia.si Guest
|
Posted: Fri Dec 17, 2021 7:21 am Post subject: [Freeswitch-users] Originate with failover |
|
|
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:
Quote: | 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 (freeswitch-users-bounces@lists.freeswitch.org)> on behalf of Gregor Nanger <gregor@infomedia.si (gregor@infomedia.si)>
Sent: 16 December 2021 22:21
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (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:
Quote: | 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 (freeswitch-users-bounces@lists.freeswitch.org)> on behalf of Gregor Nanger <gregor@infomedia.si (gregor@infomedia.si)>
Sent: 16 December 2021 17:45
To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org (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 (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 (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 (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 (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 |
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|