Queries PagerDuty every now and then and en/disable the appropriate support phone extension according to the PagerDuty schedule.
Install all files in the same directory ($INST_DIR).
Update the config file with your information.
When adding a new user, make sure the call forwarding feature is enabled
on her/his deskphone or softphone to allow proper forwarding.
From cron:
*/5 * * * * phoneagent [ ! -x $INST_DIR/Phone_Agent.py ] && \
chmod 744 $INST_DIR/Phone_Agent.py; \
$INST_DIR/Phone_Agent.py $INST_DIR/Phone_Agent.conf now now >> \
$INST_DIR/Phone_Agent.log 2>&1
Note: By using the test option [-t], we will not call out.
This is better used with the '-d' [debug] option as well (as shown here):
$INST_DIR/Phone_Agent.py -dt $INST_DIR/Phone_Agent.conf '2018-09-14T09:00:00-08:00' 0
Also, make sure there is only one instance of Phone_Agent running.