File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
articles/communication-services/how-tos/call-automation Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -234,6 +234,42 @@ var sipHeaders = callCustomContext.SipHeaders;
234
234
235
235
// Proceed to answer or reject call as usual
236
236
```
237
+
238
+ ### [ Java] ( #tab/java )
239
+ ``` java
240
+ AcsIncomingCallEventData incomingEvent = < incoming call event from Event Grid > ;
241
+ // Retrieve incoming call custom context
242
+ AcsIncomingCallCustomContext callCustomContext = incomingEvent. getCustomContext();
243
+
244
+ // Inspect dictionary with key/value pairs
245
+ Map<String , String > voipHeaders = callCustomContext. getVoipHeaders();
246
+ Map<String , String > sipHeaders = callCustomContext. getSipHeaders();
247
+
248
+ // Proceed to answer or reject call as usual
249
+ ```
250
+
251
+ ### [ JavaScript] ( #tab/javascript )
252
+ ``` javascript
253
+ // Retrieve incoming call custom context
254
+ const callCustomContext = incomingEvent .customContext ;
255
+
256
+ // Inspect dictionary with key/value pairs
257
+ const voipHeaders = callCustomContext .voipHeaders ;
258
+ const sipHeaders = callCustomContext .sipHeaders ;
259
+
260
+ // Proceed to answer or reject call as usual
261
+ ```
262
+
263
+ ### [ Python] ( #tab/python )
264
+ ``` python
265
+ # Retrieve incoming call custom context
266
+ callCustomContext = incomingEvent.customContext
267
+
268
+ # Inspect dictionary with key/value pairs
269
+ voipHeaders = callCustomContext.voipHeaders
270
+ sipHeaders = callCustomContext.sipHeaders
271
+ ```
272
+
237
273
-----
238
274
# Additional resources
239
275
You can’t perform that action at this time.
0 commit comments