summaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-voice.c
Commit message (Collapse)AuthorAgeFilesLines
* iface-modem-voice: simplify reporting new incoming callsAleksander Morgado2018-10-161-38/+6
| | | | | | Allow creating a new incoming call object also when we receive +CLIP, so that we can have the remote caller number as soon as the object is created.
* base-call: treat 'ringing-in' as an in-call stateAleksander Morgado2018-10-161-4/+3
| | | | | | So that we setup in-call events as soon as we get the incoming call ringing in. This allows us to have plugin-specific implementations e.g. reporting call termination when the remote caller hangs up.
* mm-iface-mode: provide direction and number when creating callsAleksander Morgado2018-10-161-19/+11
| | | | | | | | | | Calls created from property bundles are always outgoing, while calls created as input events from URCs during runtime are always incoming. This change makes it mandatory to provide at least direction of the call when the object is created, leaving the number as an optional property that may or may not be known in advance (e.g. it would be optional only for incoming calls).
* iface-modem-voice: always create plugin-specified call objectsAleksander Morgado2018-10-161-7/+38
| | | | | | | | The Voice interface logic must always use the create_call() object from its own interface to create call objects, as that is the method that plugins can subclass to provide plugin-specific call objects. This applies to both incoming and outgoing calls.
* huawei,call: handle in-call URCs in the call object itselfAleksander Morgado2018-10-161-93/+0
| | | | | | | Instead of handling the URCs in the modem object and using the MMIfaceModem as a bridge to report the status read from the URC to a call obtained from the MMCallList... just handle the URCs in the call object itself.
* base-call: automatically terminate unanswered incoming callsAleksander Morgado2018-10-161-23/+30
| | | | | Try to automatically detect when the caller finishes the attempt to establish the call.
* base-call: don't update state twiceAleksander Morgado2018-10-161-1/+0
| | | | | The mm_gdbus_call_set_() methods update the properties in the same way as via g_object_set(), no need to do it twice.
* base-call: no need to delete call info from the deviceAleksander Morgado2018-10-161-21/+8
| | | | | | | | | | Call information only lives in the ModemManager logic, there is no associated date stored within the device itself. Therefore, simplify everything by assuming there is nothing to remove. Looks like this logic was implemented because it was originally based on the SMS management logic, but for SMS we do have to remove them (the stored PDU parts) from the device.
* iface-modem-voice: fix ordering of D-Bus signals for call addition/deletionBob Ham2018-07-271-0/+2
| | | | | | | | | | | To have proper ordering in the D-Bus signals, the skeleton's property changes must be flushed before the Call{Add,Delet}ed signals are emitted. Without this flush, the emission of the PropertiesChanged signal is delayed until the main loop is idle. This causes problems on the client side, for example the CallAdded signal being received before the Calls property contains the call. Closes: #81
* iface-modem-voice: plug memleak when creating new incoming callAleksander Morgado2018-06-111-4/+2
| | | | | The mm_call_list_add_call() takes a full reference to the call, so we can unref the original one safely.
* iface-modem-voice: port mm_iface_modem_voice_disable to use GTaskBen Chan2017-06-291-42/+47
|
* iface-modem-voice: port mm_iface_modem_voice_enable to use GTaskBen Chan2017-06-291-59/+49
|
* iface-modem-voice: port mm_iface_modem_voice_initialize to use GTaskBen Chan2017-06-291-55/+42
|
* core,libmm-glib,cli,voice: Replaced 'SendTone' method and 'ToneReceived' ↵Marco Bascetta2015-08-021-2/+2
| | | | signal with 'SendDtmf' and 'DtmfReceived'
* core,voice: minor coding style fixesAleksander Morgado2015-08-021-76/+80
|
* iface-modem-voice: cleaned error debug messagesMarco Bascetta2015-08-021-3/+3
|
* base-call,iface-modem-voice:: handle DTMFMarco Bascetta2015-08-021-1/+17
|
* huawei: handle voice call state changesMarco Bascetta2015-08-021-10/+52
|
* core: handle incoming calls (RING/CRING, CLIP, NO CARRIER).Marco Bascetta2015-08-021-0/+104
|
* core: implemented MMIfaceModemVoice interfaceRiccardo Vangelisti2015-08-021-0/+959