From bb02dd4070292e1b1f2b0083c657daeb6afab272 Mon Sep 17 00:00:00 2001 From: Frédéric Dalleau Date: Mon, 2 May 2011 17:48:05 +0200 Subject: voicecall: add +CHLD=3 support for HFP emulator --- src/voicecall.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src') diff --git a/src/voicecall.c b/src/voicecall.c index 9225de9c..b420071c 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -2788,6 +2788,13 @@ static void emulator_chld_cb(struct ofono_emulator *em, vc->driver->hold_all_active(vc, emulator_generic_cb, em); return; + case 3: + if (vc->driver->create_multiparty == NULL) + goto fail; + + vc->driver->create_multiparty(vc, + emulator_generic_cb, em); + return; default: goto fail; } @@ -2814,6 +2821,13 @@ static void emulator_chld_cb(struct ofono_emulator *em, *info++ = '2'; } + if (vc->driver->create_multiparty) { + if (info - buf > 6) + *info++ = ','; + + *info++ = '3'; + } + *info++ = '\0'; ofono_emulator_send_info(em, buf, TRUE); -- cgit v1.2.3