ecall_control v0.0.5 Ecall.Control

Make phone calls using modem with at commands.

Link to this section Summary

Link to this section Functions

Link to this function

abnormal_end(event_type, event_content, data)

Link to this function

accept(pid, max_time \\ :infinity)
accept(pid(), non_neg_integer()) :: :ok

Accept incoming call

Link to this function

callback_mode()

Link to this function

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor in Elixir v1.6+.

Link to this function

connected(event_type, event_content, data)

Link to this function

dial(pid, number, max_time \\ 60000)
dial(pid(), String.t(), non_neg_integer()) :: :ok | {:error, term()}

Make call to a number, the call is hung up afeter max_time

Link to this function

handle_event(event_type, event_content, data)

Link to this function

hang_up(pid)
hang_up(pid()) :: :ok

Hang up a stablished or stablishing call

Link to this function

idle(event_type, event_content, data)

Link to this function

open_device(pid, name)
open_device(pid(), binary()) :: :ok | {:error, term()}

open a serial device to send and receive AT commands

Link to this function

reject(pid)
reject(pid()) :: :ok

Reject incoming call

Link to this function

setup(event_type, event_content, data)

Link to this function

start_link(port_module, opts \\ [])

Start up a CallControl GenStateMachine.

Link to this function

wait4_action(event_type, event_content, data)

Link to this function

wait4_answer(event_type, event_content, data)

Link to this function

wait4_dialing(event_type, event_content, data)

Link to this function

wait4_ring(event_type, event_content, data)

Link to this function

write_command(pid, cmd, value)
write_command(pid(), String.t(), String.t()) :: :ok

Write command to serial port