Commit Graph

1213 Commits

Author SHA1 Message Date
Denis Kenzior f14e7c30bc Add hooks to call into sms history for SMS atom 2009-11-05 16:47:12 -06:00
Denis Kenzior 9afdf1a35b Add SMS history capability 2009-11-05 16:46:43 -06:00
Denis Kenzior 61260c298f Refactor: Make SendMessage async
This commit does two things.  First it makes SendMessage an async
method, which returns only when the SMS message has been successfully
sent or failed.

This also adds a set number of tries that oFono will resubmit the PDU to
the SMSC.  If any fragment fails to be submitted, the entire send
message attempt is deemed a failure and an error is returned to the caller.
2009-11-05 16:44:22 -06:00
Denis Kenzior 1fb5d7191e Rename sms assembly path to sms_assembly from sms
Not to interfere with sms settings storage
2009-11-05 16:42:15 -06:00
Denis Kenzior 1cabf97fe8 Use localtime_r instead of localtime 2009-11-05 16:00:34 -06:00
Denis Kenzior 0cd98c5e9e Fix: Update send-sms to the new API 2009-11-05 11:51:54 -06:00
Denis Kenzior 6297470cf0 Fix: Handle MBM hardware that fails on EMRDY? 2009-11-05 11:00:57 -06:00
Denis Kenzior 3c4dfdcb7f Refactor: Move SMS SendMessage to 1 recipient only 2009-11-05 10:27:25 -06:00
Denis Kenzior e75fef59f2 Fix: Load GPRS settings before finding netreg
GPRS Settings should be loaded before we try to find netreg atom and
potentially try to make the attach/detach decisions.
2009-11-05 10:25:59 -06:00
Denis Kenzior 24a7d9a673 Fix: Handle the case where only PLMN name is given
HFP does not allow the use of register / unregister or scan for operator
functionality.  It only allows the name of the operator to be given, not
even an MCC/MNC.  Handle this situation inside netreg atom.
2009-11-04 11:43:57 -06:00
Denis Kenzior c63a0413cd Fix: Minor style issues 2009-11-03 11:57:43 -06:00
Gustavo F. Padovan 1acd7f8b75 Create network registration driver for hfpmodem
This driver handles phone informations about registration status, signal
strength and roaming status listening +CIEV commands.  It also gets the
Network Operator name with +COPS commands.
2009-11-03 11:49:35 -06:00
Zhenhua Zhang ff2a8e6f7c Fix: The use of cind_val / cind_pos was wrong 2009-11-03 11:26:08 -06:00
Zhenhua Zhang 2185106b32 Refactor: Get rid of mpty_call variable 2009-11-03 11:22:23 -06:00
Zhenhua Zhang c40657216d Fix: Remove some dead code 2009-11-03 11:19:39 -06:00
Denis Kenzior ac5f67c46d Add ability to restore GPRS contexts from settings 2009-11-02 16:02:09 -06:00
Denis Kenzior 8d7f5245b4 Save GPRS context settings 2009-11-02 16:02:09 -06:00
Denis Kenzior 1ff069be5a Add Basic save/restore code for GPRS setting 2009-11-02 16:02:09 -06:00
Denis Kenzior 3c702b4d99 Limit the number of contexts that we manage 2009-11-02 16:02:09 -06:00
Denis Kenzior 708f7481b0 Update CreateContext API 2009-11-02 16:02:09 -06:00
Denis Kenzior 1f73c18257 Add utility to convert strings to context type 2009-11-02 16:02:09 -06:00
Denis Kenzior bf8e486f02 Fix: Default to type internet 2009-11-02 16:02:09 -06:00
Marcel Holtmann 98ce3e3c8d Release 0.9 2009-11-01 23:49:40 +09:00
Marcel Holtmann 3c24593c0c Use ofono_info() for AT command debugging 2009-11-01 23:42:18 +09:00
Ryan M. Raasch f92888fae7 Inserted the GSM syntax option in modem.conf
This is patch to allow the gsm syntax to be specified in the
modem.conf file. It is a 2nd version based on code change requests.
2009-11-01 23:29:03 +09:00
Denis Kenzior cbe52b9a44 Fix: Quiet compiler warnings 2009-10-30 16:09:59 -05:00
Denis Kenzior 26804de94b Add checking for valid APN format 2009-10-30 15:54:32 -05:00
Denis Kenzior 17696e133b Add unit test for valid APN names 2009-10-30 15:52:38 -05:00
Denis Kenzior ee92dc0b62 Add utility to test for valid APN names 2009-10-30 15:52:29 -05:00
Denis Kenzior cc5701c76f Add saving / restoring of netreg settings 2009-10-30 15:23:27 -05:00
Denis Kenzior 6b46d7d363 Add utilities for settings management 2009-10-30 15:22:06 -05:00
Denis Kenzior 6b19de8c07 Fix: Remove unused header include 2009-10-30 13:20:31 -05:00
Denis Kenzior 66653ecfb7 Add Mode property to NetworkRegistration 2009-10-30 12:38:12 -05:00
Denis Kenzior fa33588d40 Fix: style issues 2009-10-30 12:37:23 -05:00
Denis Kenzior c5600c1be2 Fix: Refine the logic for CHLD=1 and CHLD=2 2009-10-30 12:02:43 -05:00
Denis Kenzior 252fd9eb52 Fix: Properly update technologies
When current operator is reported, update the technology list if the
tech information is available
2009-10-29 16:38:25 -05:00
Denis Kenzior a53440d648 Compress the operator list before processing 2009-10-29 16:33:29 -05:00
Denis Kenzior 8172f78ea3 Update the network API 2009-10-29 16:09:32 -05:00
Denis Kenzior 22dc4e229f Add utility to compress plmns that vary by tech 2009-10-29 15:58:32 -05:00
Denis Kenzior 40adc85174 Refactor: Get rid of useless netreg parameter 2009-10-29 15:58:09 -05:00
Denis Kenzior 4e69a94a86 Refactor: Use Technologies instead of Technology 2009-10-29 15:57:02 -05:00
Denis Kenzior 47fa0fb883 Add utility to create a list of supported techs 2009-10-29 15:54:23 -05:00
Denis Kenzior 694cacf4f8 Refactor: Operator registration to DBUS 2009-10-29 15:48:37 -05:00
Denis Kenzior 9f8bc8e6cd Refactor: Internal data structures
This is in preparation to coalescing multiple operators reported by the
driver that vary only by technology into a single operator with multiple
technologies
2009-10-29 15:33:57 -05:00
Denis Kenzior 89a4dc48d4 Update the isimodem driver to the new API 2009-10-29 15:29:55 -05:00
Denis Kenzior 673a0eaae1 Update the atmodem driver to the new API 2009-10-29 15:29:41 -05:00
Denis Kenzior cbc1f998f2 Update the netreg driver to use mcc/mnc
Don't use the ofono_network_operator structure anymore
2009-10-29 15:29:12 -05:00
Denis Kenzior fd6d9f9fc7 Fix: Don't pass ofono_network_operator structures 2009-10-29 15:28:26 -05:00
Denis Kenzior 177c9672d1 Fix: Also auto register when status is unknown 2009-10-29 14:21:04 -05:00
Denis Kenzior a25f11862d Fix: Quiet compiler warning 2009-10-29 14:18:58 -05:00