ecall_control v0.0.6 Ecall.Control
Make phone calls using modem with at commands.
Link to this section Summary
Functions
Accept incoming call
Returns a specification to start this module under a supervisor.
Make call to a number, the call is hung up afeter max_time
Hang up a stablished or stablishing call
open a serial device to send and receive AT commands
Reject incoming call
Start up a CallControl GenStateMachine.
Write command to serial port
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, max_time \\ :infinity)
accept(pid(), non_neg_integer()) :: :ok
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, number, max_time \\ 60000)
dial(pid(), String.t(), non_neg_integer()) :: :ok | {:error, term()}
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)
hang_up(pid()) :: :ok
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 a serial device to send and receive AT commands
Link to this function
reject(pid)
reject(pid)
reject(pid()) :: :ok
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 to serial port