Difference between revisions of "Constraint: Call State"

 
Line 1: Line 1:
<span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span>
+
<pre class="header-style">This constraint allows or prevents a macro/feature from running based on the current call state.</pre>
  
This constraint can be used to allow a trigger to fire only when a cellular call is active/ not active.
+
''' Options '''
 +
 
 +
* '''In Call''': Constraint passes only when a call is active
 +
* '''Not In Call''': Constraint passes only when no call is active
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: Enable speakerphone when unplugging headphones during a call''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Headphones Insert/Removed - Disconnected</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Speakerphone On/Off (Enable)</pre>
 +
  <pre class="constraint-style">Constraints
 +
 
 +
Call State - In Call</pre>
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger: Call Active|Call Active Trigger]]
 +
* [[Action: Speakerphone On/Off|Speakerphone On/Off Action]]

Latest revision as of 11:13, 9 January 2026

This constraint allows or prevents a macro/feature from running based on the current call state.

Options

  • In Call: Constraint passes only when a call is active
  • Not In Call: Constraint passes only when no call is active

Example

Example 1: Enable speakerphone when unplugging headphones during a call

Triggers

Headphones Insert/Removed - Disconnected
Actions

Speakerphone On/Off (Enable)
Constraints

Call State - In Call

See Also