Ha zute... ça règle en parti mon problème.
Pour ce qui est de la réponse du réveil ok.
Par contre j'ai un script shell qui tourne en tâche de fond, surveillant les status Expired et Failed afin de notifier l'accueil d'un non réveil.
Code:
#!/bin/sh
while true ;
do
###########################################################################
# Check the existing .call files from roomx within outgoing_done directory.
###########################################################################
ls /var/spool/asterisk/outgoing_done/roomx_wakeup_*.call 1>/dev/null 2>&1 && res=OK || res=KO
R1=""
R2=""
################################
# Check Expired and Failed files.
################################
if [ $res == "OK" ] && [ ! -f /var/spool/asterisk/outgoing_done/flag ] ; then
R1=$(grep -l Expired /var/spool/asterisk/outgoing_done/roomx_wakeup_*.call)
R2=$(grep -l Failed /var/spool/asterisk/outgoing_done/roomx_wakeup_*.call)
fi
###########################################################
# If last test is true, then sending alert to the operator.
###########################################################
if [ "$R1" != "" ]||[ "$R2" != "" ] ; then
touch /var/spool/asterisk/outgoing_done/flag
echo "Channel: Local/100@from-internal" >> /var/spool/asterisk/tmp/alert.call
echo "CallerID: Alert <100>" >> /var/spool/asterisk/tmp/alert.call
echo "MaxRetries: 3" >> /var/spool/asterisk/tmp/alert.call
echo "RetryTime: 60" >> /var/spool/asterisk/tmp/alert.call
echo "WaitTime: 30" >> /var/spool/asterisk/tmp/alert.call
echo "Application: Playback" >> /var/spool/asterisk/tmp/alert.call
echo "Data: roomx/alert" >> /var/spool/asterisk/tmp/alert.call
echo "Priority: 1" >> /var/spool/asterisk/tmp/alert.call
echo "Extension: 100" >> /var/spool/asterisk/tmp/alert.call
mv /var/spool/asterisk/tmp/alert.call /var/spool/asterisk/outgoing/
chgrp asterisk /var/spool/asterisk/outgoing/alert.call
chown asterisk /var/spool/asterisk/outgoing/alert.call
fi
####################
# Wait 15 seconds #
####################
sleep 15
done
Là même cas, la langue est par défaut.