smppex v0.3.1 SMPPEX.Pdu.Oserl

Module for converting SMPPEX Pdu structs to format used by Oserl library.

Summary

Functions

Converts PDU from Oserl format to SMPPEX Pdu

Converts SMPPEX Pdu to Oserl format

Types

t :: {command_id :: non_neg_integer, command_status :: non_neg_integer, sequence_number :: non_neg_integer, [{field_name :: atom, field_value :: term}]}

Functions

from(oserl_pdu)

Specs

from(oserl_pdu :: SMPPEX.Pdu.Oserl.t) :: SMPPEX.Pdu.t

Converts PDU from Oserl format to SMPPEX Pdu.

to(pdu)

Specs

Converts SMPPEX Pdu to Oserl format.

Unknown optional values are ignored, since Oserl stores them by symbolic names.