Newer
Older
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_setHeadersINVITE(v_cSeq_s, f_initSipUrl(c_serviceProfile_EMERGENCY), f_initSipUrl(c_userProfile_UE1atSUThome));
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
f_sendResponse(
m_Response_2xx_Base(
c_statusLine200,
vc_callId,
p_cSeq_s,
vc_from,
vc_to,
vc_via_REG
));
tc_ack.start;
alt {
[] SIPP.receive(mw_Response_Base(c_statusLine183)) {
tc_ack.stop;
log("*** " & __SCOPE__ & ": PASS: Respoonse 183 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_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
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
} // 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;
}
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
/**
* @desc setting of general and basic OPTIONS header fields in additon to the addresses (To, From, ReqUri)
* @param p_cSeq_s
*/
function f_setHeadersOPTIONS(
inout CSeq p_cSeq_s
) runs on SipComponent {
f_setHeadersGeneral(p_cSeq_s, "OPTIONS"); // cseq, contact, branch, via
vc_callId := {
fieldName := CALL_ID_E,
callid := f_getRndCallId() & c_AT & vc_userprofile.currIpaddr
};
vc_cancel_To := vc_to;
vc_caller_To := vc_to;
vc_caller_From := vc_from;
if (ischosen(vc_requestUri.components.sip)) {
// sip/sips call
vc_reqHostPort := vc_requestUri.components.sip.hostPort;
}
else if (ischosen(vc_requestUri.components.urn)) {
// Emergency call
vc_reqUrnUri := vc_requestUri.components.urn;
}
else {
log("*** " & __SCOPE__ &": INFO:f_setHeadersOPTIONS: unsupported field: ", vc_requestUri," ***");
setverdict(fail);
}
}