davies147 / astmanproxy

Asterisk Manager Proxy
27 stars 10 forks source link

Server shuts down if none of the hosts from the configuration connect successfully #16

Open TerehinAV opened 4 years ago

TerehinAV commented 4 years ago

Hi!

My case is: I have some configuration file with ami servers list, which can be updated dynamically. It can't be guarantied that all of them working well at start. I use this config file to generate astmanproxy's one.

As far as I know from readme, astmanproxy supports proxy actions such as AddServer/DropServer/ListSessions to control connections.

Is it possible to update code in the way like follows?

  1. Host list in config is not a necessary option.
  2. After server start with no hosts in config, clients can manage connections via proxy actions.

Same problem arrives when I drop all connections via proxy action DropServer - server just shutdown when no any connections.

Thanks in advance!

TerehinAV commented 4 years ago

If no any successfull connections at astmanproxy's start - ProxyActions are not available, so I can't use AddServer or DropServer actions to manage sessions.