Commit Graph

2638 Commits

Author SHA1 Message Date
Denis Kenzior 467db7dd7f Add utility to convert SIM FS strings to UTF8 2009-07-06 19:33:24 -05:00
Denis Kenzior ee38e24040 GSM to UTF8 should accept empty strings 2009-07-06 19:32:23 -05:00
Denis Kenzior a9f776123e Add Cell Broadcast assembly utilities 2009-07-02 19:03:05 -05:00
Denis Kenzior 807201e969 Fix memory leak 2009-07-02 19:03:05 -05:00
Denis Kenzior d717908c69 Don't hardcode 2009-07-02 19:03:04 -05:00
Denis Kenzior e391d8d581 Add CBS Text converter utility 2009-07-02 19:03:04 -05:00
Denis Kenzior ac56263a57 Add cbs lang to ISO 639 conversion utility 2009-07-02 19:03:04 -05:00
Denis Kenzior 8d99a2a25f Add app-port extraction utility for CBS 2009-07-02 19:03:04 -05:00
Denis Kenzior d73dae9f2a Make sms_udh_iter work for Cell Broadcast messages 2009-07-02 19:03:04 -05:00
Denis Kenzior b1602d49e5 Add Cell Broadcast encoding / decoding utilities 2009-07-02 19:03:04 -05:00
Denis Kenzior 97d53bf0ec Add DCS decoder for Cell Broadcast 2009-07-02 19:03:04 -05:00
Yang Gu 56863f7f50 Change sequence in phonebook merge_list 2009-07-01 10:48:51 -05:00
Rémi Denis-Courmont c1b8ac0a83 ofonod: missing dependencies on convenience libraries
Without this, plain "make" does not work properly when gatchat or
gisi, or one of the built-in drivers or plugins are modified.
2009-06-29 21:01:35 +03:00
Yang Gu 8f737d8699 Add E-UTRAN as access technology of network op 2009-06-25 11:45:29 -05:00
Aki Niemi 66604021bd Add new ISI modem driver to build 2009-06-25 10:03:47 +03:00
Denis Kenzior 8199937bb5 Fix when the same operator reported multiple times 2009-06-23 10:25:32 -05:00
Denis Kenzior 1ec714f49e Make signature match properly 2009-06-22 14:46:31 -05:00
Denis Kenzior 369f8d0c84 Minor style issues 2009-06-22 13:22:14 -05:00
Andrzej Zaborowski 6ee516ac09 Read EF-SPDI and use it for SPN display.
When the operator is one of those listed in EF-SPDI then we need to
treat it like a HPLMN in deciding whether the SPN or PLMN name should
be displayed.
2009-06-22 13:22:14 -05:00
Andrzej Zaborowski fde5fc5a83 Add write/read operations for cyclic files in SIM. 2009-06-22 13:22:14 -05:00
Denis Kenzior 17b7444b47 Make compiler happy 2009-06-22 13:22:14 -05:00
Denis Kenzior bc831313b3 Cleanup phonebook again 2009-06-22 13:22:13 -05:00
Yang Gu 95ec7c126f Merge phonebook entries belong to one person 2009-06-22 13:22:13 -05:00
Denis Kenzior 130f18a0b6 Add SMS Sending Support 2009-06-19 21:15:02 -05:00
Denis Kenzior b42c2bc79f Some fixes to sms_text_prepare 2009-06-19 21:13:56 -05:00
Denis Kenzior 61a4b0fee9 Add address from string utility for SMS 2009-06-19 21:13:54 -05:00
Denis Kenzior a8dc75392c Fix minor bug in phone number handling 2009-06-19 21:13:52 -05:00
Denis Kenzior 990ab62207 Update unit tests 2009-06-19 21:13:20 -05:00
Denis Kenzior 16118320fd Utility to create SMS, both fragmented and not 2009-06-19 21:12:37 -05:00
Denis Kenzior 492795c4c8 Add utility function 2009-06-19 21:12:19 -05:00
Denis Kenzior b49479b2b4 Minor style issue 2009-06-19 21:12:18 -05:00
Denis Kenzior 5068e895cb Don't fail in own_buf if items_written is NULL 2009-06-19 21:12:16 -05:00
Denis Kenzior fe486efadd Fix another logic bug in SS parser
If the passwords do not match, it is still a recognized string,
but we must return invalid format
2009-06-18 16:58:08 -05:00
Denis Kenzior 2982a7962f Minor style issue 2009-06-18 16:58:05 -05:00
Denis Kenzior 0c8aed38d7 Fix logic flow in SS parser 2009-06-18 16:58:03 -05:00
Andrzej Zaborowski b091f7b186 Add CallBarring::ChangePassword 2009-06-18 16:58:00 -05:00
Andrzej Zaborowski f93376229a Teach USSD to recognise password change strings.
This is slightly hacky, part of ussd.c responsible for registering services
is duplicated and parse_ss_control_string is modified to accept a fourth
SI fragment in the input string.
2009-06-18 16:57:58 -05:00
Andrzej Zaborowski 9156607bc9 Move struct ussd_data definition out of the header.
No fuctional change.
2009-06-18 16:57:57 -05:00
Denis Kenzior 98a3826ab8 Don't bother reporting subscriber numbers by type 2009-06-18 04:02:15 -05:00
Denis Kenzior 6fdf580a5d Cleanup EFmsisdn reading patch 2009-06-18 04:02:13 -05:00
Denis Kenzior 314478c756 Add a new extract_bcd_number utility 2009-06-18 04:02:10 -05:00
Andrzej Zaborowski 1c6d44d9c0 Read own numbers from EFmsisdn instead of AT+CNUM. 2009-06-18 04:02:08 -05:00
Denis Kenzior c3e3750ebb Minor style fixes 2009-06-18 04:02:06 -05:00
Andrzej Zaborowski 2b451eaeab Add record based file capability to sim_ops
Add capability to read / write / stat files on the SIM.  This now
supports cyclic, linear fixed and transparent SIM files.

Parse GET RESPONSE result to find structure of the file (cyclic, linear
fixed, or transparent), the file size and the record length.

Add both read and update capability for binary and record-based files.

Implement writing sim files through AT.
2009-06-18 04:02:05 -05:00
Denis Kenzior 58e573bf63 Phonebook API tweak 2009-06-17 18:20:22 -05:00
Denis Kenzior 1dbfc02d6c Add call-history driver type 2009-06-17 18:20:20 -05:00
Denis Kenzior c892f36dc2 Return slist elements back to the allocator 2009-06-17 18:20:17 -05:00
Denis Kenzior 5fa4cd895c Refactor phonebook code
Use immediate mode reporting, which means that the individual CPBR
lines are reported up to the core immediately.  This has a couple
advantages:
  - We do not need to malloc/free a bunch of single variables
    and copy them over.  Helps performance.
  - The lines are not buffered up and given to the plugin in one
    shot, instead processing is performed piecemeal.  This helps
    with keeping memory consumption down to a minimum
2009-06-16 16:42:02 -05:00
Denis Kenzior d22e6f4ed5 Header guards not to be present in private headers 2009-06-16 16:38:56 -05:00
Denis Kenzior 5bcc74d857 Fix SMS port addressing 2009-06-16 16:38:50 -05:00
Denis Kenzior 79e39e4016 SMS 8-Bit and 16-Bit ports are not the same 2009-06-16 16:38:47 -05:00
Denis Kenzior 867117243a Cleanup phonebook implementation 2009-06-16 16:38:39 -05:00
Denis Kenzior db51d5b8ac Fix style issues 2009-06-16 16:38:36 -05:00
Denis Kenzior 43a441e8f5 Change some defines 2009-06-16 16:38:34 -05:00
Denis Kenzior be4a4691aa Make const-correct 2009-06-16 16:38:26 -05:00
Yang Gu f00af45270 Export phonebook as vCard 3.0 format 2009-06-16 16:38:17 -05:00
Denis Kenzior 8241c3f025 Add SMS fragment assembly capabilities 2009-06-14 02:02:16 -05:00
Denis Kenzior c5511db5c5 Add utilities for SMS re-assembly 2009-06-14 02:02:16 -05:00
Denis Kenzior f443493ddb Fix SMS Concatenation header parsing 2009-06-14 02:02:16 -05:00
Denis Kenzior 93c2a630b0 Change function signature 2009-06-14 02:02:16 -05:00
Denis Kenzior 3a28213072 Add Basic SMS reception capabilities
- Can receive 7Bit, 8Bit and UCS2 encoded messages
- 8Bit is assumed to be a datagram to a certain port
- Messages with Invalid format are ignored
- Concatenation not yet supported
2009-06-12 21:43:26 -05:00
Denis Kenzior b4613217f6 Add utility to extract text SMS 2009-06-12 21:43:23 -05:00
Denis Kenzior 217def1f88 Add utility to extract datagrams 2009-06-12 21:43:21 -05:00
Denis Kenzior c25b08f402 Add utility to extract SMS concatenation info 2009-06-12 21:39:21 -05:00
Denis Kenzior 808db2173b Add utility to extract application port address 2009-06-12 21:39:19 -05:00
Denis Kenzior b71c0015e7 Add a couple new sms_udh_iter utilities 2009-06-12 21:39:17 -05:00
Denis Kenzior 2bfc1c0784 Add pretty print function for SMS addresses 2009-06-12 21:39:15 -05:00
Denis Kenzior f0954911a8 Add sms_extract_common function
Extract common attributes from the various SMS types
2009-06-12 21:39:13 -05:00
Denis Kenzior b08c403815 Make SCTS to time function const-correct 2009-06-12 21:39:11 -05:00
Denis Kenzior 9b9365ffae Can't implement Multiparty Hangup without chld 2009-06-12 21:39:09 -05:00
Denis Kenzior 46ac5c564c Do not use chld=1 on mpty when another held
If we're trying to hangup an active MPTY call, and we have
calls on hold we shouldn't use CHLD=1 (release_all_active)
since this will have the side-effect of activating the held
calls
2009-06-12 21:39:07 -05:00
Denis Kenzior 3c27dae5e8 Fixup style issues with previous MCC/MNC patch
- Breakup MCC/MNC LENGTH constant
- Don't hardcode numbers
- Fix >80 column length
- Fix test case to expect strings instead of shorts
2009-06-12 19:33:55 -05:00
Aki Niemi ba8828c095 Change MNC and MCC variable types to string
This is to make sure both 2 and 3-digit MNC values are correctly
handled. Both the modem plugin API as well as the D-Bus API are
affected.
2009-06-12 11:01:19 -05:00
Denis Kenzior 618cebe6c2 Add additional sanity check 2009-06-11 23:45:03 -05:00
Denis Kenzior 370318109c Make SMS UDH iterators const-correct 2009-06-11 23:45:01 -05:00
Denis Kenzior 50b9a3f375 Fix for multiparty_hangup
Due to the use of an invalid structure, release_all_active was being
called instead of release_all_held
2009-06-11 10:44:53 -05:00
Denis Kenzior f5f7fafc41 Fix typo 2009-06-11 10:44:51 -05:00
Denis Kenzior 621a99bcc7 Add TP-PID enumeration 2009-06-11 10:44:49 -05:00
Denis Kenzior f9f3080781 Add utility for parsing MWI SMS DCS types 2009-06-05 19:58:52 -05:00
Denis Kenzior 219a94a502 Only USSD needs the special <cr> handling
Apparently all Cell Broadcasts are always 88 bytes long, with a
6 byte header and 82 byte payload.  <cr> character is used as a
terminator and padding for the unused payload
2009-06-05 19:58:27 -05:00
Denis Kenzior 86f5712c27 Fixup header 2009-06-05 19:58:16 -05:00
Denis Kenzior ffb377d00d Reorder the header file a bit 2009-06-05 19:58:14 -05:00
Denis Kenzior bc6165ea8e Rename ud_len_in_octets to sms_udl_in_bytes 2009-06-05 19:58:11 -05:00
Denis Kenzior 5846688988 Rename sms utilities properly
Rename encode_sms to sms_encode
Rename decode_sms to sms_decode
2009-06-05 19:58:09 -05:00
Denis Kenzior 4f0c149162 Add SMS specific DCS decoding function 2009-06-05 19:58:06 -05:00
Denis Kenzior 41071737d0 Add utility to convert SCTS to local/remote time 2009-06-05 19:57:40 -05:00
Denis Kenzior f09683fc89 SMS-Command is also submitted with sc address 2009-06-05 19:57:03 -05:00
Denis Kenzior 5e95802699 Add User-Data-Header iterator utilities 2009-06-03 21:08:35 -05:00
Denis Kenzior 8a8dfced91 Calculation for UCS2 cases was wrong 2009-06-03 21:08:26 -05:00
Denis Kenzior 2271bca985 Squash another uninitialized warning
GCC detects that next_octet only sets oct if successful.  However,
we've already checked the length, so it should always succeed.
2009-06-01 14:05:50 -05:00
Denis Kenzior 05588ca59e Squash another uninitialized warning
GCC is smart enough to detect that oct is only set if the next_octet
function succeeds.  However, we've already checked that buf is big
enough, so it should always succeed.  Still, lets keep gcc happy
2009-06-01 14:05:48 -05:00
Denis Kenzior d0a569b9c0 Squish another uninitialized warning in CB 2009-06-01 14:05:45 -05:00
Denis Kenzior 7995258761 Squish another uninitialized warning 2009-06-01 14:05:43 -05:00
Denis Kenzior dc17c86a19 Change int type to enum for SS control callbacks 2009-06-01 14:05:41 -05:00
Denis Kenzior 8c75a0cdf1 Squash another uninitialized value warning 2009-06-01 14:05:39 -05:00
Denis Kenzior 4f554c2cb7 Forgot to add this 2009-06-01 14:05:33 -05:00
Denis Kenzior d6733e0746 Add basic skeleton for SmsManager interface 2009-05-29 18:37:41 -05:00
Denis Kenzior 6fdc96cb73 Remove unnecessary define 2009-05-29 18:37:36 -05:00
Denis Kenzior bab9cd1f4c Remove unused function 2009-05-28 20:45:27 -05:00
Denis Kenzior 99456167ab Don't emit the Operator changed if not registered
SPN Update emits the Operator property changed signal.  However,
this should not happen if there is no current operator
2009-05-28 20:37:24 -05:00
Denis Kenzior 7bd558c788 Fix a few style issues 2009-05-28 18:29:05 -05:00
Denis Kenzior b4d2d29d07 Fix signal emission when the operator changes
If the operator changes without going through a searching state the
Operator change signal was not properly emitted
2009-05-28 18:29:03 -05:00
Denis Kenzior 699752eaf1 Squash CallWaiting onto CallSettings interface
The CallWaiting interface had one settable attribute after the latest
set of refactoring.  Squash it onto the CallSettings interface where
it belonged in the first place
2009-05-28 18:28:40 -05:00
Denis Kenzior 99b01eba7f Simplify CallWaiting plugin interface
The use of a struct with status & cls seemed pointless when only
a single integer can work just as well.

Also the Fax & Data attributes have been squished.  oFono does
not yet support those call types.
2009-05-28 18:25:45 -05:00
Denis Kenzior 1b6369d188 Fix CallWaiting ss request to query bearers better 2009-05-28 18:25:41 -05:00
Denis Kenzior b7b890fdb2 Squash gcc warning about uninitialized use of v 2009-05-28 10:03:44 -05:00
Denis Kenzior b028585d07 Tweak the call barring API 2009-05-28 10:03:38 -05:00
Denis Kenzior dfbda09dc9 Make CB operations take a mask of the bearers
Currently we only really support Voice calls, so only that
bearer is enabled.  However, in the future we might support
other call types.
2009-05-28 10:03:35 -05:00
Denis Kenzior ce68c39d0b Make Operator attribute work when SPN is empty 2009-05-28 10:03:29 -05:00
Minjun Li 2c73893d0a Delete the repeated calling of voicecall_create 2009-05-27 10:01:47 -05:00
Minjun Li e7fe2273d9 Fix erroneous check in voicecall_busy to set_udub
The not implemented check should be checking for the presence of the
set_udub function, not the presence of the release_specific function
2009-05-27 10:00:59 -05:00
Denis Kenzior db2a98ae5a Cleanup SimManager interface
Future-Proof own numbers support.  For now we only report voice numbers
Rename attributes to be a bit better
2009-05-26 18:20:03 -05:00
Denis Kenzior ab68cd8e7e Create ofono_phone_number struct
Creates a new structure in driver.h called ofono_phone_number.
This is meant to replace const char *number, int number_type
arguments everywhere.

Fix up all existing code to use this structure instead.
2009-05-26 18:18:12 -05:00
Andrzej Zaborowski 70fce6b551 Add SimManager interface.
Implement basic SIM filesystem utilities.

Obtain Service Provider Name EF-SPN record.

Make NetworkRegistration use SPN for PLMN display. This implements PLMN
display rules in 31.102 "EFSPN".
2009-05-26 18:15:51 -05:00
Denis Kenzior 8b49de31cf Simplify CallForwarding interface
Simplify the Call Forwarding interface using some of the ideas from the
Call Barring interface.  The code should be much easier to follow now

Remove Data/Fax attributes and refactor how the Supplementary Service
requests are performed.  The Data/Fax attributes can still be
controlled via supplementary service strings for GCF compliance, but
have been removed from general consumption since oFono does not yet
support Fax or Data bearers.
2009-05-21 17:02:58 -05:00
Denis Kenzior 335749d163 Fix Supplementary Service MMI strings per 22.030 2009-05-21 17:02:56 -05:00
Denis Kenzior 77b0d38a14 Fix minor logic flow bug in CallBarring 2009-05-21 17:02:29 -05:00
Denis Kenzior 80828c5ee3 Add class parameter to the query function for CB 2009-05-20 13:06:51 -05:00
Denis Kenzior a76864dd5f Fixup SS control case
In certain cases, querying/setting prperties via SS control req
doesn't provide complete state, resulting in subsequent
GetProperties reporting incorrect values
2009-05-20 13:06:23 -05:00
Denis Kenzior 8022060bc2 Rework Call Barring Interface 2009-05-20 13:03:12 -05:00
Andrzej Zaborowski e92710e2e1 Implement the CallBarring interface. 2009-05-20 12:51:11 -05:00
Marcel Holtmann 1897eefb7c Fix fallout of CSSD support patch 2009-05-12 20:34:49 -07:00
Andrzej Zaborowski e63c82e648 Add an API for a CSSI/CSSU notifications. 2009-05-12 19:09:57 -07:00
Denis Kenzior 8d628ef7f4 Implement callback for the cancel function 2009-05-12 19:09:57 -07:00
Denis Kenzior 95e9c0dcf2 Remove some other unused variables 2009-05-12 19:09:57 -07:00
Andrzej Zaborowski e9ab6dd8ef Remove unused variables. 2009-05-12 19:09:57 -07:00
Denis Kenzior b45cfd389c Add a set of utility functions for parsing the fundamental SMS PDU/TPDUs. 2009-05-12 19:09:57 -07:00
Marcel Holtmann 4f54515209 Add skeleton for AT modem driver plugin 2009-05-10 22:55:11 -07:00
Marcel Holtmann 0acaee5e1e Add directory for driver plugins 2009-05-10 22:44:37 -07:00
Marcel Holtmann f2e2cd7787 Add support for builtin plugins 2009-05-10 22:35:29 -07:00
Denis Kenzior a78b36290b Add implementation of telephony daemon 2009-05-05 21:14:19 -07:00
Marcel Holtmann 838583f498 Add option parsing and mainloop setup 2009-05-05 19:03:13 -07:00
Marcel Holtmann 2eca0bc88f Add D-Bus access configuration file 2009-05-05 18:59:24 -07:00
Marcel Holtmann 9944226e92 Fix broken prototypes 2009-05-05 18:58:12 -07:00
Marcel Holtmann 488463da5a Update log and plugin functions 2009-05-05 18:56:46 -07:00
Marcel Holtmann ed08e2adee Add plugin support infrastructure 2009-04-26 21:28:48 +02:00
Marcel Holtmann e059f43fae Add skeleton for telephony daemon 2009-04-26 21:12:32 +02:00
Marcel Holtmann a20f3ce8d2 Add directories for source code, header files and plugins 2009-04-26 20:54:47 +02:00