Hi Rick!
My english is poor so sorry about it:)
As I see AMI sends _ALL_ messages to the client when any event occurs and as I found in the ADM source code You filter event messages by checking if an event channel is a member of your channel list. If It is you fire the event, if it's not you do nothing.
If I'll run 100+ ADM users will it be working fine? I'm afraid of large net traffic to every user and depended performance problem.
Thank you!
I have never used it yet
I have never used it yet (but i plan to try) the latest version of AstMan Proxy should be sufficient for your needs.
Anyway 100 users would probably not really cause MASSIVE traffic but still, it is inefficient.
tested astmanproxy
Update: I have just checked out the git repository for astmanproxy and installed and tested it with ADM.
You need to add a user in /etc/asterisk/astmanproxy.users like
username=password
then tell ADM to log into port 1234 and the astman proxy hostname
You can also filter astman proxy users per channel like this
username=password,SIP/1000 will only send that ADM user events for the SIP/1000 channel and no other traffic !
I cannot do that
Hello Rick
I could not use ADM with astmanproxy.
I tried astmanprox V1.20, 1.21 and trunk
ADM : V1.3
astmanproxy connects well to AMI as I have a lot of traffic in my console when launching "astmanproxy -dddddddddddd"
But I still have an error in ADM saying that my authentication failed
Here is my astmanproxy conf files :
; astmanproxy.conf
host = 192.168.0.204, 5038, astmanproxy, foo, on, off
retryinterval = 2
maxretries = 10
sslclienthellotimeout = 200
acceptencryptedconnection = yes
acceptunencryptedconnection = yes
asteriskwritetimeout=100
clientwritetimeout=200
listenaddress = 192.168.0.211
listenport = 1234
authrequired = yes
proc_user = apache
proc_group = apache
inputformat = standard
outputformat = standard
logfile = /var/log/asterisk/astmanproxy.log
; Astmanproxy user list
myusername=mypassword
I try to connect with ADM from 192.168.0.205 using :
address: 192.168.0.211
port: 1234
user : myusername
pwd : mypassword
Here are my logs in astmanproxy :
Aug 10 19:06:51: is_encrypted: 0
Aug 10 19:06:51: Connection received from 192.168.0.205
Aug 10 19:06:51: Set 192.168.0.205 input format to standard
Aug 10 19:06:51: Set 192.168.0.205 output format to standard
Aug 10 19:06:51: calling standard_read...
Aug 10 19:06:51: standard_read result = 1
Aug 10 19:06:51: calling standard_read...
Aug 10 19:06:53: standard_read result = -1
Aug 10 19:06:53: Connection closed: 192.168.0.205
Aug 10 19:06:53: --- exiting session_do thread ---
Could you help ?
Regards
Cyril
Hello Ric, I could not
Hello Ric,
I could not make it work, and appreciate your help. In the debug mode, it shows that astmanproxy connects to the manager and the user ADM is loaded.
Jul 23 18:01:24: perm: ADM, adm
Jul 23 18:01:24: asterisk@127.0.0.1: Allocated server session
Jul 23 18:01:24: Set 127.0.0.1 input format to standard
Jul 23 18:01:24: Set 127.0.0.1 output format to standard
Jul 23 18:01:24: asterisk@127.0.0.1: Connecting (u=astmanproxy, p=xxx, ssl=off)
Jul 23 18:01:24: returning ast_connect with 4
Jul 23 18:01:24: asterisk@127.0.0.1: attempting read...
Jul 23 18:01:24: launched ast localhost thread!
Cannot bind to listener socket!
I give the following configuration in ADM:
Hostname: IP address of the Asterisk server
Port: 1234 (as in the config file)
username: as in astmanproxy.users
Pwd: as in astmanproxy.users
But ADM gives error " The authentication to asterisk manager failed. Check username and password"
Jul 23 18:08:32: is_encrypted: 0
Jul 23 18:08:32: Connection received from 192.168.1.107
Jul 23 18:08:32: Set 192.168.1.107 input format to http
Jul 23 18:08:32: Set 192.168.1.107 output format to xml
Jul 23 18:08:34: res=-1, line:
Jul 23 18:08:34: Connection closed: 192.168.1.107
Jul 23 18:08:34: Freed entire stack.
Jul 23 18:08:34: --- exiting session_do thread ---
Can you please help me. the version i use.
astmanproxy -v : Version 1.22pre081119
ADM:1.3
thank you.
Thank you!:)
Rick, thank you very much!:)