@@ -229,6 +229,9 @@ AcsIncomingCallCustomContext callCustomContext = incomingEvent.CustomContext;
229
229
var voipHeaders = callCustomContext .VoipHeaders ;
230
230
var sipHeaders = callCustomContext .SipHeaders ;
231
231
232
+ // Get SIP UUI header value
233
+ var userToUser = sipHeaders [" user-To-User" ]
234
+
232
235
// Proceed to answer or reject call as usual
233
236
```
234
237
@@ -242,6 +245,9 @@ AcsIncomingCallCustomContext callCustomContext = incomingEvent.getCustomContext(
242
245
Map < String , String > voipHeaders = callCustomContext .getVoipHeaders ();
243
246
Map < String , String > sipHeaders = callCustomContext .getSipHeaders ();
244
247
248
+ // Get SIP UUI header value
249
+ String userToUser = sipHeaders .get (" user-To-User" );
250
+
245
251
// Proceed to answer or reject call as usual
246
252
```
247
253
@@ -254,6 +260,9 @@ const callCustomContext = incomingEvent.customContext;
254
260
const voipHeaders = callCustomContext .voipHeaders ;
255
261
const sipHeaders = callCustomContext .sipHeaders ;
256
262
263
+ // Get SIP UUI header value
264
+ const userToUser = sipHeaders[" user-To-User" ];
265
+
257
266
// Proceed to answer or reject call as usual
258
267
```
259
268
@@ -265,6 +274,11 @@ callCustomContext = incomingEvent.customContext
265
274
# Inspect dictionary with key/value pairs
266
275
voipHeaders = callCustomContext.voipHeaders
267
276
sipHeaders = callCustomContext.sipHeaders
277
+
278
+ # Get SIP UUI header value
279
+ userToUser = sipHeaders.get(" user-To-User" )
280
+
281
+ # Proceed to answer or reject call as usual
268
282
```
269
283
270
284
-----
0 commit comments