Add a missed call hook
Signed-off-by: Stacy Harper <contact@stacyharper.net> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
51bc9ab8b8
commit
378fe01738
1 changed files with 5 additions and 0 deletions
|
@ -73,6 +73,11 @@ checkforfinishedcalls() {
|
||||||
mmcli -m "$(modem_n)" --voice-delete-call "$FINISHEDCALLID"
|
mmcli -m "$(modem_n)" --voice-delete-call "$FINISHEDCALLID"
|
||||||
rm -f "$NOTIFDIR/incomingcall_${FINISHEDCALLID}_notification"* #there may be multiple actionable notification for one call
|
rm -f "$NOTIFDIR/incomingcall_${FINISHEDCALLID}_notification"* #there may be multiple actionable notification for one call
|
||||||
|
|
||||||
|
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/missed_call" ]; then
|
||||||
|
echo "sxmo_modemmonitor: Invoking missed call hook (async)">&2
|
||||||
|
"$XDG_CONFIG_HOME/sxmo/hooks/missed_call" "$CONTACTNAME" &
|
||||||
|
fi
|
||||||
|
|
||||||
TIME="$(date --iso-8601=seconds)"
|
TIME="$(date --iso-8601=seconds)"
|
||||||
mkdir -p "$LOGDIR"
|
mkdir -p "$LOGDIR"
|
||||||
if [ -f "$CACHEDIR/${FINISHEDCALLID}.discardedcall" ]; then
|
if [ -f "$CACHEDIR/${FINISHEDCALLID}.discardedcall" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue