Lucas De Marchi
bc0386cb23
sms: restore pending tx messages from backup
...
Based on patch from: Kristen Carlson Accardi <kristen@linux.intel.com>
2011-01-28 16:55:31 -06:00
Lucas De Marchi
f55447a39e
sms: delete sent sms messages from backup
...
Based on patch from Kristen Carlson Accardi <kristen@linux.intel.com>
2011-01-28 16:14:41 -06:00
Lucas De Marchi
8305ddf321
sms: store pending tx pdus on disk
...
Based on patch from Kristen Carlson Accardi <kristen@linux.intel.com>
2011-01-28 16:14:12 -06:00
Jeevaka Badrappan
819fb91144
smsutil: M15 coding style fix
2011-01-12 08:06:58 -08:00
Yang Gu
f6b037661b
smsutil: Make timezone an optional field
2010-12-08 07:53:30 -06:00
Yang Gu
173c6798d6
smsutil: Change the range of time zone
2010-12-07 12:16:20 -06:00
Denis Kenzior
353d1548bd
smsutil: Minor style fix
2010-12-07 12:16:20 -06:00
Jeevaka Badrappan
ef785f9373
smsutil: Fix issue in mwi dcs decoding
2010-12-02 08:08:54 -06:00
Denis Kenzior
c5a42cfabe
smsutil: Fix uninitialized optional elements
...
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-12-02 07:53:54 -06:00
Lucas De Marchi
8e0f9aab9e
smsutil: explicitly compare pointers to NULL
...
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-29 13:04:04 -06:00
Jeevaka Badrappan
e6e27406ae
smsutil: coding style fixes - rule M6
2010-11-22 05:05:31 -06:00
Denis Kenzior
78cac8472f
smsutil: Use entire range of ref / port addresses
2010-11-04 11:09:11 -05:00
Denis Kenzior
8b54166523
smsutil: Remove traces of ref_offset variable
2010-11-02 15:56:30 -05:00
Denis Kenzior
2cc92d80e6
smsutil: Add sms_datagram_prepare
2010-11-02 14:58:21 -05:00
Denis Kenzior
57d847692c
smsutil: Get rid of ref_offset in sms_text_prepare
...
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-02 14:58:21 -05:00
Denis Kenzior
a05ebc93ab
smsutil: Additional sanity checks for decode_scts
2010-11-02 12:15:53 -05:00
Denis Kenzior
c12632dfef
smsutil: Reflow the fuzzy matching code
...
Make a bit more readable
2010-09-22 16:27:30 -05:00
Petteri Tikander
6c1ec61603
smsutil: add fuzzy address check for status report
2010-09-22 12:20:52 -05:00
Jeevaka Badrappan
4196182770
Fix multi-line comment style issues
2010-09-21 21:16:01 -05:00
Denis Kenzior
e345a6b579
smsutil: update SR assembly to use SHA1 msg ids
2010-09-21 08:44:47 -05:00
Denis Kenzior
a5d0933b22
smsutil: Clean up ussd_encode
2010-09-14 11:54:57 -05:00
Jeevaka Badrappan
fd9570500e
smsutil: Add USSD encoding function
2010-09-14 09:58:45 -05:00
Petteri Tikander
b9d59daaed
smsutil: use unsigned printf format for msgid
2010-09-10 10:32:33 -05:00
Petteri Tikander
eea8dfcc84
smsutil: remove unused parameter
2010-09-10 10:32:18 -05:00
Petteri Tikander
df058085ea
smsutil: status_report_expiration
2010-09-10 10:31:10 -05:00
Petteri Tikander
95fc8bee72
smsutil: storing/loading sms status report over reboot
2010-09-01 13:32:28 -05:00
Petteri Tikander
295ae2dc04
smsutil: style fix
2010-09-01 12:09:19 -05:00
Petteri Tikander
c7473aa7da
smsutil: use DECLARE_SMS_ADDR_STR
...
in sms_assembly_backup_free
2010-09-01 12:07:28 -05:00
Denis Kenzior
e38064a66d
smsutil: Get rid of pointless member
2010-08-17 12:36:26 -05:00
Inaky Perez-Gonzalez
4421b5b912
sms: document use_delivery_reports
...
In function sms_text_prepare
2010-07-23 18:00:10 -05:00
Inaky Perez-Gonzalez
9517bf2991
sms: sms_assembly_encode_address export and rename
...
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-23 17:28:18 -05:00
Inaky Perez-Gonzalez
ca46f51c2d
introduce DECLARE_SMS_ADDR_STR()
...
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-23 17:26:12 -05:00
Denis Kenzior
e6d6f802a5
smsutil: Fix valgrind complaint
...
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-07-08 14:27:33 -05:00
Denis Kenzior
6bae7a2aa1
smsutil: Fix up some comment style
2010-06-21 15:33:13 -05:00
Denis Kenzior
5aa8841440
smsutil: Take ton_npi into account in sr assembly
2010-06-21 15:21:40 -05:00
Denis Kenzior
36bcae5ff1
smsutil: More code cleanup
...
- 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-21 15:21:40 -05:00
Denis Kenzior
cbc27e06b3
smsutil: Make code flow easier to understand
2010-06-21 15:21:40 -05:00
Denis Kenzior
a8bd87cda9
smsutil: multiline comments to preferred style
2010-06-21 15:21:40 -05:00
Denis Kenzior
65b8cab616
smsutil: Minor code style & indentation fixes
2010-06-21 15:21:39 -05:00
Denis Kenzior
d7dacd2fad
smsutil: memcpy is preferable to struct assignment
2010-06-21 15:21:39 -05:00
Denis Kenzior
c967766070
smsutil: Streamline flow of sr add_fragment
2010-06-21 15:21:39 -05:00
Pasi Miettinen
a7372209f3
smsutil: Status report assembly
2010-06-21 10:52:27 -05:00
Yang Gu
179c14fe39
smsutil: Add a decoder for ussd pdus
2010-06-18 13:18:12 -05:00
Pasi Miettinen
475c0de92c
smsutil: Add option to use delivery reports
2010-06-07 13:00:46 -05:00
Denis Kenzior
69e5a65d34
smsutil: status reports also lead with SC_ADDR
2010-06-04 14:21:57 -05:00
Denis Kenzior
4638d3ad83
smsutil: Don't overflow signed ints
...
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-06-01 10:07:18 -05:00
Inaky Perez-Gonzalez
9c107821ab
smsutils: add some documentation
...
sms_assembly_add_fragment_backup: clarify how insertion spot is found
2010-05-28 09:23:35 -05:00
Denis Kenzior
9bb7bcd450
smsutil: add sms_decode_unpacked_stk_pdu function
...
Properly check the special 'packing required' sms pdus sent by SIM
toolkit.
2010-05-27 09:25:48 -05:00
Yang Gu
a9cd641855
smsutil: Check that udl is less than 140
2010-05-27 07:21:28 -05:00
Denis Kenzior
b0cf35c324
simutil: Add sim_encode_bcd_number
2010-05-26 09:59:14 -05:00