sms: SMS where cropped (from VTY), concatenation of SMS where not possible
authorDennis Wehrle <dennis.wehrle@rz.uni-freiburg.de>
Sun, 24 Jul 2011 18:14:13 +0000 (20:14 +0200)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 24 Jul 2011 18:14:13 +0000 (20:14 +0200)
commit291e61346bb55d0462c07bf078cab3bb7eec2241
tree7ad60ee02aa3cd494b92d1c8362320d1cf4dfd47
parentc0dbe0be056df7992800276cee01e106272ccd2b
sms: SMS where cropped (from VTY), concatenation of SMS where not possible

Additionally it wasn't possible to send concatenated sms from the vty.
To send multiple sms, it is necessary to use padding bits and add a user_data_header.
Therefore the gsm_7bit_encode function was splitted to gsm_7bit_encode and gsm_septets2octets.
gsm_septets2octets: this is the old gsm_7bit_encode function + additional padding parameter

Additionally the gsm_7bit_decode function was modified to take account for the user_data_header.
With the new gsm_get_octet_len function you can get the octet length for a given septet length.

I also added several sms tests.
include/osmocom/gsm/gsm_utils.h
src/gsm/gsm_utils.c
tests/sms/sms_test.c