---
 src/voicecall.c |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/voicecall.c b/src/voicecall.c
index 432c739..69cd238 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);
-- 
1.7.1

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to