@@ -20,12 +20,20 @@ class ApiCreateCallRequest implements \JsonSerializable
20
20
public $ from ;
21
21
22
22
/**
23
- * Format is E164
23
+ * Format is E164 or SIP URI
24
24
* @required
25
25
* @var string $to public property
26
26
*/
27
27
public $ to ;
28
28
29
+ /**
30
+ * When calling a SIP URI, this will be sent as the 'User-To-User' header within the initial INVITE. An
31
+ * 'encoding' parameter must be specified as described in https://tools.ietf.org/html/rfc7433. This
32
+ * header cannot exceed 256 characters, including the encoding parameter.
33
+ * @var string|null $uui public property
34
+ */
35
+ public $ uui ;
36
+
29
37
/**
30
38
* @todo Write general description for this property
31
39
* @var double|null $callTimeout public property
@@ -129,25 +137,26 @@ class ApiCreateCallRequest implements \JsonSerializable
129
137
*/
130
138
public function __construct ()
131
139
{
132
- if (18 == func_num_args ()) {
140
+ if (19 == func_num_args ()) {
133
141
$ this ->from = func_get_arg (0 );
134
142
$ this ->to = func_get_arg (1 );
135
- $ this ->callTimeout = func_get_arg (2 );
136
- $ this ->callbackTimeout = func_get_arg (3 );
137
- $ this ->answerUrl = func_get_arg (4 );
138
- $ this ->answerFallbackUrl = func_get_arg (5 );
139
- $ this ->username = func_get_arg (6 );
140
- $ this ->password = func_get_arg (7 );
141
- $ this ->fallbackUsername = func_get_arg (8 );
142
- $ this ->fallbackPassword = func_get_arg (9 );
143
- $ this ->answerMethod = func_get_arg (10 );
144
- $ this ->answerFallbackMethod = func_get_arg (11 );
145
- $ this ->disconnectUrl = func_get_arg (12 );
146
- $ this ->disconnectMethod = func_get_arg (13 );
147
- $ this ->tag = func_get_arg (14 );
148
- $ this ->applicationId = func_get_arg (15 );
149
- $ this ->obfuscatedTo = func_get_arg (16 );
150
- $ this ->obfuscatedFrom = func_get_arg (17 );
143
+ $ this ->uui = func_get_arg (2 );
144
+ $ this ->callTimeout = func_get_arg (3 );
145
+ $ this ->callbackTimeout = func_get_arg (4 );
146
+ $ this ->answerUrl = func_get_arg (5 );
147
+ $ this ->answerFallbackUrl = func_get_arg (6 );
148
+ $ this ->username = func_get_arg (7 );
149
+ $ this ->password = func_get_arg (8 );
150
+ $ this ->fallbackUsername = func_get_arg (9 );
151
+ $ this ->fallbackPassword = func_get_arg (10 );
152
+ $ this ->answerMethod = func_get_arg (11 );
153
+ $ this ->answerFallbackMethod = func_get_arg (12 );
154
+ $ this ->disconnectUrl = func_get_arg (13 );
155
+ $ this ->disconnectMethod = func_get_arg (14 );
156
+ $ this ->tag = func_get_arg (15 );
157
+ $ this ->applicationId = func_get_arg (16 );
158
+ $ this ->obfuscatedTo = func_get_arg (17 );
159
+ $ this ->obfuscatedFrom = func_get_arg (18 );
151
160
}
152
161
}
153
162
@@ -159,6 +168,7 @@ public function jsonSerialize()
159
168
$ json = array ();
160
169
$ json ['from ' ] = $ this ->from ;
161
170
$ json ['to ' ] = $ this ->to ;
171
+ $ json ['uui ' ] = $ this ->uui ;
162
172
$ json ['callTimeout ' ] = $ this ->callTimeout ;
163
173
$ json ['callbackTimeout ' ] = $ this ->callbackTimeout ;
164
174
$ json ['answerUrl ' ] = $ this ->answerUrl ;
0 commit comments