Share via


CustomCallingContext Class

  • java.lang.Object
    • com.azure.communication.callautomation.models.CustomCallingContext

public final class CustomCallingContext

Custom calling context details.

Method Summary

Modifier and Type Method and Description
void addSipUui(String value)

Add a custom context sip UUI header.

void addSipX(String key, String value)

Add a custom context sip X header.

void addSipX(String key, String value, SipHeaderPrefix prefix)

Add a custom context sip X header.

void addVoip(String key, String value)

Add a custom context voip header.

Map<String,String> getSipHeaders()

Get list of custom context SIP headers

Map<String,String> getVoipHeaders()

Get list of custom context VOIP headers

Methods inherited from java.lang.Object

Method Details

addSipUui

public void addSipUui(String value)

Add a custom context sip UUI header. The Key always remains 'User-To-User'

Parameters:

value - custom context sip UUI header's value.

addSipX

public void addSipX(String key, String value)

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.

addSipX

public void addSipX(String key, String value, SipHeaderPrefix prefix)

Add a custom context sip X header. The provided key is appended to 'X-' or "X-MS-Custom-" in last.

Parameters:

key - custom context sip x header's key.
value - custom context sip x header's value.
prefix - The prefix to use for the header.

addVoip

public void addVoip(String key, String value)

Add a custom context voip header.

Parameters:

key - custom context voip header's key.
value - custom context voip header's value.

getSipHeaders

public Map<String,String> getSipHeaders()

Get list of custom context SIP headers

Returns:

list of custom context SIP headers

getVoipHeaders

public Map<String,String> getVoipHeaders()

Get list of custom context VOIP headers

Returns:

list of custom context VOIP headers

Applies to