Decline incoming call with busy reason if more than one call
This commit is contained in:
parent
91601cdd8c
commit
d54a707816
2 changed files with 8 additions and 2 deletions
|
@ -25,6 +25,7 @@ Group changes to describe their impact on the project, as follows:
|
||||||
### Changed
|
### Changed
|
||||||
- Account EXPIRES is now set to 1 month instead of 1 year for sip.linphone.org accounts
|
- Account EXPIRES is now set to 1 month instead of 1 year for sip.linphone.org accounts
|
||||||
- Replaced voice recordings file name by localized placeholder text, like for video conferences invitations
|
- Replaced voice recordings file name by localized placeholder text, like for video conferences invitations
|
||||||
|
- Decline incoming calls with Busy reason if there is at least another active call
|
||||||
- Removed jetifier as it is not needed
|
- Removed jetifier as it is not needed
|
||||||
- Switched from gradle 7.5 to 8.0, requires JDK 17 (instead of 11)
|
- Switched from gradle 7.5 to 8.0, requires JDK 17 (instead of 11)
|
||||||
|
|
||||||
|
|
|
@ -750,8 +750,13 @@ class CoreContext(
|
||||||
call.redirectTo(voiceMailAddress)
|
call.redirectTo(voiceMailAddress)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Log.i("[Context] Declining call $call")
|
val reason = if (core.callsNb > 1) {
|
||||||
call.decline(Reason.Declined)
|
Reason.Busy
|
||||||
|
} else {
|
||||||
|
Reason.Declined
|
||||||
|
}
|
||||||
|
Log.i("[Context] Declining call [$call] with reason [$reason]")
|
||||||
|
call.decline(reason)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue