Commit Graph

140 Commits

Author SHA1 Message Date
Nandini Rebello 4f0ba39cbe sms: support 8 national lang in Alphabet property
Adding support for 8 additional languages for GSM 7 bit.
2018-10-15 14:09:07 -05:00
Nandini Rebello a2168cd136 sms: support bengali and gujrati in Alphabet property 2018-10-01 14:53:11 -05:00
Anirudh Gargi 40f5916316 sms: allow sms send for EUTRAN sms only state
Patch to be considered, if support for EUTRAN SMS states accepted.

SMS registered flag while sending sms to consider the new EUTRAN
registered status also.
2018-10-01 14:43:23 -05:00
Slava Monich d9b2dbbd0b sms: Pass const pointer to dispatch_app_datagram 2017-08-21 11:36:32 -05:00
John Ernberg 3b1496a84b sms: Use g_slist_free_full 2016-04-22 15:32:02 -05:00
Alfonso Sanchez-Beato 51fc828c5e sms: Add trace when datagram is not delivered 2015-09-08 09:14:03 -05:00
Denis Kenzior 83c275745f sms: Don't try to start the queue if already active
If the queue is currently inside a submit operation and the network
registration state changes, do not try to schedule the next operation.
2012-11-29 03:09:32 -06:00
Denis Kenzior 2dac10e1cb sms: Optimize behavior of previous commit
The previous commit fixed the bug, however performing a linear-search
through the entire tx-queue is quite wasteful.  The current usage
pattern is to always modify the entry at the tail of the queue, so
optimize.
2012-09-11 22:33:43 -05:00
Philippe Nunes 80fb1c2fac sms: Fix to find SMS entry posted by STK
SMS initiated by proactive command are not exposed on D-BUS.
Therefore, there is no message associated with the entry created from
STK.
2012-09-11 22:33:43 -05:00
Marcel Holtmann 2ead77e133 sms: Make PDU data arrays const 2012-06-17 00:58:35 -07:00
Denis Kenzior 21369944ad sms: Fix GetMessages argument / return signature 2012-05-30 09:00:32 -05:00
Lucas De Marchi e0d6f9f0ce Do not set signature and reply in GDBus tables
Use GDBUS_* macros, so signature and reply fields are not set in each
method/signal.
2012-05-20 02:47:57 -07:00
Lucas De Marchi b3489f2ee8 Convert GDBus methods to use macro helpers
With these macro helpers we can separate in/out arguments and use their
own vector.
2012-05-20 02:47:57 -07:00
Henrique Dante de Almeida 924ee02ff7 Constify GDBus signal tables
Constify signal tables with the following command:

    find . -name '*.[ch]' -exec \
             sed -i 's/\(GDBusSignalTable .* =\)/const \1/g' {} \;
2012-05-20 02:47:56 -07:00
Henrique Dante de Almeida 63bbdebdf2 Constify GDBus method tables
Constify method tables with the following command:

find . -name '*.[ch]' -exec \
             sed -i 's/\(GDBusMethodTable .* =\)/const \1/g' {} \;
2012-05-20 02:47:56 -07:00
Denis Kenzior 65393a2fb3 sms: Don't need the sim member now 2012-01-18 12:55:02 -06:00
Denis Kenzior 45402f797b sms: Use __ofono_atom_find 2012-01-18 12:21:34 -06:00
Gustavo F. Padovan 39f23f6fe1 sms: remove set but not used var 2011-05-20 15:03:49 -05:00
Bertrand Aygon 48e97447ab sms: Remove use of uninitialized variable
Remove a debug information, since the info is useless, and more,
it can display invalid info due to var not initialise in some case
2011-04-29 04:15:47 -05:00
Denis Kenzior d26a3fd67b sms: Fix typo 2011-04-14 17:02:22 -05:00
Mika Liljeberg 0eedf42921 core: remove redundant code 2011-03-30 12:33:54 -05:00
Denis Kenzior 15abdeee68 sms: Rework tx_state logic
Using the enum which has a value of zero (PENDING) by default created
some problems.  Use a slightly modified version of the logic and consume
less storage to boot.
2011-03-18 18:31:14 -05:00
Denis Kenzior 9a37a672bf sms: Move CancelMessage(o) method
Move this method to the Message Cancel() method instead and introduce
new __ofono_sms_txq_cancel API
2011-03-18 18:31:14 -05:00
Lucas De Marchi 458ef95e5d sms: remove check for impossible NULL condition
tx_next() must never be called with entry == NULL and currently it
was already being dereferenced before making this check. Thus just
remove it.
2011-03-18 18:31:14 -05:00
Lucas De Marchi 21da71d544 sms: allow message submission to be cancelled
Based on patch from Yang Gu <gyagp0@gmail.com>
2011-03-18 18:31:14 -05:00
Denis Kenzior 7dcae49cc5 sms: Don't leak memory, even in bizarre conditions 2011-03-18 18:31:14 -05:00
Lucas De Marchi 7a7c0717f5 sms: factor out 'remove entry' from tx_finished()
Refactor tx_finished() and create a function to remove an entry from the
tx queue. This function will be used also when a message is cancelled.
Thus, handle the case in which state is MESSAGE_STATE_CANCELLED as well.

Based on patch from Yang Gu <gyagp0@gmail.com>
2011-03-18 18:31:14 -05:00
Jeevaka Badrappan b5950e2391 sms: limit the sms sending retry
If sending of SMS fails, then oFono core will try to resend it after
n * 5 seconds(n = retry count). Due to this, conformance test case
27.22.8 sequence 1.4 fails(refer 31.124 spec). Plan is to limit the
failue codes for which the retry will be done. This patch allows the
retry if the failure is only due to network timeout. For all the
other failure cases, retry is not done.
2011-03-17 12:23:35 -05:00
Denis Kenzior 32b4298bfe sms: return immediately if cached flag is set 2011-02-10 11:08:47 -06:00
Denis Kenzior e0d777a655 core: free GError objects returned by glib 2011-02-08 16:48:52 -06:00
Denis Kenzior 0eed0db9fe sms: Minor style fix 2011-02-06 23:47:17 -06:00
Denis Kenzior 960310f8b1 sms: Be more paranoid when loading SMS settings 2011-02-06 23:47:17 -06:00
Denis Kenzior 9086328508 sms: Use a better pattern for bearer_from_string 2011-02-06 23:47:17 -06:00
Aki Niemi bef5e1773c sms: Add alphabet support to SMS atom 2011-02-06 23:47:16 -06:00
Aki Niemi 15428cc2df sms: Fix indentation 2011-02-02 11:03:21 +02:00
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
Faiyaz Baxamusa 76081700a9 sms: Break out message objects into message.[ch]
These can be used as is by the CDMA SMS manager atom
2011-01-20 14:58:31 -06:00
Pekka Pessi 2c7b1348aa sms: make sms atom offline-safe
Allow use of SMS atom both in online and offline (post_sim) states.

SMS atom now watches network registration atom and state.  Thmessages
are queued but not sent if not registered to a network.  Errors
occurring when a short message is being sent while transition from
online to offline or when network coverage is dropped are now handled
gracefully.
2011-01-18 22:09:07 -06:00
Marcel Holtmann c7963f1c00 sms: Add debug for SMS source and destination ports 2010-12-24 10:47:39 -08:00
Denis Kenzior ac72349017 sms: Use the right union member for DCS check 2010-12-02 07:49:49 -06:00
Lucas De Marchi b210838e87 core: 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:27:15 -06:00
Jeevaka Badrappan 2d0cb92155 src: coding style fixes - rule M6 2010-11-22 05:07:52 -06:00
Denis Kenzior 5c9a03b480 sms: Fix up comment style and wording 2010-11-10 09:17:19 -06:00
Andrzej Zaborowski 45b944d84b sms: SMS-PP download must be enabled in sst / est 2010-11-10 09:09:55 -06:00
Andrzej Zaborowski 028c8c011b sms: Handle "USIM Download" SMS type. 2010-11-08 13:36:47 -06:00
Denis Kenzior 4815d84789 sms: Call the txq_submit queued callback 2010-11-04 10:25:42 -05:00
Denis Kenzior 857e2d046f sms: Separate history from dbus flags in txq_submit 2010-11-04 10:25:42 -05:00
Denis Kenzior 3436c58fac sms: Refactor __ofono_sms_txq_submit 2010-11-04 10:25:42 -05:00