voicecall: add +CHLD=3 support for HFP emulator

This commit is contained in:
Frédéric Dalleau 2011-05-02 17:48:05 +02:00 committed by Denis Kenzior
parent 81ccae5a97
commit bb02dd4070
1 changed files with 14 additions and 0 deletions

View File

@ -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);