request() = term()
response() = term()
result() = {trans_server(), [ersip_trans_se:effect()]}
state() = Trying | Proceeding | Completed | Terminated
trans_server() = #trans_server{state = state(), last_resp = response() | undefined, transport = reliable | unreliable, options = ersip:sip_options()}
trans_server_map() = #{state => state(), last_resp => response() | undefined, transport => reliable | unreliable, options => ersip:sip_options()}
event/2 | |
from_map/1 | |
has_final_response/1 | Transaction has sent final response. |
new/3 | Create new ServerTrans transaction. |
to_map/1 |
event(Event, ServerTrans::trans_server()) -> result()
Event = {timer, timer_j} | {send, ersip_sipmsg:sipmsg()} | retransmit
from_map(Map::trans_server_map()) -> trans_server()
has_final_response(Trans_server::trans_server()) -> boolean()
Transaction has sent final response
new(Reliable, Request, Options) -> result()
Reliable = reliable | unreliable
Request = request()
Options = ersip:sip_options()
Create new ServerTrans transaction. Result of creation is ServerTrans state and set of side effects that produced because of creation.
to_map(Trans::trans_server()) -> trans_server_map()