Newer
Older
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
} // End of function f_TC_ISC_SCCAS_CPT_INV_14
/**
* @desc Verify that the SCC AS correctly behave procedures when the access transfer is completed.
* @param p_cSeq_s Random CSeq REGISTER number
*/
function f_TC_ISC_SCCAS_TER_BYE_01(in CSeq p_cSeq_s)
runs on ImsComponent {
// Local variables
var CSeq v_cSeq_s := p_cSeq_s;
// Preambule
f_init_userprofile(c_userProfile_UE1atSUThome);
f_initSipUrl(c_serviceProfile_EMERGENCY);
f_init_interfaceprofile(c_interfaceProfile_IMS_SUT_PCSCF1);
// Registration
f_sendRegistrationAndAwait200Ok(
v_cSeq_s,
m_sccas_register(
vc_requestUri,
vc_callId,
vc_cSeq,
vc_from,
vc_to,
vc_via_REG,
vc_contact,
m_add_Authorization_digest(
vc_authorization,
{c_Integrity_protected_no}
),
PX_IMS_SUT_SCSCF_IPADDR, // TODO To be refined during validation
PX_IMS_SUT_SCSCF_PORT, // TODO To be refined during validation
"600000",
-,
m_contentType(c_sdpApplication), // TODO To be refined during validation
m_MBody_SDP(vc_sdp_local) // TODO To be refined during validation
),
mw_sccas_Response_2xxonREGISTER(vc_callId, vc_cSeq, vc_from, vc_to, vc_via_REG, vc_contact)
);
f_selfOrClientSyncAndVerdict(c_prDone, f_getVerdict()); // sync
// Registration
f_IncCSeq(v_cSeq_s); LibIms_Steps.f_setHeadersBYE(v_cSeq_s, f_initSipUrl(c_userProfile_UE1atSUThome));
f_SendBYE(
m_BYE_Request_UE(
vc_requestUri,
vc_callId,
p_cSeq_s,
vc_from, vc_to, vc_via_REG
));
tc_ack.start;
alt {
[] SIPP.receive(mw_Response_Base(c_statusLine200)) {
tc_ack.stop;
log("*** " & __SCOPE__ & ": PASS: 200 OK message was received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success); // sync
}
[] tc_ack.timeout {
f_selfOrClientSyncAndVerdict(c_tbDone, e_error); // sync
}
}
// TODO Deregistration?
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
} // End of function f_TC_ISC_SCCAS_TER_BYE_01
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
} // End of group Group_12_3
group helpers {
function f_sendRegistrationAndAwait200Ok(
in CSeq p_cSeq_s,
in template (omit) REGISTER_Request p_register,
template (present) Response p_response
) runs on ImsComponent {
f_setHeaders_REGISTER(p_cSeq_s);
f_SendREGISTER(p_register);
tc_ack.start;
alt {
[] SIPP.receive(p_response) {
tc_ack.stop;
}
[] tc_ack.timeout {
f_setVerdict(e_timeout);
}
}
} // End of function f_sendRegistrationAndAwait200Ok
/**
* @desc function send OPTIONS message
* @param p_request template of the message to be sent
*/
function f_SendOPTIONS(
template(value) OPTIONS_Request p_request
) runs on SipComponent {
SIPP.send(p_request) to vc_sent_label;
}