sippet v0.1.3 Sippet.Core behaviour
A behaviour module for implementing the Sippet.Core
.
The Sippet.Core
designates a particular type of SIP entity, i.e., specific
to either a stateful or stateless proxy, a user agent or registrar.
Summary
Functions
Dispatches the network transport error to the registered Sippet.Core
implementation
Dispatches the received request to the registered Sippet.Core
implementation
Dispatches the received response to the registered Sippet.Core
implementation
Callbacks
Sends receives an error from the transaction
Receives a new incoming request from a remote host, or ACK
Receives a response for a sent request
Functions
receive_error(reason :: term, Sippet.Transaction.Client.t | Sippet.Transaction.Server.t) :: any
Dispatches the network transport error to the registered Sippet.Core
implementation.
receive_request(Sippet.Message.request, Sippet.Transaction.Server.t | nil) :: any
Dispatches the received request to the registered Sippet.Core
implementation.
receive_response(Sippet.Message.response, Sippet.Transaction.Client.t | nil) :: any
Dispatches the received response to the registered Sippet.Core
implementation.
Callbacks
receive_error(reason :: term, client_or_server_transaction :: Sippet.Transaction.Client.t | Sippet.Transaction.Server.t) :: any
Sends receives an error from the transaction.
receive_request(incoming_request :: Sippet.Message.request, server_transaction :: Sippet.Transaction.Server.t | nil) :: any
Receives a new incoming request from a remote host, or ACK.
The server_transaction
receive_response(incoming_response :: Sippet.Message.response, client_transaction :: Sippet.Transaction.Client.t | nil) :: any
Receives a response for a sent request.