I believe you want enterprise originate :_:

${call1}:_:${call2} -- will call both 1 and 2 at the same time and the first to answer takes the call.

In your example, with fail overs, it looks like:

originate sofia/gateway/provider_1/919246461001|sofia/gateway/provider_2/919246461001:_:sofia/gateway/provider_1/919246461002|sofia/gateway/provider_2/919246461002 5000

... using it in an originate command I don't know for sure if it will work, I've only used it in a bridge command.


-Avi

On Wed, May 27, 2015 at 7:10 PM, Dmitry Mordovin <dm@dwide.com> wrote:
Hi all,

For sample:
- Have two voip gateways: provider_1 and provider_2
- Need originate multiple destinations at the same time, protected
through each gateway

So, originate would be like:

originate
(sofia/gateway/provider_1/919246461001|sofia/gateway/provider_2/919246461001),(sofia/gateway/provider_1/919246461002|sofia/gateway/provider_2/919246461002)
5000

Explain.

Originate calls to 919246461001 and 919246461002 parallel through
provider_1, if provider_1 failed, try provider_2

Does any one did it?

_________________________________________________________________________
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