Newer
Older
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
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
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_setHeadersINVITE(v_cSeq_s, f_initSipUrl(c_serviceProfile_EMERGENCY), f_initSipUrl(c_userProfile_UE1atSUThome));
f_SendINVITE(
m_sccas_invite( // TODO request active speech media component using CS bearer
vc_requestUri,
vc_callId,
p_cSeq_s,
vc_from, vc_to, vc_via_REG,
vc_contact,
-, -, -,
m_MBody_SDP(vc_sdp_local)
));
tc_ack.start;
alt {
[] SIPP.receive(mw_INVITE_Request(?,vc_requestUri)) {
tc_ack.stop;
log("*** " & __SCOPE__ & ": PASS: forwarded INVITE message was received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success); // sync
}
[] tc_ack.timeout {
f_selfOrClientSyncAndVerdict(c_tbDone, e_error); // sync
}
}
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
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
} // End of function f_TC_ISC_SCCAS_CPT_INV_12
/**
* @desc Verify that the SCC AS handles correctly transfer of originating session in alerting phase.
* @param p_cSeq_s Random CSeq REGISTER number
*/
function f_TC_ISC_SCCAS_CPT_INV_13(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_setHeadersINVITE(v_cSeq_s, f_initSipUrl(c_serviceProfile_EMERGENCY), f_initSipUrl(c_userProfile_UE1atSUThome));
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
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_statusLine180)) {
tc_ack.stop;
log("*** " & __SCOPE__ & ": PASS: Respoonse 180 was received ***");
f_selfOrClientSyncAndVerdict(c_tbDone, e_success); // sync
}
[] tc_ack.timeout {
f_selfOrClientSyncAndVerdict(c_tbDone, e_error); // sync
}
}
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
} // End of function f_TC_ISC_SCCAS_CPT_INV_13
/**
* @desc Verify that the SCC AS handles correctly transfer of terminating session in alerting phase.
* @param p_cSeq_s Random CSeq REGISTER number
*/
function f_TC_ISC_SCCAS_CPT_INV_14(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_setHeadersINVITE(v_cSeq_s, f_initSipUrl(c_serviceProfile_EMERGENCY), f_initSipUrl(c_userProfile_UE1atSUThome));
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
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
}
}
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
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
}
}
f_selfOrClientSyncAndVerdict(c_poDone, f_getVerdict()); // sync
} // End of function f_TC_ISC_SCCAS_TER_BYE_01
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
} // 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;
}
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
/**
* @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);
}
}