Rebooting the SPA112 with Bash
I use a Cisco SPA112 for VoIP lines and it has been acting up lately, occasionally dropping incoming calls when the handset is picked up.
Debugging the issue has been tricky because after applying new settings + a reboot, the problem doesn’t show up again until the device has been on for at least a week.
Instead of waiting for a failure and potentially missing some calls, I wrote a bash script to preemptively reboot the device.