Class UserAgent

java.lang.Object
one.jpro.platform.sipjs.api.UserAgent

public class UserAgent extends Object
Represents a SIP user agent.
  • Constructor Details

    • UserAgent

      public UserAgent(UserAgentOptions options, com.jpro.webapi.WebAPI webapi)
      Creates a new user agent.
      Parameters:
      options - The options for the user agent.
      webapi - The webapi.
  • Method Details

    • makeCall

      public CompletableFuture<Inviter> makeCall(String target, InviterOptions options)
      Makes a call to the given target.
      Parameters:
      target - The target.
      options - The options.
      Returns:
      A completable future that completes when the call is established.
    • setOnInvite

      public void setOnInvite(Consumer<Invitation> onInvite)
      Sets the onInvite consumer.
      Parameters:
      onInvite -
    • getRegisterPromise

      public com.jpro.webapi.PromiseJSVariable getRegisterPromise()
      Gets the register promise. It might contains errors.
      Returns: