summaryrefslogtreecommitdiffstats
path: root/src/smsutil.c
AgeCommit message (Collapse)AuthorFilesLines
2011-01-12smsutil: M15 coding style fixJeevaka Badrappan1-1/+1
2010-12-08smsutil: Make timezone an optional fieldYang Gu1-1/+10
2010-12-07smsutil: Change the range of time zoneYang Gu1-2/+9
2010-12-07smsutil: Minor style fixDenis Kenzior1-1/+2
2010-12-02smsutil: Fix issue in mwi dcs decodingJeevaka Badrappan1-1/+6
2010-12-02smsutil: Fix uninitialized optional elementsDenis Kenzior1-2/+2
sms_decode was never memsetting the returned structure, so if any optional elements were present in the SMS (e.g. status report) then the structure was not completely initialized.
2010-11-29smsutil: explicitly compare pointers to NULLLucas De Marchi1-22/+17
This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // <smpl> @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // </smpl>
2010-11-22smsutil: coding style fixes - rule M6Jeevaka Badrappan1-19/+19
2010-11-04smsutil: Use entire range of ref / port addressesDenis Kenzior1-12/+12
2010-11-02smsutil: Remove traces of ref_offset variableDenis Kenzior1-6/+2
2010-11-02smsutil: Add sms_datagram_prepareDenis Kenzior1-0/+129
2010-11-02smsutil: Get rid of ref_offset in sms_text_prepareDenis Kenzior1-11/+3
The reason for this parameter has ceased to exist quite a while ago. Namely when the API allowed multiple SMS recipients. We prepared a single set of segments and then reset the to address and reference. We no longer allow multiple recipients and none of this is now needed.
2010-11-02smsutil: Additional sanity checks for decode_sctsDenis Kenzior1-0/+21
2010-09-22smsutil: Reflow the fuzzy matching codeDenis Kenzior1-102/+98
Make a bit more readable
2010-09-22smsutil: add fuzzy address check for status reportPetteri Tikander1-16/+87
2010-09-21Fix multi-line comment style issuesJeevaka Badrappan1-12/+21
2010-09-21smsutil: update SR assembly to use SHA1 msg idsDenis Kenzior1-32/+59
2010-09-14smsutil: Clean up ussd_encodeDenis Kenzior1-6/+4
2010-09-14smsutil: Add USSD encoding functionJeevaka Badrappan1-0/+29
2010-09-10smsutil: use unsigned printf format for msgidPetteri Tikander1-2/+2
2010-09-10smsutil: remove unused parameterPetteri Tikander1-3/+1
2010-09-10smsutil: status_report_expirationPetteri Tikander1-3/+48
2010-09-01smsutil: storing/loading sms status report over rebootPetteri Tikander1-3/+156
2010-09-01smsutil: style fixPetteri Tikander1-1/+2
2010-09-01smsutil: use DECLARE_SMS_ADDR_STRPetteri Tikander1-1/+1
in sms_assembly_backup_free
2010-08-17smsutil: Get rid of pointless memberDenis Kenzior1-1/+0
2010-07-23sms: document use_delivery_reportsInaky Perez-Gonzalez1-0/+3
In function sms_text_prepare
2010-07-23sms: sms_assembly_encode_address export and renameInaky Perez-Gonzalez1-4/+3
The new name better reflects the function's purpose. We need to export it, as for generating unique message naming (for persistence and D-Bus object naming), we'll be using the address.
2010-07-23introduce DECLARE_SMS_ADDR_STR()Inaky Perez-Gonzalez1-2/+2
Introduce DECLARE_SMS_ADDR_STR(), which declares a string variable of the right size for passing to sms_assembly_decode_address(). This way we detach each client having to have the knowledge of what the right size is, leaving that decission to the infrastructure provider. Updated couple of sites in smsutil.c to use it vs a raw declaration.
2010-07-08smsutil: Fix valgrind complaintDenis Kenzior1-3/+3
SMS cannot be split over GSM extension chars, however on the last segment this code was causing us to overflow the buffer and resulted in valgrind complaining.
2010-06-21smsutil: Fix up some comment styleDenis Kenzior1-18/+36
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