Difference between revisions of "Trigger: Call Outgoing"

 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span style="color: #B22A2A; font-size: 24px; display: inline-block; margin-top: 15px; margin-bottom: 0px;"><strong>About</strong></span>
+
<pre class="header-style">
 +
This trigger will fire when an outgoing call is placed. You can specify a particular contact that the outgoing call is to, or alternatively you can specify that the call can be to Any Contact, a Non Contact or Any Number.
 +
</pre>
  
This trigger will fire when an outgoing call is placed.
+
''' Options '''
  
* ''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]''
+
* '''Select Contacts''' - Choose specific contacts from your contact list. You can select multiple contacts and optionally exclude them instead of matching.
 +
** '''Any Contact''' - Fires when calling any number saved in your contacts
 +
** '''Non Contact''' - Fires when calling a number not in your contacts
 +
** '''Unknown Caller''' - Fires when calling private or unknown numbers
  
<span style="color: #B22A2A; font-size: 24px; display: inline-block; margin-top: 15px; margin-bottom: 0px;"><strong>About this trigger</strong></span>
+
* '''Select Groups''' - Filter by contact groups (such as Favorites or Friends). The trigger fires when calling anyone within selected groups.
  
==<p><b>Supported configurations</b></p>==
+
* '''Select Number''' - Specify an exact or partial phone number to match. Supports wildcards and regular expressions.
 +
** '''Exclude''' - Option to trigger for all numbers EXCEPT the specified number
 +
** '''Enable Regex''' - Enable regular expression matching for advanced pattern matching
  
=== Select Contact(s) ===
+
* '''Any Number''' - Fires regardless of the number dialed
  
'''''Any Contact'''''
+
''' Magic Text '''
Active call from any contact.
 
  
'''''Non Contact'''''
+
When this trigger fires, the following value are available via magic text for use in subsequent actions.
Incoming call from a number not saved in your contacts.
 
  
'''''Unknown Caller'''''
+
* {call_number}
Incoming call from an unknown number.
+
* {call_name}
 +
* {call_groups}
  
=== Select Group(s) ===
+
''' Examples '''
  
These contacts belong to specific groups such as "My contacts", "Family", "Coworkers", or "Do not disturb friends".
+
Example 1: Set call volume to the maximum when making a work call.
  
=== Select Number ===
+
  <pre class="trigger-style">Triggers
  
When dialing USSD codes (e.g. **21.... ) on Android 14+, a UI Interaction action may be required to click the call button. Consider adding a Wait action before clicking to ensure the call screen is fully displayed.
+
Call Outgoing [Select Groups: Business]</pre>
 +
  <pre class="action-style">Actions
  
=== Any Number ===
+
Set Volume: Call (100%)</pre>
  
Any incoming call, regardless of the number.
+
Example 2: Log all outgoing calls
 +
 
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Call Outgoing [Any Number]</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Set Variable: call_log = [call_log] + "\n" + "OUT: " + [call_name_or_number] + " at " + [date_time]</pre>
 +
 
 +
''' Notes '''
 +
 
 +
* This trigger listens for the ACTION_NEW_OUTGOING_CALL broadcast.
 +
* When using contact-based options, the READ_CONTACTS permission is required.
 +
* The trigger fires before the call is actually placed.
 +
 
 +
''' Permissions Required '''
 +
 
 +
* PROCESS_OUTGOING_CALLS
 +
* READ_CONTACTS (when using contact or group-based filtering)
 +
 
 +
''' See Also '''
 +
 
 +
* [[Trigger:_Call_Active|Call Active Trigger]]
 +
* [[Trigger:_Call_Ended|Call Ended Trigger]]
 +
* [[Trigger:_Call_Incoming|Call Incoming Trigger]]
 +
* [[Trigger:_Call_Missed|Call Missed Trigger]]
 +
* [[Trigger:_Dial_Phone_Number|Dial Phone Number Trigger]]

Latest revision as of 22:15, 5 January 2026

This trigger will fire when an outgoing call is placed. You can specify a particular contact that the outgoing call is to, or alternatively you can specify that the call can be to Any Contact, a Non Contact or Any Number.

Options

  • Select Contacts - Choose specific contacts from your contact list. You can select multiple contacts and optionally exclude them instead of matching.
    • Any Contact - Fires when calling any number saved in your contacts
    • Non Contact - Fires when calling a number not in your contacts
    • Unknown Caller - Fires when calling private or unknown numbers
  • Select Groups - Filter by contact groups (such as Favorites or Friends). The trigger fires when calling anyone within selected groups.
  • Select Number - Specify an exact or partial phone number to match. Supports wildcards and regular expressions.
    • Exclude - Option to trigger for all numbers EXCEPT the specified number
    • Enable Regex - Enable regular expression matching for advanced pattern matching
  • Any Number - Fires regardless of the number dialed

Magic Text

When this trigger fires, the following value are available via magic text for use in subsequent actions.

  • {call_number}
  • {call_name}
  • {call_groups}

Examples

Example 1: Set call volume to the maximum when making a work call.

Triggers

Call Outgoing [Select Groups: Business]
Actions

Set Volume: Call (100%)

Example 2: Log all outgoing calls

Triggers

Call Outgoing [Any Number]
Actions

Set Variable: call_log = [call_log] + "\n" + "OUT: " + [call_name_or_number] + " at " + [date_time]

Notes

  • This trigger listens for the ACTION_NEW_OUTGOING_CALL broadcast.
  • When using contact-based options, the READ_CONTACTS permission is required.
  • The trigger fires before the call is actually placed.

Permissions Required

  • PROCESS_OUTGOING_CALLS
  • READ_CONTACTS (when using contact or group-based filtering)

See Also