SMPPEX.Pdu.Factory (smppex v3.0.4) View Source

Module for convenient generation of the most common PDUs.

Link to this section Summary

Link to this section Types

Specs

message() :: String.t() | {data_coding :: non_neg_integer(), String.t()}

Specs

message_state() :: non_neg_integer() | atom()

Link to this section Functions

Link to this function

bind(command_name, opts)

View Source

Specs

bind(atom(), map()) :: SMPPEX.Pdu.t()
Link to this function

bind(command_name, system_id, password, opts \\ %{})

View Source

Specs

bind(atom(), String.t(), String.t(), map()) :: SMPPEX.Pdu.t()
Link to this function

bind_receiver(system_id, password, opts \\ %{})

View Source

Specs

bind_receiver(String.t(), String.t(), map()) :: SMPPEX.Pdu.t()
Link to this function

bind_receiver_resp(command_status, system_id \\ "")

View Source

Specs

bind_receiver_resp(non_neg_integer(), String.t()) :: SMPPEX.Pdu.t()
Link to this function

bind_resp(command_id, command_status, system_id)

View Source

Specs

Link to this function

bind_transceiver(system_id, password, opts \\ %{})

View Source

Specs

bind_transceiver(String.t(), String.t(), map()) :: SMPPEX.Pdu.t()
Link to this function

bind_transceiver_resp(command_status, system_id \\ "")

View Source

Specs

bind_transceiver_resp(non_neg_integer(), String.t()) :: SMPPEX.Pdu.t()
Link to this function

bind_transmitter(system_id, password, opts \\ %{})

View Source

Specs

bind_transmitter(String.t(), String.t(), map()) :: SMPPEX.Pdu.t()
Link to this function

bind_transmitter_resp(command_status, system_id \\ "")

View Source

Specs

bind_transmitter_resp(non_neg_integer(), String.t()) :: SMPPEX.Pdu.t()
Link to this function

deliver_sm(source, dest, message)

View Source

Specs

Link to this function

deliver_sm_resp(command_status \\ 0)

View Source

Specs

deliver_sm_resp(non_neg_integer()) :: SMPPEX.Pdu.t()
Link to this function

delivery_report(message_id, source, dest, message \\ "", message_state \\ :DELIVERED)

View Source

Specs

Link to this function

delivery_report_for_submit_sm(message_id, submit_sm, message \\ "", message_state \\ :DELIVERED)

View Source

Specs

delivery_report_for_submit_sm(
  String.t(),
  SMPPEX.Pdu.t(),
  String.t(),
  message_state()
) :: SMPPEX.Pdu.t()

Specs

enquire_link() :: SMPPEX.Pdu.t()
Link to this function

submit_sm(source, dest, message, registered_delivery \\ 0)

View Source

Specs

Link to this function

submit_sm_resp(command_status, message_id \\ "")

View Source

Specs

submit_sm_resp(non_neg_integer(), String.t()) :: SMPPEX.Pdu.t()

Specs

unbind() :: SMPPEX.Pdu.t()
Link to this function

unbind_resp(command_status \\ 0)

View Source

Specs

unbind_resp(non_neg_integer()) :: SMPPEX.Pdu.t()