In einer eMail vom 8/16/2004 15:10:47 GMT Daylight Time schreibt
This email address is being protected from spambots. You need JavaScript enabled to view it.:
Hello,
Could somebody help me with this code.
What is your question? What do you wish to know?
Regards,
Claude.
The following is the test purpose
RG: registeration
RT : Request
Test Purpose:
TPId: SIP_RG_RT_V_002
Status: Mandatory
Ref: 10.3 [2]
Purpose: Ensure that the IUT having sent a REGISTER request is able to receive
a Success (200 OK) response containing its current registration list in the
Contact header and an expires parameter in the header.
Test Case:
testcase SIP_RG_RT_V_002() runs on SipComponent system SipInterfaces // Ref:
10.3 [1] // Purpose: Ensure that the IUT having sent a REGISTER request is able
to receive // a Success (200 OK) response containing its current registration
list in the Contact // header and an expires parameter in the header.
{
var Request v_REGISTER_Request;
initPort (mtc, system);
v_Default := activate(defaultRGRT());
action ("Please REGISTER");
TWait.start(PX_TWAIT);
alt
{
// REGISTER message can be either received on multicast or unicast address []
SIPP.receive(REGISTER_Request_r_2) -> value v_REGISTER_Request sender sent_label
{ TWait.stop; setverdict(pass); // Catch and prepare informations to answer
setHeadersOnReceiptOfRegister(v_REGISTER_Request);
// Update contact list to set expiration of each contact to SHORT_REGISTRATION
delay updateContactAddress_List(v_Contact, SHORT_REGISTRATION); // Get current
Date in format rfc1123-Date v_date := getCurrentGMTDate(); // Send an Answer to
the UA with a Date field // and the updated contact list SIPP.send
(Response_Register_200_s_1(v_CallId, v_CSeq, v_From, v_To, v_Via, v_Contact,
v_date, SHORT_REGISTRATION )) to sent_label; }
[] TWait.timeout {setverdict(inconc); stop}
}
// Check that IUT doesn't send any further message checkNoFurtherMessages();
} // end testcase SIP_RG_RT_V_002
Thanks and Regards,
Lavanya Lakshman
Claude Desroches email: This email address is being protected from spambots. You need JavaScript enabled to view it.
Solonplatz 3/2 phone: +49 (0)30 9606 7986
13088 Berlin fax: +49 (0)30 9606 7987
Germany handy: +49 (0)174 701 6792