The UserAgentCore class is the central engine for SIP entity processing in SIP.js. It implements the logic required for specific SIP roles, such as a User Agent (UAC/UAS), a Registrar, or a Stateful Proxy.
In the SIP architecture, UserAgentCore resides above the transaction and transport layers. It manages the lifecycle of SIP dialogs, handles incoming requests and responses from the transport layer, and provides methods to initiate various SIP methods (like INVITE, REGISTER, or SUBSCRIBE).
Key responsibilities include:
- Managing
dialogs (a Map of active SIP dialogs). - Managing
userAgentClients (UACs) and userAgentServers (UASs). - Handling transport-level messages via
receiveIncomingRequestFromTransport and receiveIncomingResponseFromTransport.