I'm trying to cancel a task / profile (I'm new so I think the right term is task) if I have an ongoing call. Incoming or outcoming call is irrelevant, just any call = abort task.
I don't actually know the answer, but I would think you could make an if statement in any given task and check to see if a call is active then do the thing, and if not don't do the thing
No need for stop action in current task or global variable,just a profile with its own task with only stop all tasks action and high priority. After current action in the first task is done,all tasks will be stopped.
2
u/extio-Storm Oct 19 '26
I don't actually know the answer, but I would think you could make an if statement in any given task and check to see if a call is active then do the thing, and if not don't do the thing
2
u/Sate_Hen Oct 19 '26
Set up a profile with the state call any that sets a global variable (eg %Call to 1). You'll need to set an exit task that clears the variable
Stop actions in your task with the if statement if %Call is set
1
u/sasreedit S22, GW5P Nov 01 '26
To add to the answers... You can also stop further Tasks from starting during the call as well, if necessary.
In the Call Profile, you can use the Profile Status Action to turn off any other Profile that you wouldn't want to run while on a call.