Body of the test 1.
Try to initialization NOTIFY request out of dialog.
String method = "NOTIFY";
/** Client connection. */
SipClientConnection sc = null;
try {
// Open SIP client connection to the local SIP server
sc = (SipClientConnection)
Connector.open("sip:sippy.tester@localhost:5060;transport="
+ transport);
} catch (Exception ex) {
assertNull("Exception during sc open", sc);
ex.printStackTrace();
}
assertNotNull("sc is null", sc);
// Move to INITIALIZED state
try {
sc.initRequest(method, null);
fail("IllegalArgumentException was not caused");
} catch (IllegalArgumentException e) {
assertTrue("OK", true);
} catch (Throwable e) {
fail("INITIALIZED " +e +" was caused");
}
// close connection
try {
sc.close();
} catch (Throwable e) {
fail("" +e +" was caused");
}