Ejemplo n.º 1
0
 public override void OnRinging(ref Call call, int callbackIndex, int callbackObject, int sessionId, string statusText, int statusCode)
 {
     call.CallCurrentState = new CallRingingState();
 }
Ejemplo n.º 2
0
 public override void OnTranferFail(ref Call call)
 {
     try { throw new NotImplementedException("Invalid Call Status."); }
     catch (Exception exception) { Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger3, "", exception, Logger.LogLevel.Error); }
 }
Ejemplo n.º 3
0
 ///  <summary>
 ///
 ///  </summary>
 /// <param name="call"></param>
 /// <param name="callbackObject"></param>
 /// <param name="sessionId"></param>
 /// <param name="caller"></param>
 /// <param name="callee"></param>
 public override void OnIncoming(Call call, int callbackObject, int sessionId, string caller, string callee)
 {
     Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger3, "CallRingingState", new NotImplementedException("Invalid Call Status."), Logger.LogLevel.Error);
 }
Ejemplo n.º 4
0
 public override void OnUnHold(ref Call call, CallActions callAction)
 {
     CallAction = callAction;
 }
Ejemplo n.º 5
0
 public override void OnDisconnected(ref Call call)
 {
     try { call.CallCurrentState = new CallDisconnectedState(); }
     catch (Exception exception) { Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger3, "", exception, Logger.LogLevel.Error); }
 }
Ejemplo n.º 6
0
        ///  <summary>
        ///
        ///  </summary>
        /// <param name="call"></param>
        /// <param name="callAction"></param>
        public override void OnHold(Call call, CallAction callAction)
        {
            switch (callAction)
            {
            case Common.CallAction.Error:
                break;

            case Common.CallAction.IncommingCallRequest:
                break;

            case Common.CallAction.CallInProgress:
                break;

            case Common.CallAction.Call:
                break;

            case Common.CallAction.HoldRequested:
            case Common.CallAction.HoldInProgress:
            case Common.CallAction.Hold:
                if (call != null)
                {
                    call.CallCurrentState = new CallHoldState(callAction);
                }
                break;

            case Common.CallAction.UnHoldRequested:
                break;

            case Common.CallAction.UnHoldInProgress:
                break;

            case Common.CallAction.UnHold:
                break;

            case Common.CallAction.CallTransferRequested:
                break;

            case Common.CallAction.CallTransferInProgress:
                break;

            case Common.CallAction.CallTransferred:
                break;

            case Common.CallAction.CallSwapRequested:
                break;

            case Common.CallAction.CallSwapInProgress:
                break;

            case Common.CallAction.CallSwap:
                break;

            case Common.CallAction.ConferenceCallRequested:
                break;

            case CallAction.ConferenceCallInProgress:
                break;

            case CallAction.ConferenceCall:
                break;

            case CallAction.EtlRequested:
                break;

            case CallAction.EtlInProgress:
                break;

            case CallAction.EtlCall:
                break;

            default:
                throw new ArgumentOutOfRangeException("callAction");
            }
        }
Ejemplo n.º 7
0
 public override void OnIncoming(ref Call call, int callbackIndex, int callbackObject, int sessionId, string callerDisplayName,
                                 string caller, string calleeDisplayName, string callee, string audioCodecNames, string videoCodecNames,
                                 bool existsAudio, bool existsVideo)
 {
     try { throw new NotImplementedException("Invalid Call Status."); } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger3, "", exception, Logger.LogLevel.Error); }
 }
 public override void OnTranferFail(ref Call call)
 {
     call.CurrentState = new CallConnectedState();
 }
 public override void OnSwapReq(ref Call call, PortsipHandler sipHandler)
 {
     call.CurrentState = new CallAgentClintConnectedState();
     sipHandler.SwapCall(call.PortSipSessionId);
 }
Ejemplo n.º 10
0
 public override void OnRinging(ref Call call, int sessionId, string caller, string callerDisplayName, string callee, string calleeDisplayName)
 {
     call.CurrentState = new CallRingingState();
 }
 public override void OnHold(ref Call call, PortsipHandler sipHandler)
 {
     call.CurrentState = new CallHoldState();
 }
Ejemplo n.º 12
0
 public override void OnMakeCall(ref Call call, PortsipHandler sipHandler, string number)
 {
     call.CurrentState = new CallTryingState();
     sipHandler.DialCall(number, 0, 0);
 }
Ejemplo n.º 13
0
 public override void OnSendDTMF(ref Call call, PortsipHandler sipHandler, int val)
 {
 }
Ejemplo n.º 14
0
 public override void OnIncoming(ref Call call, int callbackIndex, int callbackObject, int sessionId, string callerDisplayName,
                                 string caller, string calleeDisplayName, string callee, string audioCodecNames, string videoCodecNames,
                                 bool existsAudio, bool existsVideo)
 {
     call.CallCurrentState = new CallIncommingState();
 }
Ejemplo n.º 15
0
 ///  <summary>
 ///
 ///  </summary>
 /// <param name="call"></param>
 /// <param name="val"></param>
 public override void OnSendDTMF(Call call, int val)
 {
     Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger3, "CallConnectedState", new NotImplementedException("Invalid Call Status."), Logger.LogLevel.Error);
 }
 public override void OnCallReject(ref Call call, PortsipHandler sipHandler)
 {
     sipHandler.EtlCall(call.PortSipSessionId);
     call.CurrentState = new CallDisconnectedState();
     call.CurrentState = new CallIdleState();
 }
Ejemplo n.º 17
0
 ///  <summary>
 ///
 ///  </summary>
 /// <param name="call"></param>
 /// <param name="sessionId"></param>
 public override void OnSessinCreate(Call call, string sessionId)
 {
     Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger3, "CallConnectedState", new NotImplementedException("Invalid Call Status."), Logger.LogLevel.Error);
 }
 public override void OnEndLinkLine(ref Call call, PortsipHandler sipHandler)
 {
     sipHandler.EtlCall(call.PortSipSessionId);
 }
Ejemplo n.º 19
0
 public override void OnRinging(ref Call call, int callbackIndex, int callbackObject, int sessionId, string statusText, int statusCode)
 {
     try { throw new NotImplementedException("Invalid Call Status."); } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger3, "", exception, Logger.LogLevel.Error); }
 }
 public override void OnMakeCall(ref Call call, PortsipHandler sipHandler, string number)
 {
     try { throw new NotImplementedException("Invalid Call Status."); } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LoggerFiles.DuoDefault, "", exception, Logger.LogLevel.Error); }
 }
Ejemplo n.º 21
0
 public override void OnSessinCreate(ref Call call, string sessionId)
 {
     try { throw new NotImplementedException("Invalid Call Status."); } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger3, "", exception, Logger.LogLevel.Error); }
 }
 public override void OnRinging(ref Call call, int sessionId, string caller, string callerDisplayName, string callee, string calleeDisplayName)
 {
     try { throw new NotImplementedException("Invalid Call Status."); } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LoggerFiles.DuoDefault, "", exception, Logger.LogLevel.Error); }
 }
Ejemplo n.º 23
0
 public override void OnReset(ref Call call)
 {
     call.CallCurrentState = new CallConnectedState();
 }
 public override void OnCallConferenceFail(ref Call call)
 {
     try { throw new NotImplementedException("Invalid Call Status."); } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LoggerFiles.DuoDefault, "", exception, Logger.LogLevel.Error); }
 }
Ejemplo n.º 25
0
 public override void OnTransferReq(ref Call call, CallActions callAction)
 {
     CallAction = callAction;
 }
 public override void OnResetStatus(ref Call call)
 {
     call.CurrentState = new CallIdleState();
 }
Ejemplo n.º 27
0
 ///  <summary>
 ///
 ///  </summary>
 /// <param name="call"></param>
 /// <param name="callbackObject"></param>
 /// <param name="sessionId"></param>
 /// <param name="statusText"></param>
 /// <param name="statusCode"></param>
 public override void OnRinging(Call call, int callbackObject, int sessionId, string statusText, int statusCode)
 {
     Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger3, "OnRinging...", Logger.LogLevel.Info);
 }
Ejemplo n.º 28
0
 ///  <summary>
 ///
 ///  </summary>
 /// <param name="call"></param>
 /// <param name="callAction"></param>
 public override void OnEndLinkLine(Call call, CallAction callAction)
 {
     Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger3, "CallConnectedState", new NotImplementedException("Invalid Call Status."), Logger.LogLevel.Error);
 }
Ejemplo n.º 29
0
 ///  <summary>
 ///
 ///  </summary>
 /// <param name="call"></param>
 public override void OnReset(Call call)
 {
     Logger.Instance.LogMessage(Logger.LogAppender.DuoLogger3, "CallRingingState", new NotImplementedException("Invalid Call Status."), Logger.LogLevel.Error);
 }
Ejemplo n.º 30
0
 public override void OnSendDTMF(ref Call call, int val)
 {
 }