Server Build wcs_video, 885
We have added a diagnostic tool “Watchdog”.
The subsystem monitors Flashphoner server process and trying to register a predefined valid SIP account.
If the registration process is fail or if the Flashphoner server process is unavailable, the Watchdog will send you warning letter and automatically restart Flashphoner server.
After the restart, Flashphoner Watchdog will check registration again and send you confirmation email that the server is up and running.
Besides this, the watchdog will dump necessary logs before server reboot and save them a logs directory.
So we hope that your server will be more stable and more predictable.
Watchdog settings:
watchdog.properties
#JMX port. Leave as is.
client.jmx_port=50999
#JMX login. Leave as is.
client.jmx_login=admin
#JMX password. Leave as is.
client.jmx_password=admin
#Max number of failure count for registration. After this limit is reached, it will be a trigger for watchdog and its further actions.
client.max_failure_count=3
#If we have a failure, we will restore further chacking after this interval in milliseconds.
client.handle_failure_interval=60000
#We will check for failure each $failure_check_interval
client.failure_check_interval=20000
#Email, that will be used for all watchdog reports
client.notification.email=support@flashphoner.com
#It is a SIP account wich will be used for validation. Flashphoner will send SIP REGISTER request each failure_check_interval and it is expecting to get 200 OK SIP response for each request.
server.registration.credentials=login:account1,authenticationName:account1,password:12345,domain:sipnet.com,outboundProxy:sipnet.com,port:5060
#These are delimiters for the credentials
server.registration.credentials.delimiter1=,
server.registration.credentials.delimiter2=:
#SMTP mail settings. Use your own SMTP server here.
mail.smtp.auth=true
mail.smtp.starttls.enable=true
mail.smtp.host=smtp.gmail.com
mail.smtp.port=587
mail.username=test@flashphoner.com
mail.password=12345
How to use the watchdog:
#cd /usr/local/FlashphonerWebCallServer/bin
Running and stopping:
#./startup-watchdog.sh.sh
#./shutdown-watchdog.sh.sh
How to check the watchdog:
1. Try to kill the Flashphoner process.
ps aux | grep Flashphoner
kill -15 {pid}
Watchdog will run the process again and send you email.
2. Shutdown your SIP server or close outbound port 5060.
The watchdog will try to reboot server report you that you have SIP problems.