Commit Graph

100 Commits

Author SHA1 Message Date
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