Class CustomCallingContext

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

public final class CustomCallingContext extends Object
Custom calling context details.
  • Method Details

    • 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
    • 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.
      Throws:
      IllegalStateException - If sipHeaders is null
    • 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.
      Throws:
      IllegalStateException - If sipHeaders is null
    • 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.
      Throws:
      IllegalStateException - If voipHeaders is null