Class CustomCallingContext
java.lang.Object
com.azure.communication.callautomation.models.CustomCallingContext
Custom calling context details.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a custom context sip UUI header.voidAdd a custom context sip X header.voidAdd a custom context voip header.Get list of custom context SIP headersGet list of custom context VOIP headers
-
Method Details
-
getSipHeaders
Get list of custom context SIP headers- Returns:
- list of custom context SIP headers
-
getVoipHeaders
Get list of custom context VOIP headers- Returns:
- list of custom context VOIP headers
-
addSipUui
Add a custom context sip UUI header. The Key always remains 'User-To-User'- Parameters:
value- custom context sip UUI header's value.- Throws:
IllegalStateException- If sipHeaders is null
-
addSipX
Add a custom context sip X header. The provided key is appended to 'X-MS-Custom-' in last.- Parameters:
key- custom context sip x header's key.value- custom context sip x header's value.- Throws:
IllegalStateException- If sipHeaders is null
-
addVoip
Add a custom context voip header.- Parameters:
key- custom context voip header's key.value- custom context voip header's value.- Throws:
IllegalStateException- If voipHeaders is null
-