| Line 1: |
Line 1: |
| | <pre class="header-style"> | | <pre class="header-style"> |
| − | This trigger will fire when you dial the specified number in the standard phone dialer. By default, the call will be stopped when the number is dialed, but you may configure the trigger to allow the call to continue. | + | This trigger will fire when you dial the specified number in the standard phone dialer. By default the call will be stopped when the number is dialed, but you may configure the trigger to allow the call to continue. |
| | </pre> | | </pre> |
| | + | |
| | + | ''' Options ''' |
| | + | |
| | + | * '''Phone Number''' - Enter the phone number that should trigger the macro when dialed. |
| | + | |
| | + | * '''Make Call''' - When enabled, allows the call to proceed after the trigger fires. When disabled (default), the call is blocked and only the macro actions are executed. |
| | + | |
| | + | ''' Examples ''' |
| | + | |
| | + | Example 1: Speed dial replacement |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Dial Phone Number [*123]</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Call: +1-555-123-4567</pre> |
| | + | |
| | + | Example 2: Log emergency calls |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Dial Phone Number [911] (Make Call: enabled)</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Set Variable: emergency_call_time = {hour}:{minute}:{second} |
| | + | Send Location via SMS to: Emergency Contact</pre> |
| | + | |
| | + | Example 3: Secret code to toggle settings |
| | + | |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Dial Phone Number [*#*#7890#*#*]</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Toggle WiFi |
| | + | Toggle Bluetooth |
| | + | Notification: Secret settings toggled</pre> |
| | + | |
| | + | ''' Notes ''' |
| | + | |
| | + | * This trigger intercepts outgoing calls before they are placed by listening for ACTION_NEW_OUTGOING_CALL. |
| | + | * When "Make Call" is disabled, the number is effectively blocked from being dialed. |
| | + | * This can be used to create custom speed dial codes or secret codes. |
| | + | * On Android 10+, MacroDroid requests the ROLE_CALL_SCREENING permission to ensure reliable operation. |
| | + | * On Android 15+, the ANSWER_PHONE_CALLS permission is also required. |
| | + | |
| | + | ''' Permissions Required ''' |
| | + | |
| | + | * PROCESS_OUTGOING_CALLS |
| | + | * ANSWER_PHONE_CALLS (Android 15+) |
| | + | * Call Screening role (Android 10+) |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Trigger:_Call_Outgoing|Call Outgoing Trigger]] |
| | + | * [[Action:_Call|Call Action]] |