Commit Graph

2214 Commits

Author SHA1 Message Date
Frédéric Danis c7610c44af voicecall: remove usage of em_atd_number
as emulator atom can only run with a 'ready' SIM,
use saved number instead of em_atd_number
2011-07-21 20:26:43 -05:00
Denis Kenzior 43962ae05b cdma-connman: emit PropertyChanged signal
When Username / Password are changed, we should emit the PropertyChanged
signal
2011-07-21 04:41:34 -05:00
Guillaume Zajac cbeb0a454b cdma-connman: Add Username and Password properties 2011-07-21 04:33:49 -05:00
Denis Kenzior aa58348bbc voicecall: Free settings when sim gets locked out 2011-07-19 15:07:02 -05:00
Denis Kenzior c6c01110ec sim: Support SIM_STATE_LOCKED_OUT 2011-07-19 14:20:09 -05:00
Denis Kenzior 4adc4a728d sim: Break out state notification into own method 2011-07-19 14:10:17 -05:00
Frédéric Danis 9751914274 voicecall: close settings when SIM is removed
This also fixes the case where +BLDN uses an invalid number when the SIM
is removed.
2011-07-19 12:09:22 -05:00
Frédéric Danis d3f8eae1ff voicecall: fix callheld indicator for PTS
Fix PTS test TP/TWC/BV-03-I [Call Waiting- Hold Active/Retrieve
Waiting Call or Held].

PTS test fails after receiving intermediate update of callheld indicator
with value 0 (no held call) before it receives update to value 1
(active and held calls). This is due to the non-atomic update of calls
status after call swap (moving first call to active state before moving
second one to hold state).

HFP 1.5 spec specifies that an update of callheld indicator to 1 should
be sent after AT+CHLD=2 command.
As oFono emulator sends +CIEV only if the indicator value changes, we
need to use an intermediate state for callheld indicator (2, all calls on
hold).

So, in case of multiple active calls, or an active call with an active
mutiparty call, force update of callheld indicator to 2.
2011-07-19 11:18:22 -05:00
Jeevaka Badrappan 213d70dca3 stk: Fix crash seen in stk_alpha_id_unset
If there is no default agent, then current agent also will
be NULL. So, call stk_agent_request_cancel only when there is a valid
current agent.
2011-07-15 11:35:13 -05:00
Denis Kenzior fd47c3a502 voicecall: Minor style fix 2011-07-14 19:58:32 -05:00
Denis Kenzior e825cf3ee4 voicecall: dial_request_user_cancel is not safe
It is not safe to call dial_request_user_cancel directly.  This is
because there might be a situation where the SIM requested the calls to
be dropped first.  If we're still executing the release_all_active
request and someone calls hangup -> crash.

Instead it is safer to throttle the hangup requests until the call is
actually dialing.

In similar fashion, we should not allow hanging up a specific call if a
dial request is active, unless that call is part of the SIM dial
request.  Note that by default this is not known until the driver's dial
implementation returns and the call is in the dialing (or alerting /
connected) state.
2011-07-14 19:15:53 -05:00
Denis Kenzior 70df9939db voicecall: Send busy to DBus if emulator is pending 2011-07-14 18:28:37 -05:00
Denis Kenzior 688258a7c6 voicecall: Don't send response to defunct emulator 2011-07-14 18:28:37 -05:00
Denis Kenzior b0566f0bb7 voicecall: Throttle emulators
Make sure that only a single request from (possibly multiple) emulators
is ever sent to the voicecall driver.  In the beginning it wasn't clear
whether this will be necessary, however several command implementations
already implemented basic throttling (+CHUP, ATD, CHLD=3, CHLD=2x) and
it made sense to make this more formal.

The other constraint is the abrupt removal of the emulator atom while an
operation is pending.  This case must be handled gracefully.  See next
commit.
2011-07-14 18:28:33 -05:00
Denis Kenzior 2ff685ac54 voicecall: Minor style fixes 2011-07-14 18:25:31 -05:00
Frédéric Dalleau f403f71573 voicecall: manage multiparty list in AT+CHLD=2X 2011-07-14 18:25:31 -05:00
Frédéric Dalleau 90311a6313 voicecall: manage multiparty list in AT+CHLD=3 2011-07-14 18:25:31 -05:00
Denis Kenzior 5179489b11 voicecall: Minor style fix 2011-07-14 18:25:31 -05:00
Denis Kenzior a4cfed9eae emulator: Make the logic a bit more readable 2011-07-06 04:16:16 -05:00
Frédéric Danis 8c64487098 emulator: fix CCWA for PTS
During test TP/TCA/BV-05-I [Terminate Ongoing Call – While Call Waiting]
PTS fails if multiple +CCWA are sent (waiting for 1st phone number when
waiting one becomes incoming, intead of 2nd phone number).
So, send only 1 +CCWA.

Update RING timer management to be started as soon as an incoming call
exists, and retrieve +CLIP info for incoming or waiting call (in case
of waiting call becoming incoming call, call indicator changes before
internal call status is updated)

Force to send +CCWA (if needed) on reception of AT+CCWA=1
2011-07-06 04:16:12 -05:00
Andrzej Zaborowski 045ac8cf94 stk: Use the right command pointer 2011-07-06 04:14:47 -05:00
Marcel Holtmann b63c34adcf main: Move signalfd setup in its own function 2011-07-01 21:33:16 -07:00
Marcel Holtmann 0ca2a09f34 stkutil: Fix alignment issue with channel data length 2011-06-30 19:32:46 -07:00
Marcel Holtmann 6a183627f5 stkutil: Fix alignment issue with building event list 2011-06-30 19:32:11 -07:00
Marcel Holtmann 263e554d53 stkutil: Add missing call to va_end() 2011-06-30 17:33:59 -07:00
Guillaume Zajac cc2d6bb1f4 emulator: Use ACFC and PFC by default 2011-06-29 00:33:57 -05:00
Philippe Nunes 00bd7f8735 stk: Remove deprecated structure 2011-06-29 00:02:43 -05:00
Frédéric Danis ba81abed67 voicecall: add ATD> support for HFP emulator 2011-06-21 12:08:25 -05:00
Frédéric Danis a79546eaf4 message-waiting: API to retrieve voicemail number 2011-06-21 12:07:23 -05:00
Frédéric Danis b22b0ab57b emulator: fix local HFP AG features 2011-06-20 04:21:51 -05:00
Frédéric Danis 3bcaa862f8 voicecall: add +BLDN support for HFP emulator 2011-06-16 06:23:14 -05:00
Frédéric Danis d3322b3510 voicecall: add ATD support for HFP emulator 2011-06-16 06:22:20 -05:00
Nicolas Bertrand 51aee138de call-settings: fix typo 2011-06-16 03:55:58 -05:00
Frédéric Danis 2de3a97495 emulator: fix request tests 2011-06-15 09:20:44 -05:00
Dara Spieker-Doyle 388fe2f45a cdma-voicecall: Fix for crash when unregistering atom 2011-06-12 17:47:27 -05:00
Denis Kenzior 03a6bb8bec cdma-smsutil: Fix uninitialized var on gcc >= 4.5 2011-06-05 22:17:58 -05:00
Denis Kenzior 3c82e9b9cc sim: Make sure only PINs can be sent to EnterPin 2011-06-02 15:56:18 -05:00
Denis Kenzior ea07cbfa1b gprs: Unify logic inside registration_status_cb
And delay reseting the ATTACHING flag until we had a chance to query the
CGREG status.
2011-06-02 15:56:18 -05:00
Denis Kenzior 9ff1b9f2c5 emulator: Don't try to release in case of error 2011-06-01 21:50:02 -05:00
Frédéric Danis b230549b43 voicecall: save last dialed number 2011-06-01 20:26:41 -05:00
Frédéric Danis 3b12d765bb voicecall: create generic dial function
split manager_dial between generic and dbus parts
2011-06-01 19:34:07 -05:00
Denis Kenzior cdb98a70d0 stk: Cancel pending DTMF tones if session is ended
The Send DTMF command is special in its use of DisplayAction method of
STK agent.  This allows the user to send a 'User Terminated Session'
response to the SIM.  If the user performs this action, then any pending
DTMFs should also be canceled as soon as possible.
2011-05-31 23:31:41 -05:00
Philippe Nunes 4c2d897614 stk: simplify respond_on_exit flag handling
respond_on_exit flag is set by commands which are dispatched to the
agent, so that if the agent exits prematurely, a 'User Terminated
Session' response is sent to the SIM.

There were a couple of corner cases not quite handled correctly:

- During Set Up Call, if the user confirmation phase succeeded and the
  call was dispatched to voicecall atom successfully, and the agent
  exited at this point, then no terminal response would be sent until
  the call succeeded / failed.  Now the agent termination results in an
  'User Terminated Session' response being sent immediately, but the
  call setup proceeding.
2011-05-31 18:43:04 -05:00
Denis Kenzior d80698f25d netreg: Remove unused variable 2011-05-31 11:32:56 -05:00
Marcel Holtmann e861d1369a smsutil: Mark variable properly as unused 2011-05-29 11:55:48 -07:00
Denis Kenzior 551f53fa29 emulator: Fix make distcheck 2011-05-25 10:01:16 -05:00
Marcel Holtmann f13bedd9dc smsutil: Fix missing error handling for strtol function 2011-05-27 09:48:45 -07:00
Denis Kenzior 4f7027de6f emulator: Reflow ato implementation logic 2011-05-25 04:54:41 -05:00
Guillaume Zajac a65cc631ea emulator: add ATO implementation 2011-05-25 04:52:53 -05:00
Denis Kenzior 375a32e1f3 emulator: Make sure to cleanup on forceful exit 2011-05-24 13:45:36 -05:00
Denis Kenzior 4f7a2c06fd emulator: simplify ath callback 2011-05-24 13:45:26 -05:00
Denis Kenzior 42bed7b16a emulator: Update to the new GAtPPP API 2011-05-24 12:34:32 -05:00
Denis Kenzior a8e58a5f39 emulator: Send a NO CARRIER where appropriate 2011-05-24 12:11:01 -05:00
Denis Kenzior c54cdecc12 emulator: Get rid of return at the end of func 2011-05-24 12:11:01 -05:00
Denis Kenzior 831e5ac4ec emulator: optimize request_private_network_cb flow 2011-05-24 12:11:01 -05:00
Guillaume Zajac 5021c1ee46 emulator: add request/release private network calls 2011-05-24 12:11:01 -05:00
Guillaume Zajac 3f58ff93d8 private-network: add initial implementation 2011-05-24 12:11:01 -05:00
Lei Yu 257d5a9330 cdma-sms: Add CDMA SMS Support 2011-05-24 11:58:41 -05:00
Lei Yu d7ab83a50f cdma-sms: Add CDMA SMS Support 2011-05-24 11:55:18 -05:00
Frédéric Dalleau 871dd70833 voicecall: remove unnecessary local var 2011-05-24 11:47:47 -05:00
Frédéric Dalleau a3998f46e2 voicecall: add +VTS support for HFP emulator 2011-05-22 06:06:39 -05:00
Gustavo F. Padovan fba5050f7f simutil: remove set but not used var 2011-05-20 15:06:07 -05:00
Gustavo F. Padovan fe4b81d69a gprs: remove set but not used var 2011-05-20 15:04:59 -05:00
Gustavo F. Padovan 39f23f6fe1 sms: remove set but not used var 2011-05-20 15:03:49 -05:00
Frédéric Dalleau de2b26c906 voicecall: fix CHLD support reply 2011-05-16 23:37:59 -05:00
Denis Kenzior 543b54a34e gprs: Make sure to clean up interfaces
When going down, it is sometimes possible for us not to ifconfig down
the interface or reset the MMS context IPv4 address propertly
2011-05-11 13:29:33 -05:00
Denis Kenzior 652f2963ae simfs: Fix error reported by valgrind
==20365== Invalid read of size 8
==20365==    at 0x4B3501: sim_fs_free (simfs.c:114)
==20365==    by 0x493CEC: sim_remove (sim.c:2485)
==20365==    by 0x4703D7: modem_change_state (modem.c:410)
==20365==    by 0x470664: set_powered (modem.c:848)
==20365==    by 0x4706BA: __ofono_modem_shutdown (modem.c:2137)
==20365==    by 0x46F2C5: signal_cb (main.c:76)
==20365==    by 0x52F555E: g_io_unix_dispatch (giounix.c:166)
==20365==    by 0x52A0AAB: g_main_dispatch (gmain.c:2440)
==20365==    by 0x52A203B: g_main_context_dispatch (gmain.c:3013)
==20365==    by 0x52A2501: g_main_context_iterate (gmain.c:3091)
==20365==    by 0x52A2C98: g_main_loop_run (gmain.c:3299)
==20365==    by 0x46F0D3: main (main.c:243)
==20365==  Address 0x63ff998 is 8 bytes inside a block of size 16 free'd
==20365==    at 0x4C2612D: free (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==20365==    by 0x52AA4A1: g_free (gmem.c:263)
==20365==    by 0x52C433D: g_slice_free1 (gslice.c:907)
==20365==    by 0x52C58D0: g_slist_free_1 (gslist.c:192)
==20365==    by 0x52C5C5F: g_slist_remove (gslist.c:465)
==20365==    by 0x4B342A: sim_fs_context_free (simfs.c:192)
==20365==    by 0x4B3500: sim_fs_free (simfs.c:117)
==20365==    by 0x493CEC: sim_remove (sim.c:2485)
==20365==    by 0x4703D7: modem_change_state (modem.c:410)
==20365==    by 0x470664: set_powered (modem.c:848)
==20365==    by 0x4706BA: __ofono_modem_shutdown (modem.c:2137)
==20365==    by 0x46F2C5: signal_cb (main.c:76)
2011-05-11 12:29:59 -05:00
Denis Kenzior 993acd4132 simfs: Fix issue reported by valgrind
==20287== Invalid read of size 4
==20287==    at 0x52B5C6B: g_queue_peek_nth_link (gqueue.c:704)
==20287==    by 0x52B5F57: g_queue_peek_nth (gqueue.c:848)
==20287==    by 0x4B33ED: sim_fs_context_free (simfs.c:170)
==20287==    by 0x4B34F8: sim_fs_free (simfs.c:116)
==20287==    by 0x493CEC: sim_remove (sim.c:2485)
==20287==    by 0x4703D7: modem_change_state (modem.c:410)
==20287==    by 0x470664: set_powered (modem.c:848)
==20287==    by 0x4706BA: __ofono_modem_shutdown (modem.c:2137)
==20287==    by 0x46F2C5: signal_cb (main.c:76)
==20287==    by 0x52F555E: g_io_unix_dispatch (giounix.c:166)
==20287==    by 0x52A0AAB: g_main_dispatch (gmain.c:2440)
==20287==    by 0x52A203B: g_main_context_dispatch (gmain.c:3013)
==20287==  Address 0x63fae70 is 16 bytes inside a block of size 24
free'd
==20287==    at 0x4C2612D: free (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==20287==    by 0x52AA4A1: g_free (gmem.c:263)
==20287==    by 0x52C433D: g_slice_free1 (gslice.c:907)
==20287==    by 0x52B4E96: g_queue_free (gqueue.c:60)
==20287==    by 0x4B34E0: sim_fs_free (simfs.c:107)
==20287==    by 0x493CEC: sim_remove (sim.c:2485)
==20287==    by 0x4703D7: modem_change_state (modem.c:410)
==20287==    by 0x470664: set_powered (modem.c:848)
==20287==    by 0x4706BA: __ofono_modem_shutdown (modem.c:2137)
==20287==    by 0x46F2C5: signal_cb (main.c:76)
==20287==    by 0x52F555E: g_io_unix_dispatch (giounix.c:166)
==20287==    by 0x52A0AAB: g_main_dispatch (gmain.c:2440)
2011-05-11 12:20:59 -05:00
Denis Kenzior 4714d8199a gprs: Mark context inactive on removal 2011-05-11 12:11:23 -05:00
Denis Kenzior 623183d996 gprs: Fix valgrind error
This fixes an invalid access condition for the case where the
gprs atom is destroyed before context atoms are.
2011-05-11 12:11:23 -05:00
Denis Kenzior de0b882acf gprs: emit Active changed for contexts being removed 2011-05-11 12:11:23 -05:00
Denis Kenzior 5646ecaf35 gprs: Add additional debug statements 2011-05-11 12:11:23 -05:00
Philippe Nunes 563fcc5fe9 stkutil: Send at least the data currently available 2011-05-08 23:30:10 -05:00
Denis Kenzior b1f4e981f4 sim: Fix potential use of uninitialized variable
In certain circumstances, when the image has been cached but EFimg has
not been read yet, we might end up accessing an unitialized variable.
Fix this by always failing if EFimg has not been read yet.
2011-05-08 23:27:17 -05:00
Frédéric Danis 33515dbab3 emulator: add AT+CMEE support for HFP 2011-05-08 23:21:41 -05:00
Guillaume Zajac 762dba6bc3 emulator: add dun_ath_cb() and register it 2011-05-08 23:18:19 -05:00
Guillaume Zajac daf7c57178 emulator: add handler for ppp stream suspensions
Resulting from the client sending '+++' escape sequence.
2011-05-08 23:14:05 -05:00
Bertrand Aygon f35f985235 call-forwarding: Fix uninitialized var warning
Fix a gcc 4.5.2 warning uninit var
2011-05-05 21:18:39 -05:00
Denis Kenzior 5c9d59bad1 voicecall: CHLD support must be enclosed in a list 2011-05-04 22:29:08 -05:00
Denis Kenzior 2a5f5fe6be voicecall: Simplify CHLD support generator
In addition, fix ordering and make sure that lower case 'x' is used
2011-05-04 22:27:03 -05:00
Denis Kenzior 1655cb9bd2 voicecall: CHLD call ids start at 1, not 0 2011-05-04 22:03:11 -05:00
Frédéric Dalleau 307687942a voicecall: add +CHLD=2X support for HFP emulator 2011-05-04 22:00:21 -05:00
Frédéric Dalleau aa0f93b664 voicecall: add +CHLD=1X support for HFP emulator 2011-05-04 22:00:07 -05:00
Frédéric Dalleau 6d501aa93a voicecall: add +CHLD=4 support for HFP emulator 2011-05-04 21:59:21 -05:00
Frédéric Dalleau bb02dd4070 voicecall: add +CHLD=3 support for HFP emulator 2011-05-04 21:59:18 -05:00
Frédéric Dalleau 81ccae5a97 voicecall: add +CHLD=0 support for HFP emulator 2011-05-04 21:58:23 -05:00
Frédéric Dalleau 41d54b2718 voicecall: add +CHLD support for HFP emulator 2011-05-04 21:57:30 -05:00
Frédéric Dalleau ffe11200a9 voicecall: Fix variable initialization 2011-05-04 21:51:27 -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 2f2436bc20 modem: Don't allow setting online unless powered 2011-04-28 09:48:48 -05:00
Frédéric Danis b60762e026 voicecall: fix waiting calls for HFP emulator
Fix precedence between waiting and dialing so HFP emulator is notified
of dialing/alerting even in case of a waiting call pending.
2011-04-26 14:43:42 -05:00
Denis Kenzior f8eb178b29 voicecall: Update CLCC buffer size and comment 2011-04-26 14:41:52 -05:00
Denis Kenzior 97a7a61789 voicecall: Refactor the previous commit slightly 2011-04-26 14:41:26 -05:00
Frédéric Dalleau 719fae9587 voicecall: add +CLCC support for HFP emulator 2011-04-26 14:22:11 -05:00
Frédéric Danis 7ff32ab8e8 emulator: fix +CLIP in case of withheld call 2011-04-21 16:23:08 -05:00
Denis Kenzior 5dcab7b507 voicecall: Tweak the behavior of previous commit
Use a generic void pointer to remove the need for emulator_release_done
function.

Use naming a bit more consistent with the rest of the codebase
2011-04-19 16:32:59 -05:00
Frédéric Danis 4ad9833c25 voicecall: add +CHUP support for HFP emulator
Update multirelease_callback to be used from DBus calls or HFP Emulator.
"release done" is configurable by multirelease caller.
2011-04-19 16:27:11 -05:00
Denis Kenzior f081400c98 voicecall: Don't go over 80 characters per line 2011-04-19 16:25:08 -05:00
Frédéric Danis 8600a39cce voicecall: add ATA support for HFP emulator 2011-04-19 13:53:24 -05:00
Denis Kenzior cae4553710 emulator: Use a switch/case instead of if
Seems a bit cleaner
2011-04-19 13:53:24 -05:00
Denis Kenzior 894c9cf406 emulator: Reflow comments 2011-04-19 13:53:24 -05:00
Frédéric Danis ffd4db4a97 emulator: add +CCWA support for HFP AG 2011-04-19 13:53:24 -05:00
Frédéric Danis 7c5498746e emulator: add +CLIP support for HFP AG 2011-04-19 13:53:24 -05:00
Frédéric Danis a8acaf59d3 voicecall: add API to find call by status 2011-04-19 13:53:24 -05:00
Frédéric Danis 335ca8fac3 emulator: add RING for HFP AG 2011-04-19 13:53:23 -05:00
Denis Kenzior 2ded3271d5 simutil: Add support of CPHS EFcsp to our EF db 2011-04-14 17:34:16 -05:00
Denis Kenzior d6838a2095 network: One more trivial fix
total_length and record_length are the same in this context, but using
total_length makes the code more readable
2011-04-14 17:33:40 -05:00
Denis Kenzior 1e00ed554c network: Refactor EFcsp to support STK Refresh 2011-04-14 17:02:22 -05:00
Denis Kenzior 441456503e network: Use strings instead of ints in settings 2011-04-14 17:02:22 -05:00
Denis Kenzior 240a01260f modem: Fix entering offline mode prematurely
A contextual change to __ofono_modem_find_atom has caused us to enter
into offline mode prematurely.  find_atom was changed to return only the
atoms that were registered, however the modem really has to know whether
the sim atom is created (not registered) in order to know whether to
wait for the SIM to be initialized or not.
2011-04-14 17:02:22 -05:00
Denis Kenzior d26a3fd67b sms: Fix typo 2011-04-14 17:02:22 -05:00
Denis Kenzior e4fda1e36d network: Read EFcsp after initializing reg state
This is to avoid some benign race conditions when EFcsp might be read
before the registration state has been established.
2011-04-14 17:02:22 -05:00
Denis Kenzior 49928bece3 network: Try not to clash with 27.007-defined modes 2011-04-14 17:02:22 -05:00
Denis Kenzior 59f32bd353 netreg: Refactor register_callback 2011-04-14 17:02:22 -05:00
Aki Niemi 41c42f1606 netreg: Add CPHS CSP implementation 2011-04-14 17:02:22 -05:00
Philippe Nunes 8cb9e8ed7b stkutil: Add additional info enum for BIP 2011-04-11 23:17:19 -05:00
Philippe Nunes bcd8608f95 stkagent: Add ConfirmOpenChannel method 2011-04-11 23:16:56 -05:00
Denis Kenzior e9f12d7620 voicecall: fix to sim ecc free logic
Correct copy paste mistakes and a slight logic oversight
2011-04-11 17:48:11 -05:00
Denis Kenzior 857d2dfca8 voicecall: Fix ECC list generation for empty EFecc 2011-04-11 15:24:09 -05:00
Frédéric Danis d214427663 voicecall: add call, callsetup and callheld indicators 2011-04-11 10:34:30 -05:00
Frédéric Danis d43cf515da emulator: add call, callsetup and callheld cinds 2011-04-11 10:34:15 -05:00
Nicolas Bertrand 0596480260 stkagent: Avoid error when URL is null
...with STK command "LAUNCH BROWSER" and default URL
2011-04-07 22:26:42 -05:00
Denis Kenzior 31aca33b44 voicecall: Handle concurrent Refresh & NW ECC update
There is a potential case where the EFecc is being refreshed due to a
SIM refresh and a Network ECC list is updated.  In this case we might
report a set of numbers that is not yet complete.  Take care of this
case.
2011-04-07 22:18:06 -05:00
Denis Kenzior ad717a0f40 voicecall: Don't reverse sim_en_list
The order of the ECCs is not important as they're all unique.
2011-04-07 22:18:05 -05:00
Denis Kenzior 85dfc94016 voicecall: Fix ECC list generation
If the network list of ECC numbers is updated when we have no SIM, or
when the SIM numbers have not yet been read, or there is an error during
EFecc read, then the default_no_sim numbers are never added to the ECC
list.
2011-04-07 22:18:05 -05:00
Denis Kenzior 7608db55cb voicecall: Localize variable initialization 2011-04-07 22:18:05 -05:00
Jeevaka Badrappan 4a83571677 voicecall: network emergency number list support 2011-04-07 22:18:05 -05:00
Jeevaka Badrappan f6444d3963 voicecall: Refactor emergency number list handling 2011-04-07 22:18:05 -05:00
Jeevaka Badrappan 758826919b voicecall: Remove sim_state_watch on atom unregister 2011-04-07 22:18:05 -05:00
Denis Kenzior 8900cf81a6 stk: No more need to use get_registered
__ofono_modem_find_atom returns only atoms that are registered now.
2011-04-05 00:18:34 -05:00
Denis Kenzior 73b9e06c40 stk: Check for USSD atom before others
For efficiency (and consistency) we should check for the USSD atom
before checking CallForwarding, CallBarring, and CallSettings atoms.
2011-04-05 00:16:23 -05:00
Andrzej Zaborowski d77f0ff799 stk: Check if terminal is busy before SIM Refresh 2011-04-05 00:12:10 -05:00
Denis Kenzior 9464dc32b4 call-forwarding: Move to avoid forward-decl 2011-04-05 00:07:43 -05:00
Denis Kenzior ee5282aac9 call-forwarding: Remove unneeded forward-decl 2011-04-05 00:06:29 -05:00
Denis Kenzior f31298666b call-forwarding: Fix typo 2011-04-05 00:05:10 -05:00
Andrzej Zaborowski c57d6049bf call-forwarding: Reregister on EF-CFIS refresh 2011-04-05 00:05:04 -05:00
Denis Kenzior ff04d53e32 modem: Tweak online logic if set_online is missing
In case set_online is missing, we should set online mode directly.  If
we're already online then set our state to Online, otherwise check if we
should get Online.
2011-04-04 23:48:41 -05:00
Denis Kenzior 4ee289a4ab modem: No need to set get_online on sim reset
When STK sends us a SIM Refresh resulting in a SIM reset, we should not
set the online state as the modem should still keep us online anyway.
2011-04-04 23:45:32 -05:00
Denis Kenzior 1b0c1a6416 modem: Fix minor style violations 2011-04-04 23:45:23 -05:00
Jeevaka Badrappan e933ca4260 modem: modem state decoupled from rf state 2011-04-04 23:36:49 -05:00
Denis Kenzior a002db962a voicecall: Detect emergency calls initiated by STK 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan 348149ec5a voicecall: add emergency mode handling 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan f117cc5abf voicecall: generalize emergency call check 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan 0bb95c1bd8 modem: restrict operations allowed in emergency 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan c65eb67f48 dbus: Add __ofono_error_emergency_active 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan aa6e379ee3 modem: add increment/decrement emergency mode api 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan c6cd422f25 modem: add Emergency property 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan e8d3066781 modem: add ofono_modem_get_emergency_mode api 2011-04-04 23:36:49 -05:00
Frédéric Danis e7e6ce9983 sim: add +CNUM support for HFP emulator 2011-03-31 14:29:39 -05:00
Denis Kenzior f58c3614aa stkutil: add one more sanity check 2011-03-31 14:00:49 -05:00
Denis Kenzior c79c3c0e54 stkutil: Minor style fixes 2011-03-31 14:00:26 -05:00
Philippe Nunes d147afd6fc stkutil: decoding & encoding for class e commands
Complete the TLV parsing/builder to support BIP commands
2011-03-31 13:43:29 -05:00
Philippe Nunes b2e3a47217 stkutil: Add typo/cleaning modifications 2011-03-30 19:36:09 -05:00
Denis Kenzior 767d297263 modem: Only find registered atoms
Change the semantics of __ofono_modem_find_atom to only return
registered atoms.
2011-03-30 13:30:50 -05:00
Denis Kenzior 3e799ce8b4 devinfo: Register the devinfo atom 2011-03-30 13:30:01 -05:00
Denis Kenzior 29df90d2b1 voicecall: set call_list to NULL 2011-03-30 13:29:47 -05:00
Denis Kenzior 44953be406 network: Notify only registered emulator atoms 2011-03-30 13:06:57 -05:00
Denis Kenzior 774cb72930 modem: Add __ofono_modem_foreach_registered_atom 2011-03-30 13:04:42 -05:00
Denis Kenzior 192c0b62f4 modem: Remove more un-needed code 2011-03-30 13:04:31 -05:00
Denis Kenzior 6c9a6b064f network: Remove un-needed code
With the new add_atom_watch semantics the foreach statement is not
needed.
2011-03-30 12:38:14 -05:00
Mika Liljeberg 0eedf42921 core: remove redundant code 2011-03-30 12:33:54 -05:00
Mika Liljeberg 3c19134524 core: notify watches of already registered atoms 2011-03-30 12:26:19 -05:00
Philippe Nunes 5ba49490c8 stk: Handle user termination for Send DTMF 2011-03-30 12:07:49 -05:00
Denis Kenzior 91d8423458 stkagent: typedef renaming from previous commit 2011-03-30 12:07:49 -05:00
Philippe Nunes 70ae73d78b stkagent: Add stk_agent_display_action method 2011-03-30 12:07:49 -05:00
Frédéric Danis 3c3d00dac8 netreg: add +COPS support for HFP emulator 2011-03-29 21:52:37 -05:00
Denis Kenzior a23cc178be gnss: Rework logic flow for exceptional conditions 2011-03-28 18:06:58 -05:00
Denis Kenzior 7ae093b97e gnss: Minor style fix 2011-03-28 18:06:58 -05:00
Denis Kenzior 62d4037c38 gnss: Tweak error 2011-03-28 18:06:58 -05:00
Denis Kenzior 8b2d2b3641 gnss: No need to set this to FALSE
The structure is already zerod during g_try_new0
2011-03-28 18:06:58 -05:00
Denis Kenzior 7ce3648711 gnss: Minor style tweak 2011-03-28 18:06:58 -05:00
Denis Kenzior 7358049a58 gnss: block send_element if we have no agent 2011-03-28 18:06:58 -05:00
Jarko Poutiainen 206baad15b ofono.conf: add positioning agent interface 2011-03-28 18:06:58 -05:00
Denis Kenzior 626750d8a7 gnssagent: Unify sending functions 2011-03-28 18:06:58 -05:00
Denis Kenzior bafe9f2de2 gnssagent: Minor style tweaks 2011-03-28 18:06:58 -05:00
Denis Kenzior c57843bd29 gnss: Remove unneeded parameter to gnss_agent_new 2011-03-28 18:06:58 -05:00
Jarko Poutiainen c0b0188825 src: add gnss atom and agent implementation 2011-03-28 18:06:58 -05:00
Jarko Poutiainen d451195c82 src: add atom type for gnss 2011-03-28 18:06:58 -05:00
Denis Kenzior 6308af8e4d Revert dun: Add ATX command in emulator (X0 only)
This reverts commit 420ec0146a.

ATX is already implemented in gatchat/gatserver.c
2011-03-28 11:21:12 -05:00
Olivier Guiter 420ec0146a dun: Add ATX command in emulator (X0 only) 2011-03-25 12:35:07 -05:00
Frédéric Danis f7f6fd75ae voicecall: fix voicecalls_release_queue
voicecalls_release_queue uses struct ofono_call instead of
struct voicecall (which is used in "calls" list parameter and
function voicecalls_release_next)
2011-03-24 13:29:49 -05:00
Mika Liljeberg b52c06210c gprs: fix memory leak 2011-03-24 13:22:46 -05:00
Frédéric Danis 9edf68c553 common: fix buffer length in phone_number_to_string
update buffer length related to OFONO_MAX_PHONE_NUMBER_LENGTH change
78c1e96bf9
2011-03-23 15:02:48 -05:00
Olivier Guiter 351c701aac emulator: add support for +GCAP 2011-03-23 15:00:12 -05:00
Jeevaka Badrappan 8e6becc57e stk: Fix getenv failure case 2011-03-23 09:54:46 -05:00
Lucas De Marchi 47ee314200 voicecall: Fix pause character validation
manager_tone() converts all tone chars to uppercase. Since everywhere we
check for both 'p' and 'P' for a pause, tone_queue() should also check
both before claiming the string is invalid.
2011-03-21 14:03:28 -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
Lucas De Marchi 888e07863b message: add cancelled state
Based on patch from Yang Gu <gyagp0@gmail.com>
2011-03-18 18:31:14 -05:00
Bertrand Aygon 0403b341ca smsutil: fix a memory leak
This was reported by cppcheck.
2011-03-18 11:29:06 -05:00
Christian Lam fd6cc036f6 src: add initial CDMA Connection Manager support 2011-03-17 14:11:50 -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
Jeevaka Badrappan 7de1717d42 stk: fix issue with Get Inkey variable timeout 2011-03-16 21:36:11 -05:00
Denis Kenzior c8b5143a03 call-forwarding: Don't update from sim if cached
If we have already cached the settings, then there's no need to update
them from the SIM, even if a SIM refresh was performed.
2011-03-15 21:22:35 -05:00
Andrzej Zaborowski 643144aafb call-forwarding: update EFs changed by SIM refresh 2011-03-15 21:18:17 -05:00
Andrzej Zaborowski 2211583953 message-waiting: Watch for sim file refreshes 2011-03-15 20:55:51 -05:00