diff options
author | Harald Welte <laforge@gnumonks.org> | 2014-12-30 00:43:39 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-12-30 00:43:39 +0100 |
commit | 65f676dac581d5ff6240aa76104d38df2cbf93ab (patch) | |
tree | 0d257b53948511e33f3d133ed224cfac48cdcfba | |
parent | 63b156a9e04546dae0970e658cfd2d4d1230ced4 (diff) |
test
-rw-r--r-- | tests/smscb/gsm0341_test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/smscb/gsm0341_test.c b/tests/smscb/gsm0341_test.c index 5b728899..cbd3721b 100644 --- a/tests/smscb/gsm0341_test.c +++ b/tests/smscb/gsm0341_test.c @@ -37,8 +37,11 @@ struct gsm341_ms_message *gen_msg_from_text(uint16_t msg_id, const char *text) uint8_t payload[text_len]; int payload_octets; + srand(time(NULL)); + gsm_7bit_encode_n(payload, sizeof(payload), text, &payload_octets); - cbmsg = gsm0341_build_msg(NULL, 0, 23, 0, msg_id, 0xf0, 1, 1, payload, payload_octets); + //cbmsg = gsm0341_build_msg(NULL, 0, rand(), 0, msg_id, 0x0f, 1, 1, payload, payload_octets); + cbmsg = gsm0341_build_msg(NULL, 0, rand(), 0, msg_id, 0x00, 1, 1, payload, payload_octets); printf("%s\n", osmo_hexdump_nospc((uint8_t *)cbmsg, sizeof(*cbmsg)+payload_octets)); |