What Steven says is correct. Our problem was that failover was being invoked on receipt of any rejection code due to the bug described in FS-7678 and this led to the error you are seeing. What we wanted was for failover to only occur if the gateway was actually unavailable, in which case there would be no existing session to be a duplicate of. The solution I described worked for us but perhaps your requirements and scenario are slightly different and Steven's approach would be more appropriate. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Steven Ayre Sent: 29 July 2016 10:35 To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Duplicate UUID If you set the origination_uuid in {} braces it'll try to use that UUID for all of the B-legs. You need to set a different uuid for each leg in [] braces, for example: <action application="set" data="uuid1=${create_uuid()}"/> <action application="set" data="uuid2=${create_uuid()}"/> <action application="set" data="uuid3=${create_uuid()}"/> <action application="bridge" data="[origination_uuid=${uuid1}]sofia/gateway/gw1/12345|[origination_uuid=${uuid2}]sofia/gateway/gw2/12345|[origination_uuid=${uuid3}]sofia/gateway/gw3/12345"/> fail_on_single_reject wouldn't help you if you're using {} since if you failover to the 2nd leg both 1st and 2nd leg would try using the same UUID On 29 July 2016 at 06:36, Petr Parýzek <PetrParyzek@seznam.cz<mailto:PetrParyzek@seznam.cz>> wrote: Thanks for reply! I'm using uuid created with create_uuid api function, so by my opinion it should be unique. The error began occur after I started using operator | for failover. So if I understand this correctly, with this operator origination_uuis can't be set. Is this correct? Petr From: freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org> [mailto:freeswitch-users-bounces@lists.freeswitch.org<mailto:freeswitch-users-bounces@lists.freeswitch.org>] On Behalf Of Anthony Minessale Sent: Thursday, July 28, 2016 11:42 PM To: FreeSWITCH Users Help Subject: Re: [Freeswitch-users] Duplicate UUID When you supply the uuid with origination_uuid, it becomes your duty to make sure its unique id the uuid is in use already it will fail. On Thu, Jul 28, 2016 at 5:36 AM, Petr Parýzek <PetrParyzek@seznam.cz<mailto:PetrParyzek@seznam.cz>> wrote: Hi all, I'm using Freeswitch with a few Javascript scripts like automatic phone dialer. Sometimes, when called party is BUSY, FS reports "Duplicate UUID!" error and the session was ended with case DESTINATION_OUT_OF_ORDER. This is contents of console from yesterday: 2016-07-27 20:46:56.249500 [INFO] amds.js:315 {origination_uuid=82b8a17d-c627-45dd-9eaf-86e9f31c57b1,origination_caller_id _number=950330980,origination_caller_id_name=AMDS}sofia/gateway/gw91/0725045 121|sofia/gateway/gw90/0725045121 2016-07-27 20:46:56.249500 [NOTICE] switch_channel.c:1105 New Channel sofia/external/0725045121 [82b8a17d-c627-45dd-9eaf-86e9f31c57b1] 2016-07-27 20:46:57.789511 [NOTICE] sofia.c:7891 Hangup sofia/external/0725045121 [CS_CONSUME_MEDIA] [USER_BUSY] 2016-07-27 20:46:57.799501 [CRIT] switch_core_session.c:2232 Duplicate UUID! 2016-07-27 20:46:57.799501 [CRIT] mod_sofia.c:4456 Error Creating Session 2016-07-27 20:46:57.799501 [NOTICE] switch_ivr_originate.c:2762 Cannot create outgoing channel of type [sofia] cause: [DESTINATION_OUT_OF_ORDER] 2016-07-27 20:46:57.799501 [NOTICE] switch_core_session.c:1664 Session 9903 (sofia/external/0725045121) Ended 2016-07-27 20:46:57.799501 [NOTICE] switch_core_session.c:1668 Close Channel sofia/external/0725045121 [CS_DESTROY] 2016-07-27 20:46:57.799501 [NOTICE] amds.js:86 Script exited with info [] Can anyone say what is wrong? Thanks! Petr _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto: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<mailto: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 -- Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬ ☞ http://freeswitch.org/ ☞ http://cluecon.com/ ☞ http://twitter.com/FreeSWITCH ☞ irc.freenode.net<http://irc.freenode.net> #freeswitch ☞ http://freeswitch.org/g+ ClueCon Weekly Development Call ☎ sip:888@conference.freeswitch.org<mailto:sip%3A888@conference.freeswitch.org> ☎ +19193869900<tel:%2B19193869900> https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org<mailto: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<mailto: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