public class InviteServerTransactionsStateMachineTest extends MessageFlowHarness
|INVITE |pass INV to TU INVITE V send 100 if TU won't in 200ms send response+-----------+ +--------| |--------+101-199 from TU | | Proceeding| |send response +------->| |<-------+ | | Transport Err. | | Inform TU | |--------------->+ +-----------+ | 300-699 from TU | |2xx from TU | send response | |send response | | +------------------>+ | | INVITE V Timer G fires | send response+-----------+ send response | +--------| |--------+ | | | Completed | | | +------->| |<-------+ | +-----------+ | | | | ACK | | | - | +------------------>+ | Timer H fires | V or Transport Err.| +-----------+ Inform TU | | | | | Confirmed | | | | | +-----------+ | | | |Timer I fires | |- | | | V | +-----------+ | | | | | Terminated|<---------------+ | | +-----------+ Figure 7: INVITE server transaction
counter, eventCollector, EXTENSION_HDR, MESSAGES_ARRIVE_FOR, RETRY_OBJECT_DELETES, RETRY_OBJECT_DELETES_AFTER, riListeningPoint, riSipProvider, riSipStack, STACKS_SHUT_DOWN_FOR, STACKS_START_FOR, tiListeningPoint, tiSipProvider, tiSipStack, TRANSACTION_TIMES_OUT_FOR
ABORT_ON_FAIL, abortOnFail, console, IMPLEMENTATION_PATH, LOCAL_ADDRESS, LOG_FILE_NAME, logFileName, path, printWriter, RI_PORT, riAddressFactory, riFactory, riHeaderFactory, riMessageFactory, testCounter, testResult, TI_PORT, tiAddressFactory, tiFactory, tiHeaderFactory, tiMessageFactory
Constructor and Description |
---|
InviteServerTransactionsStateMachineTest(String name) |
Modifier and Type | Method and Description |
---|---|
static Test |
suite() |
void |
testCanceledInvite()
JvB: tests CANCEL for an INVITE ST
|
void |
testCaseInsensitiveCanceledInvite()
JvB: tests CANCEL for an INVITE ST, in case the client changes
the case of the branch id to all lowercvase (NIST used to do this)
|
void |
testNonRFC3261CanceledInvite()
JvB: tests CANCEL for an INVITE ST, from an non-RFC3261 client
which uses a Via branch not starting with the magic cookie
|
void |
testProceedingCompletedConfirmedScenario()
Tries to steer a TI server transaction through the following scenario
Proceeding-->Completed-->Confirmed-->Terminated.
|
void |
testProceedingTerminatedScenario()
Tries to steer a TI server transaction through the following scenario
Proceeding-->Terminated.
|
addStatus, addStatus, createRequest, createRiContact, createRiInviteRequest, createRiRegisterRequest, createTiContact, createTiInviteRequest, createTiRegisterRequest, setUp, sleep, tearDown, waitForMessage, waitForTimeout, waitLongForMessage, waitShortForMessage
assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNull, assertSame, assertTrue, assertTrue, checkImplementsInterface, fail, fail, fail, getImplementationPath, getRiProperties, getTiProperties, implementsInterface, logTestCompleted, logTestCompleted
public InviteServerTransactionsStateMachineTest(String name)
public void testProceedingCompletedConfirmedScenario()
public void testCanceledInvite()
public void testNonRFC3261CanceledInvite()
public void testCaseInsensitiveCanceledInvite()
public void testProceedingTerminatedScenario()
public static Test suite()
Copyright © 2015. All Rights Reserved.