mirror of git://git.sysmocom.de/ofono
voicecall: add +CHLD=3 support for HFP emulator
This commit is contained in:
parent
81ccae5a97
commit
bb02dd4070
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue