From: Daniel Wagner <[email protected]>
---
doc/session-api.txt | 9 +++++++++
src/session.c | 3 +++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/doc/session-api.txt b/doc/session-api.txt
index 05380e5..0398e36 100644
--- a/doc/session-api.txt
+++ b/doc/session-api.txt
@@ -242,6 +242,15 @@ Settings string Bearer [readonly]
PolicyKit rule so that only the emergency application
can write.
+ The emerengcy application is expected to call Connect()
+ after setting this setting true. If the emergency
+ situation is over the application should call
+ Disconnect() and also set the EmergencyCall to false
+ afterwards.
+
+ Note only services matching the AllowedBearer rule
+ will be considered.
+
string RoamingPolicy [readwrite]
The allowed roaming behavior.
diff --git a/src/session.c b/src/session.c
index c8ad3e6..ba396b9 100644
--- a/src/session.c
+++ b/src/session.c
@@ -721,6 +721,9 @@ static void session_changed(struct connman_session *session)
* play a bit around. So we are going to improve it step by step.
*/
+ if (info->ecall == TRUE && session != ecall_session)
+ goto out;
+
if (info->connect == FALSE) {
if (info->service != NULL)
__connman_service_disconnect(info->service);
--
1.7.4.2
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman