Re: Moving the Asterisk Bridge from one Asterisk to another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Let me answer your last question first.

 

Asterisk doesn’t handle multiple Stasis applications connecting with the same name. The relationship between Asterisk and Stasis application is one to one (one web socket per application name). However, you can get round this using an ARI proxy (see below). Using an ARI proxy allows you to

1.      Have multiple instances of your application run on multiple servers

2.      Provide load balancing between application servers

3.      Failover support for your application

 

There are two implementations of an ARI proxy. The first written by me, in .NET (supports mono)can be found here https://github.com/skrusty/AsterNET-ARI-Proxy

The second is written in GoLang and can be found here: https://github.com/nvisibleinc/go-ari-proxy

 

You can read about the concepts behind ARI proxy on my blog. http://www.xdev.net/2015/09/18/distributed-applications-with-ari/

 

With regards to stopping new calls in Asterisk, you can use the stop graceful cli command to prevent new calls from being processed on that asterisk box.

 

Hope that helps a little,

 

Ben

 

From: asterisk-app-dev-bounces@xxxxxxxxxxxxxxxx [mailto:asterisk-app-dev-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Nitesh Bansal
Sent: 13 May 2016 14:56
To: Asterisk Application Development discussion <asterisk-app-dev@xxxxxxxxxxxxxxxx>
Subject: [asterisk-app-dev] Moving the Asterisk Bridge from one Asterisk to another

 

Hello,

I'm working on an ARI based bridging application.

My concern is how to gracefully handle the failovers, upgrades.

In case of planned upgrade, 0
I can see following possibilities but I have no clue about how they
will work out?
1. Move the Bridge to the new Asterisk?

2. Bridge the old asterisk to the new asterisk, but don't forward any new

    calls to the Asterisk under upgrade. Wait for call count to drop to zero

    for Asterisk under upgrade.

 

3. Let first Asterisk run until the call count drops to zero, keep accepting calls

for the existing bridge, but forward any new Bridge request to the new Asterisk.

How does Asterisk behaving if multiple ARI clients connect with Asterisk for the same

Stasis application?

 

Any ideas/recommendations?

 

Regards,

Nitesh


No virus found in this message.
Checked by AVG - www.avg.com
Version: 2016.0.7597 / Virus Database: 4568/12208 - Release Date: 05/11/16

_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev

[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux