mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Typo in call-mute
This commit is contained in:
parent
57fe1b184e
commit
350051d816
1 changed files with 1 additions and 2 deletions
|
|
@ -22,14 +22,13 @@ void CallMute::exec(Daemon* app, const char* args)
|
|||
LinphoneCore *lc = app->getCore();
|
||||
int muted = TRUE; // no arg means MUTE
|
||||
LinphoneCall *call = linphone_core_get_current_call(lc);
|
||||
int cid;
|
||||
|
||||
if( call == NULL ){
|
||||
app->sendResponse(Response("No call in progress. Can't mute."));
|
||||
return;
|
||||
}
|
||||
|
||||
if (sscanf(args, "%i", &cid) == 1) {
|
||||
if (sscanf(args, "%i", &muted) == 1) {
|
||||
linphone_core_mute_mic(lc, (muted != 0));
|
||||
} else {
|
||||
linphone_core_mute_mic(lc, (muted != 0));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue