Commit 5305d451 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Doc updated

parent d9c7b859
......@@ -6,10 +6,19 @@ using System.Threading.Tasks;
namespace Linphone.Model
{
/// <summary>
/// Interface for a basic call (start, end) listener.
/// </summary>
public interface CallControllerListener
{
/// <summary>
/// Called when a new call is started.
/// </summary>
void NewCallStarted(string callerNumber);
/// <summary>
/// Called when a call is ended.
/// </summary>
void CallEnded();
}
}
......@@ -47,7 +47,7 @@ namespace Linphone.Model
}
/// <summary>
/// Quick accessor for the CallController object through the OoP server.
/// Call coordinator used to manage system VoIP call objects.
/// </summary>
public VoipCallCoordinator CallController
{
......@@ -57,6 +57,9 @@ namespace Linphone.Model
}
}
/// <summary>
/// Simple listener to notify pages' viewmodel when a call ends or starts
/// </summary>
public CallControllerListener CallListener { get; set; }
#region Background Process
......@@ -296,7 +299,7 @@ namespace Linphone.Model
CallController.RequestNewOutgoingCall(sipAddress, "", "Linphone", VoipCallMedia.Audio, out call);
call.NotifyCallActive();
LinphoneCall LCall = LinphoneCore.Invite(sipAddress);
LCall.CallContext = call;
//LCall.CallContext = call;
if (CallListener != null)
CallListener.NewCallStarted(sipAddress);
......
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