I have a sangoma s500 at a remote location that loses its VPN connection and subsequently SIP registration a few minutes after the phone is rebooted. Is there a way to get a more verbose log than what is present in /var/log/messages? Is there any information available on how frequently the phone re-attempts the VPN connection if/when the VPN connection drops?
Replace eth0 with the ethernet device that your box uses.
nohup will make the tcpdump command to detach from the ssh connection and the & will send it to background. Let it run there and when the problem occurs and you want to stop it run the following command
ps aux | grep tcpdump
see what is the process number and then run
kill -9 processnumber
to stop the command. Then in your /var/log directory the tcpdump file will have all the packets that the eth0 device got during all this time.
Open it with wireshark and try to debug from there.
I’ll perform the packet capture today. From looking at the logs it appears that the VPN client on the phone never attempts to reconnect. When the phone detects that the VPN is no longer connected how often and how many times should it attempt to re-connect?