| Line 1: |
Line 1: |
| − | ===<p><b>About</b></p>===
| + | <pre class="header-style">The Call Active trigger fires when a standard phone call is actively in progress. This allows you to automate actions during phone calls, such as enabling speakerphone, adjusting volume, or recording call start times.</pre> |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | |
| − | This trigger is activated when a call is in progress.
| |
| − | </pre> | |
| − | * '''''When this trigger is present, you can use more [...]''''' '''''[https://macrodroidforum.com/wiki/index.php/Magic_text#Call_.28Active.2C_Ended.2C_Incoming.2C_Missed.2C_Outgoing.29 magic text]'''''
| |
| | | | |
| − | ==<p><b>Supported configurations</b></p>==
| + | ''' Options ''' |
| | | | |
| − | === Select Contact(s) ===
| + | * '''Select Contacts''' - Trigger for calls with specific contacts |
| | + | ** Choose from your contacts list |
| | + | ** Includes special options: Any Contact, Non Contact, Unknown Caller |
| | + | ** Option to exclude selected contacts instead of including them |
| | + | * '''Select Groups''' - Trigger for calls with contacts from specific groups |
| | + | ** Choose one or more contact groups (e.g., Favorites, Family, Work) |
| | + | * '''Specify Number''' - Trigger for a specific phone number |
| | + | ** Enter a phone number or partial number match |
| | + | ** Supports wildcards for partial matching |
| | + | ** Option to exclude the specified number |
| | + | ** Supports regex pattern matching |
| | + | ** Magic text can be used for dynamic numbers |
| | + | * '''Any Number''' - Trigger for any call regardless of the number |
| | | | |
| − | '''''Any Contact''''' | + | ''' Special Contact Types ''' |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| |
| − | Active call from any contact.
| |
| − | </pre>
| |
| − | '''''Non Contact'''''
| |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| |
| − | Call of any No Contact.
| |
| − | </pre>
| |
| − | '''''Unknown Caller'''''
| |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| |
| − | Call from an unknown contact.
| |
| − | </pre>
| |
| | | | |
| − | === Select Group(s) ===
| + | When selecting contacts, the following special options are available: |
| | + | * '''Any Contact''' - Triggers for any number that is saved in your contacts |
| | + | * '''Non Contact''' - Triggers for numbers not saved in your contacts |
| | + | * '''Unknown Caller''' - Triggers for private/hidden numbers |
| | | | |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| + | ''' Magic Text ''' |
| − | These are contacts that are in one or more groups e.g. (My contacts, Family, Coworkers, Do not disturb friends).
| |
| − | </pre>
| |
| | | | |
| − | === Select Number ===
| + | When this trigger fires, the following value are available via magic text for use in subsequent actions. |
| | | | |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
| + | * {call_number} |
| − | Please note that dialing USSD codes (e.g. **21.... ) on Android 14+ may need to be followed by a UI Interaction action to click the call button.
| + | * {call_name} |
| − | You may need a Wait action before the click
| + | * {call_groups} |
| − | operation to ensure the call screen has finished displaying.
| |
| − | </pre>
| |
| | | | |
| − | === Any Number ===
| + | ''' Examples ''' |
| | | | |
| − | <pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;"> | + | ''Example 1: Enable Speakerphone for Work Calls'' |
| − | Any number, no configuration required.
| + | <pre class="trigger-style">Triggers |
| − | </pre> | + | |
| | + | Call Active (Group: Work)</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Speakerphone On</pre> |
| | + | |
| | + | ''Example 2: Log Unknown Caller Calls'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Call Active (Unknown Caller)</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Write to File: Unknown call at [date_time]</pre> |
| | + | |
| | + | ''' Notes ''' |
| | + | |
| | + | * This trigger fires when a call becomes active (answered), not when ringing |
| | + | * An outgoing call is considered active as soon as you have dialled out (It's not possible to detect when the recipient accepts the call |
| | + | * The trigger monitors both incoming and outgoing calls |
| | + | * Contact exclusion allows you to trigger for "all except" certain contacts |
| | + | * A background service monitors the phone state for this trigger to work |
| | + | * USSD codes on Android 14+ may require a UI interaction action to click the call button |
| | + | |
| | + | ''' Permissions Required ''' |
| | + | |
| | + | * '''Read Phone State''' - Required to monitor call state |
| | + | * '''Read Contacts''' - Required for contact-based filtering |
| | + | * '''Read Call Log''' - Required for call information access |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Trigger:_Call_Incoming|Call Incoming Trigger]] |
| | + | * [[Trigger:_Call_Ended|Call Ended Trigger]] |
| | + | * [[Trigger:_Call_Missed|Call Missed Trigger]] |