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

error :: {:error, String.t}

Functions

delete(sid)

Specs:

Delete a call from the ETS table by its SID.

lookup(sid)

Specs:

Find a given call in the ETS table by its SID.

save(call)

Specs:

Save a call to the ETS table.

table()

Specs:

  • table :: integer

Retrieve the ID of the ETS table.