Commit Graph

823 Commits

Author SHA1 Message Date
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 110dfb9e2e Fix style issue 2009-09-08 14:15:40 -05:00
Andrzej Zaborowski 17cb0ce3c4 Move create_dirs to storage.c, add file read/write utilities 2009-09-08 13:34:07 -05:00
Andrzej Zaborowski 36d0c8451f Read messages left over in ME storage on startup.
On modems that don't support +CMT (or for class 2 SMSes) the messages are
stored in the modem and then read and deleted from there in two separate
steps with no warranty that deletion succeeds or (more likely) power is
cut before the deletion happens.  Over time the memory may become full
and if we don't want to deal with this condition we need to check on
startup if there are messages we haven't deleted.

We can't differentiate between those messages and those the user already
had on the SIM / modem before installing ofono or switching phones, so we
might want to deliver messages with REC READ status with some kind of
indication that these are potentially old so the UI doesn't emit spurious
alerts.  We don't do this now and just deliver as usual.
2009-09-08 13:31:30 -05:00
Denis Kenzior b2bde46bfb Do supported dialect detection in sms.c 2009-09-08 12:45:04 -05:00
Denis Kenzior b1932334da Refactor SMS language dialect encoding / decoding
- Introduce new enum gsm_dialect instead of unsigned char arguments
- Use ISO639 3 letter codes for conversion tables
- Use a single lookup table instead of 4 different ones
2009-09-08 12:44:51 -05:00
Denis Kenzior bfbe142774 Fix style issues 2009-09-08 09:42:29 -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
Aki Niemi a8fb6bf356 Add unit test for Turkish variant
Also fixes an error in the default table unit test.
2009-09-08 14:16:23 +03:00
Aki Niemi 462b0b8249 Add support for national language variants
Add API for supporting character conversion using national language
variants. Also, add conversion tables for Turkish, Spanish and
Portuguese, and fix the default table. The lookup algorithms were
tweaked to support multiple tables.
2009-09-08 14:16:23 +03:00
Marcel Holtmann c155a91313 Add option to phonesim to run with or without multiplexer 2009-09-08 09:24:52 +02:00
Marcel Holtmann 154102e873 Add modem properties for booleans 2009-09-08 09:12:19 +02:00
Marcel Holtmann 7b00e73caf Update test program for GAtMux API 2009-09-08 09:05:56 +02:00
Marcel Holtmann 47b1d09b6e Hook up GAtMux with GSM 07.10 implementation 2009-09-08 09:04:11 +02:00
Marcel Holtmann 8de68799a5 Remove AT command and re-init support from GSM 07.10 2009-09-08 08:51:46 +02:00
Marcel Holtmann abc7a934ee Use NULL for init of function callbacks 2009-09-08 08:39:51 +02:00
Marcel Holtmann 3a0518ec27 Export the GSM 07.10 status flags 2009-09-08 08:26:48 +02:00
Denis Kenzior 2ee7f4a6f8 Fix g_at_chat_unref from command callback
The resources were being used after being freed in this case
2009-09-07 23:21:50 -05:00
Denis Kenzior 74d0493230 Add a few more comments to the calypso plugin 2009-09-07 20:16:16 -05:00
Marcel Holtmann 3c0ea95f9a Add more calypso specific quirks when using phonesim 2009-09-08 03:14:46 +02:00
Marcel Holtmann e4959e02d1 Mark some properties as integer so they get printed properly 2009-09-08 03:04:51 +02:00
Marcel Holtmann 0910ee7349 Add support for using phonesim and calypso for testing 2009-09-08 03:01:52 +02:00
Marcel Holtmann 02eacb65af Update GSM 07.10 unit testing 2009-09-06 08:35:34 +02:00
Marcel Holtmann 041b192fcd Update test script with more property tweaks 2009-09-06 07:35:11 +02:00
Marcel Holtmann 094fdd4e71 Add functions for disconnect and debug handling 2009-09-06 00:31:26 +02:00
Marcel Holtmann c9ba0e7df5 Integrate the multiplexer into the AT chat library 2009-09-06 00:25:16 +02:00
Marcel Holtmann 62c0583f67 Use NULL instead of 0 for pointer arguments 2009-09-06 00:14:21 +02:00
Marcel Holtmann f49e1f9f4f First round of coding style updates for GSM 07.10 implementation 2009-09-06 00:08:53 +02:00
Marcel Holtmann ec69d1abd0 Add skeleton for AT multiplexer API 2009-09-05 11:52:31 +02:00
Marcel Holtmann 6dae50d8e5 Add unit testing tool for GSM 07.10 multiplexer 2009-09-05 07:46:50 +02:00
Marcel Holtmann 5847975b89 Add missing HAVE_CONFIG_H checks 2009-09-05 07:36:38 +02:00
Marcel Holtmann 09a3289dcc Update copyright and license details for GSM 07.10 implementation 2009-09-05 07:30:18 +02:00
Marcel Holtmann 12a3efe911 Enable compilation of GSM 07.10 code 2009-09-05 07:25:31 +02:00
Marcel Holtmann d35a39cb89 Fix previous casting removal fix 2009-09-05 07:22:59 +02:00
Marcel Holtmann 64ca9ad280 Remove another unneeded cast 2009-09-05 07:21:45 +02:00
Marcel Holtmann fe276cde82 Use unsigned char array for buffer and remove char casting 2009-09-05 07:18:12 +02:00
Marcel Holtmann 4d781ae6e5 Make gsm0710_compute_crc and gsm0710_send_frame private functions 2009-09-05 07:09:46 +02:00
Marcel Holtmann 15e1c3f0d5 Fix weird casting for callback execution 2009-09-05 07:02:56 +02:00
Marcel Holtmann 6717646008 Fix mixed declarations and code 2009-09-05 06:59:36 +02:00
Marcel Holtmann 5b09d42cb4 Import GSM 07.10 implementation from Qtopia 2009-09-05 06:57:11 +02:00
Marcel Holtmann e4d0a28b48 Update modem configuration parameter parsing for generic AT plugin 2009-09-05 04:48:08 +02:00
Denis Kenzior d74d6c2e06 Fix unused variable warning 2009-09-04 20:37:50 -05:00
Denis Kenzior 8f607eff42 Update calypso modem driver
Use calypso voicecalls driver
2009-09-04 20:37:50 -05:00
Denis Kenzior 7362878e6c Add calypso voicecalls driver 2009-09-04 20:37:50 -05:00
Denis Kenzior 8e449d6184 Some modems don't return from ATD until connected
Yet they send progress indications all the way up to connected, which
breaks the current logic.
2009-09-04 20:37:50 -05:00
Denis Kenzior 88ebea5aca Don't emit disconnect reason if unknown 2009-09-04 20:37:50 -05:00
Denis Kenzior adaa72533a For incoming call case, send hangup
CHLD=1X doesn't work for incoming calls on some devices.  This is
more portable
2009-09-04 20:37:49 -05:00
Denis Kenzior af8b6cdbcc Fix distcheck 2009-09-04 20:37:49 -05:00
Denis Kenzior 4c5791a500 Rename at.h to atmodem.h 2009-09-04 20:37:49 -05:00
Denis Kenzior 5749b6e75d Break common at utilities to atutils.c/.h 2009-09-04 20:37:49 -05:00