Skip to content

Emergency Calls (4th round)

Andras Domokos ofono 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4modem: add modem online-offline watchsrc/modem.c src/ofono.h+54 -01 reply
2/4modem: add EmergencyMode propertysrc/modem.c src/ofono.h+138 -02 replies
2/4modem: add EmergencyMode propertysrc/dbus.c src/modem.c src/ofono.h+149 -03 replies
3/4modem: move dial_request_cb functionsrc/voicecall.c+35 -350 replies
4/4voicecall: add emergency call handlingsrc/voicecall.c+110 -13 replies
4/4voicecall: add emergency call handlingsrc/voicecall.c+111 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Emergency Calls (4th round)

Here is a new proposal for emergency calls handling.

Steps in handling emergency calls:
- subscribe to modem online notifications (add modem online watcher)
- an emergency call detected (phone number is emergency number)
- increment emergency mode
- advertise "EmergencyMode" property change on D-Bus (first call)
- set modem online if it's in offline mode (minimal setup)
- adevertise "Online" property change on D-Bus
- if modem is not online postpone making the call, otherwise make the emergency call
- when modem online notification comes and there is postponed call request make the emergency call
- when an emergency call ends decrement emergency mode
- set modem offline if it was set online due to the emergency call (last call)
- advertise "Online" property change on D-Bus
- advertise "EmergencyMode" property change on D-Bus (last call)

Note: emergency calls with SIM card (network registered or unregistered) and without SIM card are supported.

Andras Domokos (4):
modem: add modem online-offline watch
modem: add EmergencyMode property
modem: move dial_request_cb function
voicecall: add emergency call handling

 src/modem.c     |  180 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/ofono.h     |   12 ++++
 src/voicecall.c |  175 +++++++++++++++++++++++++++++++++++++++++++----------
 3 files changed, 334 insertions(+), 33 deletions(-)