Telephonist.OngoingCall
Stores the state of calls that are currently in progress in an ETS table.
Summary↑
delete(sid) | Delete a call from the ETS table by its SID |
lookup(sid) | Find a given call in the ETS table by its SID |
save(call) | Save a call to the ETS table |
table() | Retrieve the ID of the ETS table |
Types ↑
sid :: atom
call :: {sid, status, Telephonist.State.t}
Functions
Specs:
Delete a call from the ETS table by its SID.
Specs:
Find a given call in the ETS table by its SID.
Specs:
- save(call) :: :ok
Save a call to the ETS table.
Specs:
- table :: integer
Retrieve the ID of the ETS table.