java.lang.Object
one.jpro.platform.sipjs.api.UserAgent
Represents a SIP user agent.
-
Constructor Summary
ConstructorsConstructorDescriptionUserAgent(UserAgentOptions options, com.jpro.webapi.WebAPI webapi) Creates a new user agent. -
Method Summary
Modifier and TypeMethodDescriptioncom.jpro.webapi.PromiseJSVariableGets the register promise.makeCall(String target, InviterOptions options) Makes a call to the given target.voidsetOnInvite(Consumer<Invitation> onInvite) Sets the onInvite consumer.
-
Constructor Details
-
UserAgent
Creates a new user agent.- Parameters:
options- The options for the user agent.webapi- The webapi.
-
-
Method Details
-
makeCall
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
Sets the onInvite consumer.- Parameters:
onInvite-
-
getRegisterPromise
public com.jpro.webapi.PromiseJSVariable getRegisterPromise()Gets the register promise. It might contains errors.- Returns:
-