SMPPEX.Pdu.source

You're seeing just the function source, go back to SMPPEX.Pdu module for more information.

Specs

source(t()) :: addr()

Returns Pdu's :source_addr, :source_addr_ton and :source_addr_npi fields in a tuple.

Examples

iex(1)> pdu = SMPPEX.Pdu.new(4, %{source_addr: "from", source_addr_ton: 1, source_addr_npi: 2})
iex(2)> SMPPEX.Pdu.source(pdu)
{"from", 1, 2}