mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
media-encryption command should return an error if the requested media encryption is not supported.
This commit is contained in:
parent
ae7e3fe0f2
commit
179122390e
1 changed files with 5 additions and 2 deletions
|
|
@ -62,7 +62,10 @@ void MediaEncryptionCommand::exec(Daemon *app, const char *args) {
|
|||
app->sendResponse(Response("Incorrect parameter.", Response::Error));
|
||||
return;
|
||||
}
|
||||
linphone_core_set_media_encryption(app->getCore(), encryption);
|
||||
app->sendResponse(MediaEncryptionResponse(app->getCore()));
|
||||
if (linphone_core_set_media_encryption(app->getCore(), encryption)==0){
|
||||
app->sendResponse(MediaEncryptionResponse(app->getCore()));
|
||||
}else{
|
||||
app->sendResponse(Response("Unsupported media encryption", Response::Error));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue