I’m trying to set the DND on an extension via SSH. I want to do this in order to get my home automation system (Home Assistant) to set the DND on my home office phone based on if my computer is locked. I started apost about this a year ago but couldn’t get it to work. I now have the time to revisit this. In that thread I was pointed towards this solution.
I put the file lgaetz-dnd.php in my /etc directory and am using this command with no luck:
[root@pbx etc]# lgaetz-dnd.php unset 320
-bash: lgaetz-dnd.php: command not found
[root@pbx etc]#
Where am I going wrong? I’d imagine it’s something simple that I’m not doing correctly.
If a script is not in the user’s PATH, The script needs to be called with a full reference, /etc is not in any normal path, so move it to somewhere appropriate or call it as