summaryrefslogtreecommitdiffstats
path: root/src/smsutil.c
AgeCommit message (Collapse)AuthorFilesLines
2010-06-21smsutil: Take ton_npi into account in sr assemblyDenis Kenzior1-14/+7
2010-06-21smsutil: More code cleanupDenis Kenzior1-47/+54
- Change the flow of the code a bit, in the case that all fragments have been sent and an udelivered sr arrives, we can simply remove the node and signal undelivered up - We ignore temporary and temporary final status reports
2010-06-21smsutil: Make code flow easier to understandDenis Kenzior1-52/+53
2010-06-21smsutil: multiline comments to preferred styleDenis Kenzior1-3/+7
2010-06-21smsutil: Minor code style & indentation fixesDenis Kenzior1-10/+9
2010-06-21smsutil: memcpy is preferable to struct assignmentDenis Kenzior1-1/+1
2010-06-21smsutil: Streamline flow of sr add_fragmentDenis Kenzior1-22/+7
2010-06-21smsutil: Status report assemblyPasi Miettinen1-0/+183
2010-06-18smsutil: Add a decoder for ussd pdusYang Gu1-0/+44
2010-06-07smsutil: Add option to use delivery reportsPasi Miettinen1-2/+3
2010-06-04smsutil: status reports also lead with SC_ADDRDenis Kenzior1-1/+2
2010-06-01smsutil: Don't overflow signed intsDenis Kenzior1-5/+5
We were overflowing the datatype which was causing the 31st segments to be prepended at position 0. This resulted in (very) long messages being improperly concatenated
2010-05-28smsutils: add some documentationInaky Perez-Gonzalez1-0/+7
sms_assembly_add_fragment_backup: clarify how insertion spot is found
2010-05-27smsutil: add sms_decode_unpacked_stk_pdu functionDenis Kenzior1-0/+52
Properly check the special 'packing required' sms pdus sent by SIM toolkit.
2010-05-27smsutil: Check that udl is less than 140Yang Gu1-0/+3
2010-05-26simutil: Add sim_encode_bcd_numberDenis Kenzior1-19/+1
2010-05-26smsutil: Update the doc for extract_bcd_numberDenis Kenzior1-0/+4
2010-05-25smsutil: Expose SMS timestamp encoding utilityAndrzej Zaborowski1-7/+7
The function can be re-used in stkutil.c, similarly to sms_decode_scts.
2010-04-02Make function decode_scts publicYang Gu1-6/+6
2010-04-02Refactor: Break out semi-octet decoderYang Gu1-6/+11
Refactor decode_scts to use this function
2010-02-04Fix: Unnecessary initializationsDenis Kenzior1-2/+2
2010-02-04Fix: missing break statementDenis Kenzior1-0/+2
2010-02-03Fix: Check for \r in UCS2 alphabetsDenis Kenzior1-1/+1
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-12-17Style: Fix a few more occurences of if/elseDenis Kenzior1-4/+8
See Linux coding style document for details
2009-12-17Add utility for checking if CBS topic is in rangeAndrzej Zaborowski1-1/+21
2009-11-05Rename sms assembly path to sms_assembly from smsDenis Kenzior1-1/+1
Not to interfere with sms settings storage
2009-10-16Fix: Don't return NULL if message is emptyDenis Kenzior1-5/+0
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-16Fix: Skip over empty messagesAndrzej Zaborowski1-0/+3
2009-10-15Fix: Quiet a warning on some compilersDenis Kenzior1-2/+2
2009-10-02Fix: Handle empty SMSesDenis Kenzior1-2/+4
If an SMS is empty (e.g. nothing to unpack) then we should simply continue on.
2009-09-17Use existing function for converting to iso639Denis Kenzior1-1/+1
2009-09-10Add ability to expire PLMN wide messagesDenis Kenzior1-1/+10
2009-09-10Handle empty topic range listsDenis Kenzior1-0/+3
2009-09-10Make cbs_topic_ranges_to_string work with all idsDenis Kenzior1-1/+7
2009-09-10Add CBS topic range functionsDenis Kenzior1-0/+212
2009-09-08Fix make distcheckDenis Kenzior1-2/+0
2009-09-08Rework SMS fragment backup storageDenis Kenzior1-9/+47
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-08Fix style issueDenis Kenzior1-4/+3
2009-09-08Fix off by one error in assembly serializeDenis Kenzior1-1/+1
The proper PDU was not being written out fully
2009-09-08Write state of SMS assembly to disk and restore on startup.Andrzej Zaborowski1-3/+211
This way we can continue receiving segmented messages over a reset or crash.
2009-09-08Do supported dialect detection in sms.cDenis Kenzior1-0/+8
2009-09-08Use SMS national language identifier when decodingAki Niemi1-2/+61
Adds support for decoding SMSs encoded using national language single shift and locking shift tables.
2009-08-21Fix getting the offset into sms fragment bitmap.Andrzej Zaborowski1-1/+1
Otherwise only 64 fragments fit.
2009-08-06Add whitespace properlyDenis Kenzior1-1/+1
2009-08-05Expose address encode/decode utilitiesAndrzej Zaborowski1-16/+20
These can be used elsewhere, in particular for decoding the enhanced message waiting notification ieis
2009-08-05Add encode_bcd_number utility functionAndrzej Zaborowski1-0/+11
2009-07-14Fix stupid false positive warnings about uninitialized variablesMarcel Holtmann1-9/+14
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-13Fix signedness warningsDenis Kenzior1-3/+4
2009-07-13Fix unused variablesDenis Kenzior1-2/+0