/message-sending-metrics

Kannel helper class (to send and receive SMS messages) in Python

Primary LanguagePython

This is a series of testing and benchmarking scripts for kannel. With these scripts, you can tweak your kannel settings off of real data...

Setup

This assumes that you have set up Kannel correctly. Using Linux, you can start the following sequence of steps

  • /usr/lib/kannel/test/test_http_server -p 20022
  • /usr/sbin/bearerbox /etc/kannel/kannel.conf
  • /usr/sbin/smsbox /etc/kannel/kannel.conf

kannel.conf used can be found here, you can copy or save a copy of your existing confs:

Prerequisites to running the test

You will get the best results if you flush out your existing logs, restart your smsbox/bearerbox and start "CLEAN".

Logs to flush out or clear include:

  • /var/log/kannel/smsbox.log
  • /var/log/kannel/bearerbox.log

Note: location for these logs might be a lot different from system to system.

Running the test

When kannel has restarted successfully, run speedtest.py; posting to kannel will take a short while, now, the wait begins before you actually run the second test found inside logfileparser/kannelparser.py

Observe from the bearbox output in the terminal, even when messages are "sent" to kannel, they still have to be processed, and this kind of output is typically shown. When all this "message churning" is complete, run python logfileparser/kannelparser.py