Add a new pickup hook that trigger on accept incoming calls

Signed-off-by: Reed Wade <reedwade@misterbanal.net>
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
master
Reed Wade 4 years ago committed by Maarten van Gompel
parent 7066b54897
commit 6f94bb8159
  1. 3
      scripts/modem/sxmo_modemcall.sh

@ -86,6 +86,9 @@ acceptcall() {
modem_cmd_errcheck -m "$(modem_n)" -o "$CALLID" --start
log_event "call_start" "$CALLID"
elif [ "$DIRECTION" = "incoming" ]; then
if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/pickup" ]; then
"$XDG_CONFIG_HOME/sxmo/hooks/pickup" &
fi
modem_cmd_errcheck -m "$(modem_n)" -o "$CALLID" --accept
log_event "call_pickup" "$CALLID"
else

Loading…
Cancel
Save