summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/voicecall.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index 432c7394..69cd2384 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -2815,6 +2815,15 @@ static void emulator_chld_cb(struct ofono_emulator *em,
return;
}
+ if (chld >= 20 && chld <= 27) {
+ if (vc->driver->private_chat == NULL)
+ goto fail;
+
+ vc->driver->private_chat(vc, chld - 20,
+ emulator_generic_cb, em);
+ return;
+ }
+
goto fail;
case OFONO_EMULATOR_REQUEST_TYPE_SUPPORT:
@@ -2860,6 +2869,14 @@ static void emulator_chld_cb(struct ofono_emulator *em,
*info++ = 'X';
}
+ if (vc->driver->private_chat) {
+ if (info - buf > 6)
+ *info++ = ',';
+
+ *info++ = '2';
+ *info++ = 'X';
+ }
+
*info++ = '\0';
ofono_emulator_send_info(em, buf, TRUE);