protected override void GivenOverride()
 {
     //((SipAbstractServerTransaction) Stx).Initialize();
     _provisionalResponse = CreateProvisionalResponse();
     Stx.SendResponse(_provisionalResponse);
     Stx.State.Should().Be(SipInviteServerTransaction.ProceedingState); /*assertion*/
 }
Exemplo n.º 2
0
 protected override void GivenOverride()
 {
     //((SipAbstractServerTransaction) Stx).Initialize();
     _non200FinalResponse = CreateFinalResponse(302, "Moved Temporarily");
     Stx.SendResponse(_non200FinalResponse);
     Stx.State.Should().Be(SipInviteServerTransaction.CompletedState); /*required assertion*/
 }
Exemplo n.º 3
0
        protected override void GivenOverride()
        {
            //((SipAbstractServerTransaction) Stx).Initialize();
            _non200FinalResponse = CreateFinalResponse(302, "Moved Temporarily");
            Stx.SendResponse(_non200FinalResponse);
            var ackRequest = new SipRequestBuilder().WithRequestLine(
                new SipRequestLineBuilder().WithMethod(SipMethods.Ack).Build()).Build();

            Stx.ProcessRequest(new SipRequestEventBuilder().WithRequest(ackRequest).Build());
            Stx.State.Should().Be(SipInviteServerTransaction.ConfirmedState); /*required assertion*/
        }
 protected override void When()
 {
     _finalResponse = CreateFinalResponse();
     Stx.SendResponse(_finalResponse);
 }
Exemplo n.º 5
0
 protected override void When()
 {
     _provisionalResponse = CreateProvisionalResponse();
     Stx.SendResponse(_provisionalResponse);
 }
 protected override void GivenOverride()
 {
     _response = CreateProvisionalResponse();
     Stx.SendResponse(_response);                                          /*force it to go into state*/
     Stx.State.Should().Be(SipNonInviteServerTransaction.ProceedingState); /*required assertion*/
 }
 protected override void When()
 {
     _non200FinalResponse = CreateFinalResponse(302, "Moved Temporarily");
     Stx.SendResponse(_non200FinalResponse);
 }
 protected override void GivenOverride()
 {
     _txId = Stx.GetId();
     Stx.SendResponse(CreateFinalResponse()); /*go into state*/
 }
Exemplo n.º 9
0
 protected override void When()
 {
     _mostRecentResponse = CreateFinalResponse(202, "accepted");
     Stx.SendResponse(_mostRecentResponse);
 }
Exemplo n.º 10
0
 protected override void When()
 {
     _mostRecentResponse = CreateProvisionalResponse(181, "Call Is Being Forwarded");
     Stx.SendResponse(_mostRecentResponse);
 }