funbox / smppex

✉️ SMPP 3.4 protocol and framework implementation in Elixir
MIT License
106 stars 34 forks source link

Error then converting from Oserl #93

Open saneery opened 1 week ago

saneery commented 1 week ago

SMPPEX.Pdu.Oser.from/1 doesn't support CALLBACK_NUM field

** (Protocol.UndefinedError) protocol String.Chars not implemented for {:badarg, [{:erlang, :list_to_binary, [[{:callback_num, 1, 2, 1, 'MYSUPERNUMBER'}]], [error_info: %{module: :erl_erts_errors}]}, {SMPPEX.Pdu.Oserl, :list_to_string, 1, [file: 'lib/smppex/pdu/oserl.ex', line: 96]}, {Enum, :"-map/2-lists^map/1-0-", 2, [file: 'lib/enum.ex', line: 1593]}, {Enum, :"-map/2-lists^map/1-0-", 2, [file: 'lib/enum.ex', line: 1593]}, {SMPPEX.Pdu.Oserl, :from, 1, [file: 'lib/smppex/pdu/oserl.ex', line: 48]}
savonarola commented 1 week ago

Hello!

I doubt that anyone still supports this repo. However, the https://hex.pm/packages/smppex package is supported here: https://github.com/savonarola/smppex

A PR with a fix will be highly appreciated.