Changes

no edit summary
Line 1: Line 1: −
===<p><b>About</b></p>===
+
<pre class="header-style">
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
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.
This trigger will fire when an outgoing call is placed.
   
</pre>
 
</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''' - 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
   −
'''''Any Contact'''''
+
* '''Select Groups''' - Filter by contact groups (such as Favorites or Friends). The trigger fires when calling anyone within selected groups.
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
 
Active call from any contact.
+
* '''Select Number''' - Specify an exact or partial phone number to match. Supports wildcards and regular expressions.
</pre>
+
** '''Exclude''' - Option to trigger for all numbers EXCEPT the specified number
'''''Non Contact'''''
+
** '''Enable Regex''' - Enable regular expression matching for advanced pattern matching
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
 
Call of any No Contact.
+
* '''Any Number''' - Fires regardless of the number dialed
</pre>
+
 
'''''Unknown Caller'''''
+
''' Magic Text '''
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
 
Call from an unknown contact.
+
When this trigger fires, the following value are available via magic text for use in subsequent actions.
</pre>
+
 
 +
* {call_number}
 +
* {call_name}
 +
* {call_groups}
 +
 
 +
''' Examples '''
 +
 
 +
Example 1: Set call volume to the maximum when making a work call.
 +
 
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Call Outgoing [Select Groups: Business]</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
Set Volume: Call (100%)</pre>
 +
 
 +
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>
   −
=== Select Group(s) ===
+
''' Notes '''
   −
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
* This trigger listens for the ACTION_NEW_OUTGOING_CALL broadcast.
These are contacts that are in one or more groups e.g. (My contacts, Family, Coworkers, Do not disturb friends).
+
* When using contact-based options, the READ_CONTACTS permission is required.
</pre>
+
* The trigger fires before the call is actually placed.
   −
=== Select Number ===
+
''' Permissions Required '''
   −
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
* PROCESS_OUTGOING_CALLS
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.
+
* READ_CONTACTS (when using contact or group-based filtering)
You may need a Wait action before the click
  −
operation to ensure the call screen has finished displaying.
  −
</pre>
     −
=== Any Number ===
+
''' See Also '''
   −
<pre style="background-color: #ACC8E5; color: #112A46; border-radius: 10px; padding: 10px;">
+
* [[Trigger:_Call_Active|Call Active Trigger]]
Any number, no configuration required.
+
* [[Trigger:_Call_Ended|Call Ended Trigger]]
</pre>
+
* [[Trigger:_Call_Incoming|Call Incoming Trigger]]
 +
* [[Trigger:_Call_Missed|Call Missed Trigger]]
 +
* [[Trigger:_Dial_Phone_Number|Dial Phone Number Trigger]]