Bridge and+or carrier failover
Hi, I'm trying to implement carrier failover with the bridge application, specifically when working with multiple simultaneous destinations. For a single destination, I can use OR (|) and fail_on_single_reject to appropriately failover. For example (simplified): {fail_on_single_reject=user_busy}sofia/gateway/GW1/ENDPOINT1|sofia/gateway/GW2/ENDPOINT1 However with multiple simultaneous destinations, I'm having issues with approach. I've tried the following (simplified): {fail_on_single_reject=user_busy}sofia/gateway/GW1/ENDPOINT1|sofia/gateway/GW2/ENDPOINT1,sofia/gateway/GW3/ENDPOINT2|sofia/gateway/GW4/ENDPOINT2 This terminates all new channels when any one of them fails. What I'm trying to do is to stop bridge attempting a specific OR chain when one fails, but to continue executing the rest of the ANDs. Is there a way to achieve bridging to multiple destinations simultaneously, with each destination having its own list of failover gateways, and having failover for a destination only occur on certain cause codes (i.e. we don't want to fail over on user_busy/etc, but we do on other types of failures)? Thanks & regards, Shane Mitchell.
Hi, Do you have ignore_early_media=true in your dialplan? Probably you should. https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+bridge Alex On Tue, Apr 3, 2018 at 4:26 PM, Shane Mitchell < shane.mitchell@fonedynamics.com.au> wrote:
Hi,
I’m trying to implement carrier failover with the bridge application, specifically when working with multiple simultaneous destinations.
For a single destination, I can use OR (|) and fail_on_single_reject to appropriately failover. For example (simplified):
{fail_on_single_reject=user_busy}sofia/gateway/GW1/ ENDPOINT1|sofia/gateway/GW2/ENDPOINT1
However with multiple simultaneous destinations, I’m having issues with approach. I’ve tried the following (simplified):
{fail_on_single_reject=user_busy}sofia/gateway/GW1/ ENDPOINT1|sofia/gateway/GW2/ENDPOINT1,sofia/gateway/GW3/ ENDPOINT2|sofia/gateway/GW4/ENDPOINT2
This terminates all new channels when any one of them fails.
What I’m trying to do is to stop bridge attempting a specific OR chain when one fails, but to continue executing the rest of the ANDs.
Is there a way to achieve bridging to multiple destinations simultaneously, with each destination having its own list of failover gateways, and having failover for a destination only occur on certain cause codes (i.e. we don’t want to fail over on user_busy/etc, but we do on other types of failures)?
Thanks & regards,
Shane Mitchell.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.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 http://www.freeswitch.org
-- Alex Sibyakin | Support Engineer FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: alex@freeswitch.com Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> Need commercial support? Contact sales@freeswitch.com for details.
Hi, Did you tried to put fail_on_single_reject in [ ] instead of { } ? You can find more informations in https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables#Chann... Alexis Prodhomme Le 03/04/2018 à 09:26, Shane Mitchell a écrit :
Hi,
I’m trying to implement carrier failover with the bridge application, specifically when working with multiple simultaneous destinations.
For a single destination, I can use OR (|) and fail_on_single_reject to appropriately failover. For example (simplified):
{fail_on_single_reject=user_busy}sofia/gateway/GW1/ENDPOINT1|sofia/gateway/GW2/ENDPOINT1
However with multiple simultaneous destinations, I’m having issues with approach. I’ve tried the following (simplified):
{fail_on_single_reject=user_busy}sofia/gateway/GW1/ENDPOINT1|sofia/gateway/GW2/ENDPOINT1,sofia/gateway/GW3/ENDPOINT2|sofia/gateway/GW4/ENDPOINT2
This terminates all new channels when any one of them fails.
What I’m trying to do is to stop bridge attempting a specific OR chain when one fails, but to continue executing the rest of the ANDs.
Is there a way to achieve bridging to multiple destinations simultaneously, with each destination having its own list of failover gateways, and having failover for a destination only occur on certain cause codes (i.e. we don’t want to fail over on user_busy/etc, but we do on other types of failures)?
Thanks & regards,
Shane Mitchell.
participants (3)
-
Alexey Sibyakin
-
Alexis Prodhomme
-
Shane Mitchell