Do not resume player before we reset the audio

This commit is contained in:
Willow Barraco
2023-12-27 17:24:21 +01:00
parent 3fe7b2bb1e
commit f9e8ed1667
4 changed files with 7 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
#!/bin/sh
# This script is executed after the last call finished
sxmo_playerctl.sh resume_all

View File

@@ -1,5 +1,3 @@
#!/bin/sh
# This script is executed (asynchronously) when you hangup an incoming call
sxmo_playerctl.sh resume_all

View File

@@ -10,5 +10,3 @@
# kill existing ring playback
sxmo_jobs.sh stop ringing
sxmo_playerctl.sh resume_all

View File

@@ -103,6 +103,8 @@ checkforfinishedcalls() {
if ! sxmo_modemaudio.sh reset_audio; then
sxmo_notify_user.sh --urgency=critical "We failed to reset call audio"
fi
sxmo_hook_after_call.sh
else
# Or refresh the menu
sxmo_jobs.sh start incall_menu sxmo_modemcall.sh incall_menu