sip.js.useragent.md

October 21, 2022 ยท View on GitHub

Home > sip.js > UserAgent

UserAgent class

A user agent sends and receives requests using a Transport.

Signature:

export declare class UserAgent 

Remarks

A user agent (UA) is associated with a user via the user's SIP address of record (AOR) and acts on behalf of that user to send and receive SIP requests. The user agent can register to receive incoming requests, as well as create and send outbound messages. The user agent also maintains the Transport over which its signaling travels.

Constructors

ConstructorModifiersDescription
(constructor)(options)Constructs a new instance of the UserAgent class.

Properties

PropertyModifiersTypeDescription
configurationRequired<UserAgentOptions>User agent configuration.
contactContactUser agent contact.
dataunknownProperty reserved for use by instance owner.
delegateUserAgentDelegate | undefinedDelegate.
instanceIdstringUser agent instance id.
stateUserAgentStateUser agent state.
stateChangeEmitter<UserAgentState>User agent state change emitter.
transportTransportUser agent transport.
userAgentCoreUserAgentCoreUser agent core.

Methods

MethodModifiersDescription
getLogger(category, label)The logger.
getLoggerFactory()The logger factory.
isConnected()True if transport is connected.
makeURI(uri)staticCreate a URI instance from a string.
reconnect()Reconnect the transport.
start()Start the user agent.
stop()Stop the user agent.