Exemplo n.º 1
0
 public override void OnTransferReq(ref Call call, string transferNo, PortsipHandler sipHandler)
 {
     if (!String.IsNullOrEmpty(transferNo))
     {
         sipHandler.TransferCall(transferNo, call.PortSipSessionId);
         call.CurrentState = new CallAgentSupConnectedState();
     }
 }
Exemplo n.º 2
0
 public abstract void OnHold(ref Call call, PortsipHandler sipHandler);
Exemplo n.º 3
0
 public abstract void OnAnswer(ref Call call, PortsipHandler sipHandler);
 public override void OnHold(ref Call call, PortsipHandler sipHandler)
 {
     call.CurrentState = new CallHoldState();
 }
Exemplo n.º 5
0
 public override void OnCallReject(ref Call call, PortsipHandler sipHandler)
 {
     sipHandler.RejectCall(call.PortSipSessionId);
     call.CurrentState = new CallIdleState();
 }
 public override void OnEndLinkLine(ref Call call, PortsipHandler sipHandler)
 {
     sipHandler.EtlCall(call.PortSipSessionId);
     call.CurrentState = new CallConnectedState();
 }
Exemplo n.º 7
0
 public override void OnCallReject(ref Call call, PortsipHandler sipHandler)
 {
     sipHandler.HangupCall();
     call.CurrentState = new CallIdleState();
 }
Exemplo n.º 8
0
 public override void OnHold(ref Call call, PortsipHandler sipHandler)
 {
     call.CurrentState = new CallHoldState();
     sipHandler.HoldCall(call.PortSipSessionId);
 }
Exemplo n.º 9
0
 public abstract void OnSwapReq(ref Call call, PortsipHandler sipHandler);
Exemplo n.º 10
0
 public abstract void OnTransferReq(ref Call call, string transferNo, PortsipHandler sipHandler);
Exemplo n.º 11
0
 public abstract void OnDisconnected(ref Call call, PortsipHandler sipHandler);
Exemplo n.º 12
0
 public override void OnAnswer(ref Call call, PortsipHandler sipHandler)
 {
     call.CurrentState = new CallConnectedState();
     sipHandler.AnswerCall(call.PortSipSessionId);
 }
 public override void OnEndLinkLine(ref Call call, PortsipHandler sipHandler)
 {
     sipHandler.EtlCall(call.PortSipSessionId);
 }
Exemplo n.º 14
0
 public override void OnSendDTMF(ref Call call, PortsipHandler sipHandler, int val)
 {
     sipHandler.SendDtmf(val);
 }
Exemplo n.º 15
0
 public abstract void OnCallReject(ref Call call, PortsipHandler sipHandler);
Exemplo n.º 16
0
 public override void OnAnswer(ref Call call, PortsipHandler sipHandler)
 {
     call.CurrentState = new CallConnectedState();
 }
Exemplo n.º 17
0
 public abstract void OnEndLinkLine(ref Call call, PortsipHandler sipHandler);
Exemplo n.º 18
0
 public override void OnDisconnected(ref Call call, PortsipHandler sipHandler)
 {
     call.CurrentState = new CallIdleState();
 }
Exemplo n.º 19
0
 public abstract void OnMakeCall(ref Call call, PortsipHandler sipHandler, string number);
 public override void OnSwapReq(ref Call call, PortsipHandler sipHandler)
 {
     call.CurrentState = new CallAgentSupConnectedState();
     sipHandler.SwapCall(call.PortSipSessionId);
 }
Exemplo n.º 21
0
 public abstract void OnCallConference(ref Call call, PortsipHandler sipHandler);
 public override void OnCallConference(ref Call call, PortsipHandler sipHandler)
 {
     sipHandler.ConferenceCall();
     call.CurrentState = new CallConferenceState();
 }
Exemplo n.º 23
0
 public abstract void OnSendDTMF(ref Call call, PortsipHandler sipHandler, int val);
Exemplo n.º 24
0
 public override void OnCallConference(ref Call call, PortsipHandler sipHandler)
 {
     try { throw new NotImplementedException("Invalid Call Status."); } catch (Exception exception) { Logger.Instance.LogMessage(Logger.LoggerFiles.DuoDefault, "", exception, Logger.LogLevel.Error); }
 }
Exemplo n.º 25
0
 public override void OnMakeCall(ref Call call, PortsipHandler sipHandler, string number)
 {
     call.CurrentState = new CallTryingState();
     sipHandler.DialCall(number, 0, 0);
 }