|
|
|
|
@ -86,6 +86,7 @@ object CallController : TelecomCallManager.Listener {
|
|
|
|
|
|
|
|
|
|
fun start(channelId: String, peerNodeId: Long, peerName: String) { |
|
|
|
|
checkMain() |
|
|
|
|
if (StreamController.blocksCapture()) return |
|
|
|
|
if (channelId.isEmpty() || peerNodeId == 0L) { |
|
|
|
|
LogManager.addLog("ERROR", "Call", "invalid outgoing call channel=$channelId peer=$peerNodeId") |
|
|
|
|
return |
|
|
|
|
@ -107,6 +108,7 @@ object CallController : TelecomCallManager.Listener {
|
|
|
|
|
|
|
|
|
|
fun accept() { |
|
|
|
|
checkMain() |
|
|
|
|
if (StreamController.blocksCapture()) return |
|
|
|
|
val st = _state.value ?: return |
|
|
|
|
if (st.phase != CallPhase.INCOMING || accepting) { |
|
|
|
|
LogManager.addLog("WARN", "Call", "accept ignored id=${st.callId} phase=${st.phase} accepting=$accepting") |
|
|
|
|
|