문제

Is there a way in Asterisk, how to detect proper status of the manager's connection to the Asterisk? (my point is the notification about failed connection to asterisk) I'm implementing visual indication to our java application (using Asterisk Java library), however from my point of view it is not working as one would expect.

There is a method getStatus() on ManagerConnection, but even if I disconnect network cable, the result is always CONNECTED. And I haven't observed anything similar I could use.

올바른 솔루션이 없습니다

다른 팁

Simple way:

  • set global variable PING in extensions.conf to 1
  • via manager get global variable value. If not 1, re-connect.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top