LinphoneCallInProgressAgent.cs 923 Bytes
Newer Older
1 2 3
using Microsoft.Phone.Networking.Voip;
using Linphone.Core;
using Linphone.Core.OutOfProcess;
4 5 6 7 8 9 10 11 12 13
using System.Diagnostics;

namespace Linphone.Agents
{
    public class LinphoneCallInProgressAgent : VoipCallInProgressAgent
    {
        public LinphoneCallInProgressAgent() : base()
        {
        }

14 15 16
        /// <summary>
        /// Called when the first call has started.
        /// </summary>
17 18
        protected override void OnFirstCallStarting()
        {
19
            Debug.WriteLine("[LinphoneCallInProgressAgent] The first call has started.");
Ghislain MARY's avatar
Ghislain MARY committed
20
            AgentHost.OnAgentStarted();
21 22
        }

23 24 25
        /// <summary>
        /// Called when the last call has ended.
        /// </summary>
26 27 28 29 30 31
        protected override void OnCancel()
        {
            Debug.WriteLine("[LinphoneCallInProgressAgent] The last call has ended. Calling NotifyComplete");
            base.NotifyComplete();
        }
    }
32
}