You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
app_originate: Allow setting Caller ID and variables
Caller ID can now be set on the called channel and
Variables can now be set on the destination
using the Originate application, just as
they can be currently using call files
or the Manager Action.
ASTERISK-29450
Change-Id: Ia64cfe97d2792bcbf4775b3126cad662922a8b66
<para>The caller ID number to use for the called channel. Default is
100
+
the current channel's Caller ID number.</para>
101
+
</option>
102
+
<option name="n">
103
+
<para>The caller ID name to use for the called channel. Default is
104
+
the current channel's Caller ID name.</para>
105
+
</option>
106
+
<option name="v" argsep="^">
107
+
<para>A series of channel variables to set on the destination channel.</para>
108
+
<argument name="var1" multiple="true" argsep="=">
109
+
<argument name="name" required="true" />
110
+
<argument name="value" required="true" />
111
+
</argument>
112
+
</option>
101
113
</optionlist>
102
114
</parameter>
103
115
</syntax>
104
116
<description>
105
117
<para>This application originates an outbound call and connects it to a specified extension or application. This application will block until the outgoing call fails or gets answered. At that point, this application will exit with the status variable set and dialplan processing will continue.</para>
106
-
107
118
<para>This application sets the following channel variable before exiting:</para>
108
119
<variablelist>
109
120
<variable name="ORIGINATE_STATUS">
@@ -128,11 +139,17 @@ enum {
128
139
OPT_PREDIAL_CALLEE= (1 << 0),
129
140
OPT_PREDIAL_CALLER= (1 << 1),
130
141
OPT_ASYNC= (1 << 2),
142
+
OPT_CALLER_NUM= (1 << 3),
143
+
OPT_CALLER_NAME= (1 << 4),
144
+
OPT_VARIABLES= (1 << 5),
131
145
};
132
146
133
147
enum {
134
148
OPT_ARG_PREDIAL_CALLEE,
135
149
OPT_ARG_PREDIAL_CALLER,
150
+
OPT_ARG_CALLER_NUM,
151
+
OPT_ARG_CALLER_NAME,
152
+
OPT_ARG_VARIABLES,
136
153
/* note: this entry _MUST_ be the last one in the enum */
0 commit comments