ReadonlyurlURI of the remote peer, as given to the implementation. Only used for logging.
Readonlysip_SIP URI of the socket, used to build the Route header field of outgoing
requests when the UA is configured with a preloaded route (for example
sip:sip.example.com:443;transport=ws).
Transport protocol to announce in the Via header field of outgoing
requests (for example WSS).
Called by the library when the socket availability for sending and receiving data is required.
Called by the library when the given data needs to be sent.
true if the data was successfully sent, false otherwise.
Whether the transport is up and able to send.
Whether the transport is in the middle of connecting.
Must be called when the socket becomes usable for sending and receiving data, after Socket.connect was called or an unsolicited disconnection occurred.
Must be called when the socket becomes unusable for sending or receiving data.
Whether the socket disconnected due to an error.
Optionalcode: numberSocket disconnection code, if any.
Optionalreason: stringSocket disconnection reason, if any.
Abstracts the library from the mechanism used to send and receive SIP traffic.
Implementations must follow this interface in order to get the library working with the underlying transport mechanism, and are given to the UA in its
socketsconfiguration parameter.Remarks
Example