Commit b1c249a8 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Put the VoIP phone call in pause when wanted

parent 0bd114d3
No preview for this file type
...@@ -322,7 +322,7 @@ namespace Linphone.Model ...@@ -322,7 +322,7 @@ namespace Linphone.Model
public void PauseCurrentCall() public void PauseCurrentCall()
{ {
LinphoneCall call = LinphoneCore.GetCurrentCall(); LinphoneCall call = LinphoneCore.GetCurrentCall();
//call.CallContext.NotifyCallHeld(); ((VoipPhoneCall)call.CallContext).NotifyCallHeld();
LinphoneCore.PauseCall(call); LinphoneCore.PauseCall(call);
} }
...@@ -333,8 +333,8 @@ namespace Linphone.Model ...@@ -333,8 +333,8 @@ namespace Linphone.Model
{ {
if (LinphoneCore.GetCallsNb() > 0) if (LinphoneCore.GetCallsNb() > 0)
{ {
LinphoneCall call = LinphoneCore.GetCalls().First(); LinphoneCall call = LinphoneCore.GetCurrentCall();
//call.CallContext.NotifyCallActive(); ((VoipPhoneCall)call.CallContext).NotifyCallActive();
LinphoneCore.ResumeCall(call); LinphoneCore.ResumeCall(call);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment