Commit Graph

75 Commits

Author SHA1 Message Date
Yang Gu b20e0d2bf5 Make function decode_scts public 2010-04-02 11:00:56 -05:00
Yang Gu 8bc04ba93a Refactor: Break out semi-octet decoder
Refactor decode_scts to use this function
2010-04-02 10:58:53 -05:00
Denis Kenzior ad5b2fd26f Fix: Unnecessary initializations 2010-02-04 00:24:14 -06:00
Denis Kenzior 08b26238c1 Fix: missing break statement 2010-02-04 00:05:57 -06:00
Denis Kenzior fa433a6acc Fix: Check for \r in UCS2 alphabets 2010-02-03 23:28:41 -06:00
Marcel Holtmann 144080e749 Update copyright information 2010-01-01 17:00:10 -08:00
Denis Kenzior 955e6a61ee Style: Fix a few more occurences of if/else
See Linux coding style document for details
2009-12-17 21:45:39 -06:00
Andrzej Zaborowski a964411180 Add utility for checking if CBS topic is in range 2009-12-17 21:45:38 -06:00
Denis Kenzior 1fb5d7191e Rename sms assembly path to sms_assembly from sms
Not to interfere with sms settings storage
2009-11-05 16:42:15 -06:00
Denis Kenzior eb2c60469c Fix: Don't return NULL if message is empty
Empty SMS messages are in sms_decode_text are returned as NULL, e.g.
error.  This shouldn't be the case, empty messages should be reported
and signaled.
2009-10-16 13:19:11 -05:00
Andrzej Zaborowski 30b86c1dda Fix: Skip over empty messages 2009-10-16 11:50:42 -05:00
Denis Kenzior 9f9327e1e5 Fix: Quiet a warning on some compilers 2009-10-15 16:15:18 -05:00
Denis Kenzior 9ab5eba1da Fix: Handle empty SMSes
If an SMS is empty (e.g. nothing to unpack) then we should simply
continue on.
2009-10-02 19:26:11 -05:00
Denis Kenzior e2a4c4bee8 Use existing function for converting to iso639 2009-09-17 11:53:37 -05:00
Denis Kenzior 40ef883fe4 Add ability to expire PLMN wide messages 2009-09-10 17:40:16 -05:00
Denis Kenzior 2ade0f6b05 Handle empty topic range lists 2009-09-10 16:13:16 -05:00
Denis Kenzior c559aa42f6 Make cbs_topic_ranges_to_string work with all ids 2009-09-10 16:13:16 -05:00
Denis Kenzior 52d3c235d5 Add CBS topic range functions 2009-09-10 16:13:15 -05:00
Denis Kenzior 1acf350190 Fix make distcheck 2009-09-08 16:52:12 -05:00
Denis Kenzior 3449b2c0b5 Rework SMS fragment backup storage
The SMS address can actually contain other characters than 0-9, +, *, #,
particularly when the alphanumeric address type is used.  This is
commonly used by services such as Google or carrier specific SMS
services.

Rework the SMS address storage to simply re-use the SMS address pdu
format, which consists of up to 12 hex-encoded bytes.
2009-09-08 16:40:56 -05:00
Denis Kenzior 47bcf1ac18 Fix style issue 2009-09-08 16:40:38 -05:00
Denis Kenzior 785686ec6b Fix off by one error in assembly serialize
The proper PDU was not being written out fully
2009-09-08 16:39:16 -05:00
Andrzej Zaborowski 06ea6137a3 Write state of SMS assembly to disk and restore on startup.
This way we can continue receiving segmented messages over a reset or
crash.
2009-09-08 14:44:39 -05:00
Denis Kenzior b2bde46bfb Do supported dialect detection in sms.c 2009-09-08 12:45:04 -05:00
Aki Niemi dab84882af Use SMS national language identifier when decoding
Adds support for decoding SMSs encoded using national language single
shift and locking shift tables.
2009-09-08 14:16:24 +03:00
Andrzej Zaborowski 64ade1c7c8 Fix getting the offset into sms fragment bitmap.
Otherwise only 64 fragments fit.
2009-08-21 19:46:39 -05:00
Denis Kenzior c2144be486 Add whitespace properly 2009-08-06 17:29:55 -05:00
Andrzej Zaborowski ad6b8adebb Expose address encode/decode utilities
These can be used elsewhere, in particular for decoding the
enhanced message waiting notification ieis
2009-08-05 13:19:54 -05:00
Andrzej Zaborowski 4c3ae72b36 Add encode_bcd_number utility function 2009-08-05 13:17:08 -05:00
Marcel Holtmann feb36e2d5b Fix stupid false positive warnings about uninitialized variables
The GCC check for uninitialized variables is so useful that dealing
with the false positives is just a minor inconvenience.

The following GCC trick helps to silence them:

	#define uninitialized_var(x) x = x

This way no code obfuscation is needed to compile smoothly and the
code stays readable. And the author has to actually think about it.
2009-07-14 06:06:46 +02:00
Denis Kenzior f298b7ac98 Fix signedness warnings 2009-07-13 22:33:47 -05:00
Denis Kenzior 03c7dcf024 Fix unused variables 2009-07-13 22:33:47 -05:00
Denis Kenzior a9f776123e Add Cell Broadcast assembly utilities 2009-07-02 19:03:05 -05:00
Denis Kenzior 807201e969 Fix memory leak 2009-07-02 19:03:05 -05:00
Denis Kenzior d717908c69 Don't hardcode 2009-07-02 19:03:04 -05:00
Denis Kenzior e391d8d581 Add CBS Text converter utility 2009-07-02 19:03:04 -05:00
Denis Kenzior ac56263a57 Add cbs lang to ISO 639 conversion utility 2009-07-02 19:03:04 -05:00
Denis Kenzior 8d99a2a25f Add app-port extraction utility for CBS 2009-07-02 19:03:04 -05:00
Denis Kenzior d73dae9f2a Make sms_udh_iter work for Cell Broadcast messages 2009-07-02 19:03:04 -05:00
Denis Kenzior b1602d49e5 Add Cell Broadcast encoding / decoding utilities 2009-07-02 19:03:04 -05:00
Denis Kenzior 97d53bf0ec Add DCS decoder for Cell Broadcast 2009-07-02 19:03:04 -05:00
Denis Kenzior 17b7444b47 Make compiler happy 2009-06-22 13:22:14 -05:00
Denis Kenzior b42c2bc79f Some fixes to sms_text_prepare 2009-06-19 21:13:56 -05:00
Denis Kenzior 61a4b0fee9 Add address from string utility for SMS 2009-06-19 21:13:54 -05:00
Denis Kenzior 990ab62207 Update unit tests 2009-06-19 21:13:20 -05:00
Denis Kenzior 16118320fd Utility to create SMS, both fragmented and not 2009-06-19 21:12:37 -05:00
Denis Kenzior 492795c4c8 Add utility function 2009-06-19 21:12:19 -05:00
Denis Kenzior b49479b2b4 Minor style issue 2009-06-19 21:12:18 -05:00
Denis Kenzior 314478c756 Add a new extract_bcd_number utility 2009-06-18 04:02:10 -05:00
Denis Kenzior c892f36dc2 Return slist elements back to the allocator 2009-06-17 18:20:17 -05:00