From cd7762d92a58ac818385876d8a47f37f081d8bfb Mon Sep 17 00:00:00 2001 From: Reed Wade Date: Mon, 2 Nov 2020 23:09:07 +0100 Subject: [PATCH] The ring hook was blocking the notification writing. The hook must be run asynchronously. This allow ringtones to be played using mpv by exemple. Signed-off-by: Reed Wade Signed-off-by: Maarten van Gompel --- scripts/modem/sxmo_modemmonitor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modem/sxmo_modemmonitor.sh b/scripts/modem/sxmo_modemmonitor.sh index aca23ea..a2d21cd 100755 --- a/scripts/modem/sxmo_modemmonitor.sh +++ b/scripts/modem/sxmo_modemmonitor.sh @@ -69,7 +69,7 @@ checkforincomingcalls() { INCOMINGNUMBER=$(lookupnumberfromcallid "$VOICECALLID") if [ -x "$XDG_CONFIG_HOME/sxmo/hooks/ring" ]; then - "$XDG_CONFIG_HOME/sxmo/hooks/ring" "$(sxmo_contacts.sh | grep -E "^\\$INCOMINGNUMBER")" + "$XDG_CONFIG_HOME/sxmo/hooks/ring" "$(sxmo_contacts.sh | grep -E "^\\$INCOMINGNUMBER")" & else sxmo_vibratepine 2500 & fi