Skip to content

ten0s/smppsink

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Prerequisites

In order to compile smppsink you need to have Erlang/OTP 19+ and GNU Make installed.

Compilation

$ git https://github.com/ten0s/smppsink.git
$ cd smppsink
$ make

Tests

$ test/test.sh

Starting/stopping

$ _build/default/rel/smppsink/bin/smppsink start
$ _build/default/rel/smppsink/bin/smppsink stop

Debugging console

$ _build/default/rel/smppsink/bin/smppsink console

Usage

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

More examples

Packages

No packages published

Languages

  • Erlang 70.5%
  • Shell 28.1%
  • Makefile 1.4%