FreePBX | Register | Issues | Wiki | Portal | Support

Connecting to Asterisk Manager from multiple .NET clients


(Kashif Iqbal) #1

Hi all,

We have a Freepbx server to which our four client applications (.NET) are connecting to its Asterisk manager for listening to its events. My question from experts is that:

  • Is connecting to the asterisk manager using 4 parallel connections ok?
  • Should we use a single asterisk manager account for all 4 agent applications or create a separate client account for each client application?
  • How reliable is manager connection as our all logic of client’s applications is working using these connections to asterisk manager.

(Tony Lewis) #2

I would never have multiple clients connected. You need to create a server piece for your software that connects to the AMI and than dispatches out to your clients what it needs. Do not have every client connected direct to the AMI. 1 security will be a nightmare and 2 more importantly the AMI is not designed for that and you need a proxy for that.


(Kashif Iqbal) #3

@tonyclewis,

As far as security is concerned, our applications and this whole setup is just under one roof and is limited to a single LAN.

Your 2nd point regarding AMI design, does the API can’t handle even 4 parallel connections?

What I understand is that you want to say that I should have a single server side client application listening to all Asterisk events and then this application should tell other client applications about the events those are generated by server for those extensions/agents. Right?


(Dave Burgess) #4

The AMI API isn’t particularly well suited to multiple access systems. It can do it, but there are lots of ways that you can walk on other people’s work.

Having a server-side application that creates an API that handles the AMI interface would actually be a cool thing.