In order to compile smppsink you need to have Erlang/OTP 19+ and GNU Make installed.
$ git https://github.com/ten0s/smppsink.git $ cd smppsink $ make
$ test/test.sh
$ _build/default/rel/smppsink/bin/smppsink start $ _build/default/rel/smppsink/bin/smppsink stop
$ _build/default/rel/smppsink/bin/smppsink console
In order to run the examples below you need to have smppload.
Return submit status 0x1 (invalid message length) after 1 sec
$ smppload -P8002 -tsmpp -itest -ptest -s375296660002 -d375296543210 -b"submit:{status:1,delay:1}" -D INFO: Connected to 127.0.0.1:8002 INFO: Bound to smppsink ERROR: Failed with: (0x00000001) Message Length is invalid. INFO: Stats: INFO: Send success: 0 INFO: Delivery success: 0 INFO: Send fail: 1 INFO: Delivery fail: 0 INFO: Errors: 0 INFO: Avg Rps: 0 mps INFO: Unbound
Return submit status 0x0 (success) after 1 sec, then send delivery receipt "DELIVERED" after 5 secs
smppload -P8002 -tsmpp -itest -ptest -s375296660002 -d375296543210 -b"{submit:{status:0,delay:1},receipt:{status:delivered,delay:5}}" -D INFO: Connected to 127.0.0.1:8002 INFO: Bound to smppsink INFO: Stats: INFO: Send success: 1 INFO: Delivery success: 1 INFO: Send fail: 0 INFO: Delivery fail: 0 INFO: Errors: 0 INFO: Avg Rps: 0 mps INFO: Unbound