hi,here is my ami config:
[cdr]
secret = v1danetw0rk
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,dialplan,dtmf
eventfilter=!Event: VarSet
eventfilter=!Event: PeerStatus
eventfilter=!uEvent: NewCallerId
eventfilter=!uEvent: Unknown
and when connect ami ,the cli show like below,the filedes? don’t konw what’s mean,always glow ,sometime lke 2000+… and the client lost lot’s of events… the pbxserver have large calls per miniter. when there is small calls,it’s okay.
[root@VCIGAA logs]# asterisk -x ‘manager show connected’
Setting max files open to 20000
Username IP Address Start Elapsed FileDes HttpCnt Read Write
cdr 127.0.0.1 1602319492 28 1533 0 02307 00016
1 users connected.
here is the client
ManagerConnectionFactory connectionFactory = new ManagerConnectionFactory(server_ip, server_port,server_username, server_password);
managerConnection = connectionFactory.createManagerConnection();
while (true) {
try {
managerConnection.addEventListener(this);
managerConnection.setSocketTimeout(5000);
managerConnection.setSocketReadTimeout(300 * 1000);
managerConnection.login();
setConnected(true);
log.info(“login success({}:{}。”, server_ip, server_port);
break;
} catch (Exception e) {
setConnected(false);
log.error(“login fail:{}”, server_ip, server_port, e);
}
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}