Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
/**
* @author STF 574
* @version $Id$
* @desc This module provides the TP behaviour functions at GM interface
*/
module AtsImsIot_TP_behavior_GM {
// LibIms
import from LibIms_Templates all;
import from LibIms_UpperTester all;
// LibIot
import from LibIot_TypesAndValues all;
import from LibIot_Functions all;
import from LibIot_TestInterface all;
import from LibIot_PIXITS all;
// LibSip
import from LibSip_SIPTypesAndValues all;
import from LibSip_Templates all;
import from LibSip_Common all;
import from LibSip_SDPTypes all;
// LibMsrp
import from LibMsrp_TypesAndValues all;
import from LibMsrp_Functions all;
import from LibMsrp_Templates all;
// AtsImsIot
import from AtsImsIot_TestSystem all;
import from AtsImsIot_Templates all;
import from AtsImsIot_Templates_GM all;
import from AtsImsIot_TypesAndValues all;
import from AtsImsIot_Functions all;
group imsMessages {
/**
* @desc Verify that the P-CSCF successfully processes a SIP messages greater than 1300 bytes
* Initial conditions with {
* the UE_A entity isAttachedTo the EPC_A and
* the UE_A entity isNotRegisteredTo the IMS_A
* }
*
* Expected behaviour
* ensure that {
* when {
* the UE_A entity isRequestedToSend a MESSAGE containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* ContentLength indicating value greater than 1300 bytes
* ;
* to the IMS_P_CSCF_A entity
* }
* then {
* the IMS_P_CSCF_A entity receives the MESSAGE containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* ContentLength indicating value greater than 1300 bytes
* ;
* from the UE_A entity
* and the IMS_P_CSCF_A entity sends a 200_Ok containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* PChargingVector containing
* orig_ioi indicating value PX_OPERATOR_ID_A,
* term_ioi indicating value PX_OPERATOR_ID_B,
* not PAccessNetworkInfo
* ;;
* to the UE_A entity
* }
* }
*/
function f_mtc_check_TP_GM_PCSCF_MESSAGE_01(
SipInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := true
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)) {
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipRequest(mdw_MESSAGE_1500c)
}, // FIXME CallId and more can be checked
{ mw_SipRequest(mw_MESSAGE_Request_Base) },
{0, omit},
"TP_GM_PCSCF_MESSAGE_01 - Request",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipResponse(mw_200OK_Base)
}, // FIXME CallId and more can be checked
{ },
{0, omit},
"TP_GM_PCSCF_MESSAGE_01 - Response",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_GM_PCSCF_MESSAGE_01
} // End of group imsMessages
// 5.2 IMS Registration
group imsRegistration {
/**
* @desc Verify that the P-CSCF successfully processes a first registration (Successful)
* Initial conditions with {
* the UE_A entity isAttachedTo the EPC_A and
* the UE_A entity isNotRegisteredTo the IMS_A and
* the UE_B entity isNotRegisteredTo the IMS_B
* }
*
* Expected behaviour
* ensure that {
* when {
* the UE_A entity isTriggeredToStart
* }
* then {
* the UE_A entity sends a REGISTER containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* Authorization containing
* Authentication_Schema indicating value PX_TO_BE_DEFINED,
* Authentication_URI indicating value PX_TO_BE_DEFINED,
* Username indicating value PX_UE_A_USERNAME,
* Realm indicating value PX_UE_A_REALM,
* Algorithm indicating value PX_UE_A_AUTH_ALG,
* Nonce indicating value "",
* not term_ioi,
* not SecurityClient
* ;;
* to the IMS_P_CSCF_A entity
* and the UE_A entity receives an 401_Unauthorized containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* Path,
* Warning,
* PAccessNetworkInfo,
* WwwAuthenticate containing
* Digest,
* Realm indicating value PX_UE_A_REALM,
* Algorithm indicating value PX_UE_A_AUTH_ALG,
* Nonce indicating value "not empty",
* qop indicating value "auth"
* ;;
* from the IMS_P_CSCF_A entity
* }
* }
*/
function f_mtc_check_TP_GM_PCSCF_REGISTER_01(
in SipInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)) {
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var SipMessage v_sip;
// Check the first REGISTER
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipRequest(
mw_TP_GM_PCSCF_REGISTER_01( // FIXME Add CallId...
mw_From_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_To_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_Authorization_other
)
)
},
{
mw_SipRequest(mw_REGISTER_Request_Base)
},
{0, omit},
"TP_GM_PCSCF_REGISTER_01 - First request",
true,
p_checkMessage
)
);
p_monitorCompRef.done;
// Retrieve messge
f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
if (not(isbound(v_sip))) {
return;
}
// Check REGISTER 401 Unauthorized response
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipResponse(mw_401Unauthorized(v_sip.request.msgHeader.cSeq, mw_WwwAuthenticate))
},
{
mw_SipResponse(mw_401Unauthorized_Base),
mw_SipResponse(mw_Response_4xx_Base(
v_sip.request.msgHeader.callId,
v_sip.request.msgHeader.cSeq
))
},
{0, omit},
"TP_GM_PCSCF_REGISTER_01 - 401 Unauthorized",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_GM_PCSCF_REGISTER_01
/**
* @desc Verify that the P-CSCF successfully processes a first registration (Successful)
* Initial conditions with {
* the UE_A entity isAttachedTo the EPC_A and
Yann Garcia
committed
* the UE_A entity not isRegisteredTo the IMS_A
* }
*
* Expected behaviour
* ensure that {
* when {
Yann Garcia
committed
* the IMS_P_CSCF_A entity receives a REGISTER containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
Yann Garcia
committed
* Path,
* Warning,
* WwwAuthenticate containing
* Digest,,
* Realm indicating value PX_UE_A_REALM,
* Algorithm indicating value PX_UE_A_AUTH_ALG,
* Nonce indicating value "",
* not term_ioi,
Yann Garcia
committed
* not SecurityClient,
* Contact indicating value "sos";;
* from the UE_A entity
* }
* then {
* the IMS_P_CSCF_A entity sends a 401_Unauthorized containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* Path,
* Warning,
* PAccessNetworkInfo,
* WwwAuthenticate containing
* Digest,
* Realm indicating value PX_UE_A_REALM,
* Algorithm indicating value PX_UE_A_AUTH_ALG,
* Nonce indicating value "not empty",
Yann Garcia
committed
* qop indicating value "auth";;
Yann Garcia
committed
* from the UE_A entity
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
* }
* }
*/
function f_mtc_check_TP_GM_PCSCF_ECO_REGISTER_01(
in SipInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)) {
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var SipMessage v_sip;
// Check the first REGISTER
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipRequest(
mw_TP_GM_PCSCF_ECO_REGISTER_01( // FIXME Add CallId...
mw_From_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_To_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_Authorization_other,
-, -,
mw_contact(mw_ContactAddress)
)
)
},
{
mw_SipRequest(mw_REGISTER_Request_Base)
},
{0, omit},
"TP_GM_PCSCF_REGISTER_01 - First request",
true,
p_checkMessage
)
);
p_monitorCompRef.done;
// Retrieve messge
f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
if (not(isbound(v_sip))) {
return;
}
// Check REGISTER 401 Unauthorized response
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipResponse(mw_401Unauthorized(v_sip.request.msgHeader.cSeq, mw_WwwAuthenticate))
},
{
mw_SipResponse(mw_401Unauthorized_Base),
mw_SipResponse(mw_Response_4xx_Base(
v_sip.request.msgHeader.callId,
v_sip.request.msgHeader.cSeq
))
},
{0, omit},
Yann Garcia
committed
"TP_GM_PCSCF_ECO_REGISTER_01 - 401 Unauthorized",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_GM_PCSCF_ECO_REGISTER_01
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
/**
* @desc Verify that the P-CSCF successfully processes a first registration (Successful)
* Initial conditions with {
* the UE_A entity isAttachedTo the EPC_A and
* the UE_A entity isNotRegisteredTo the IMS_A and
* the UE_B entity isNotRegisteredTo the IMS_B
* }
*
* Expected behaviour
* ensure that {
* when {
* the IMS_P_CSCF_A entity receives a REGISTER containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* Authorization containing
* Authentication_Schema indicating value PX_TO_BE_DEFINED,
* Authentication_URI indicating value PX_TO_BE_DEFINED,
* Username indicating value PX_UE_A_USERNAME,
* Realm indicating value PX_UE_A_REALM,
* Algorithm indicating value PX_UE_A_AUTH_ALG,
* Nonce indicating value "not empty",
* qop indicating value "auth",
* not SecurityClient
* ;;
* from the UE_A entity
* }
* then {
* the IMS_P_CSCF_A entity sends an 200_Ok containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* AuthenticationInfo,
* PAccessNetworkInfo,
* PAssociatedURI indicating value PX_UE_A_SIP_URI,
* PChargingVector,
* orig_ioi_parameter
* indicating value "Operator Identifier Of ImsA" ,
* term_ioi_parameter
* indicating value "Operator Identifier Of ImsB"
* Path,
* ServiceRoute
* ;
* to the UE_A entity
* }
* }
*/
function f_mtc_check_TP_GM_PCSCF_REGISTER_02(
in SipInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var SipMessage v_sip;
// Check the first REGISTER
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipRequest(
mw_TP_GM_PCSCF_REGISTER_02(
mw_From_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_To_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_Authorization_other
)
)
},
{
mw_SipRequest(mw_REGISTER_Request_Base)
},
{0, omit},
"TP_GM_PCSCF_REGISTER_02 - Second request",
true,
p_checkMessage
)
);
p_monitorCompRef.done;
// Retrieve messge
f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
if (not(isbound(v_sip))) {
return;
}
// Check REGISTER 200 OK response
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipResponse(mw_200OK(
v_sip.request.msgHeader.cSeq,
v_sip.request.msgHeader.callId,
v_sip.request.msgHeader.fromField,
v_sip.request.msgHeader.toField
))
},
{
mw_SipResponse(mw_Response_2xx_Base)
},
{0, omit},
"TP_GM_PCSCF_REGISTER_02 - 200 OK",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_GM_PCSCF_REGISTER_02
Yann Garcia
committed
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
/**
* @desc Verify that the P-CSCF successfully processes a full emergency registration (Successful).
* Initial conditions with {
* the UE_A entity isAttachedTo the EPC_A and
* the UE_A entity isNotRegisteredTo the IMS_A and
* the UE_A entity hasAchievedFirstRegistration
* }
*
* Expected behaviour
* ensure that {
* when {
* the IMS_P_CSCF_A entity receives a REGISTER containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* Authorization containing
* Authentication_Schema indicating value PX_TO_BE_DEFINED,
* Authentication_URI indicating value PX_TO_BE_DEFINED,
* Username indicating value PX_UE_A_USERNAME,
* Realm indicating value PX_UE_A_REALM,
* Algorithm indicating value PX_UE_A_AUTH_ALG,
* Nonce indicating value "not empty",
* qop indicating value "auth",
* not SecurityClient,
* Contact indicating value "sos";;
* from the UE_A entity
* }
* then {
* the IMS_P_CSCF_A entity sends an 200_Ok containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* AuthenticationInfo,
* PAccessNetworkInfo,
* PAssociatedURI indicating value PX_UE_A_SIP_URI,
* PChargingVector,
* orig_ioi_parameter
* indicating value "Operator Identifier Of ImsA" ,
* term_ioi_parameter
* indicating value "Operator Identifier Of ImsB"
* Path,
* ServiceRoute;
* to the UE_A entity
* }
* }
*/
function f_mtc_check_TP_GM_PCSCF_ECO_REGISTER_02(
in SipInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var SipMessage v_sip;
// Check the first REGISTER
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipRequest(
Yann Garcia
committed
mw_TP_GM_PCSCF_ECO_REGISTER_02(
mw_From_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_To_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_Authorization_other,
-, -,
mw_contact(mw_ContactAddress)
)
)
},
{
mw_SipRequest(mw_REGISTER_Request_Base)
},
{0, omit},
Yann Garcia
committed
"TP_GM_PCSCF_ECO_REGISTER_02 - Second request",
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
true,
p_checkMessage
)
);
p_monitorCompRef.done;
// Retrieve messge
f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
if (not(isbound(v_sip))) {
return;
}
// Check REGISTER 200 OK response
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipResponse(mw_200OK(
v_sip.request.msgHeader.cSeq,
v_sip.request.msgHeader.callId,
v_sip.request.msgHeader.fromField,
v_sip.request.msgHeader.toField
))
},
{
mw_SipResponse(mw_Response_2xx_Base)
},
{0, omit},
"TP_GM_PCSCF_REGISTER_02 - 200 OK",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_GM_PCSCF_ECO_REGISTER_02
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
/**
* @desc Verify that the P-CSCF successfully processes an invalid first registration (Unsuccessful).
* Initial conditions with {
* the UE_A entity isAttachedTo the EPC_A and
* the UE_A entity isNotRegisteredTo the IMS_A and
* the UE_B entity isNotRegisteredTo the IMS_B
* }
*
* Expected behaviour
* ensure that {
* when {
* the UE_A entity isTriggeredToStart
* }
* then {
* the IMS_P_CSCF_A entity receives a REGISTER containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* Authorization containing
* Authentication_Schema indicating value PX_TO_BE_DEFINED,
* Authentication_URI indicating value PX_TO_BE_DEFINED,
* Username indicating value PX_UE_A_INVALID_USERNAME,
* Realm indicating value PX_UE_A_REALM,
* Algorithm indicating value PX_UE_A_AUTH_ALG,
* Nonce indicating value ""
* ;;
* from the UE_A entity
* and the IMS_P_CSCF_A entity sends an 404_NotFound containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID
* ;
* to the UE_A entity
* }
* }
*/
function f_mtc_check_TP_GM_PCSCF_REGISTER_03(
in SipInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)) {
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A); // User removed from HSS
var SipMessage v_sip;
// Check the first REGISTER
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipRequest(
mw_TP_GM_PCSCF_REGISTER_03(
mw_From_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_To_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_Authorization_other
)
)
},
{
mw_SipRequest(mw_REGISTER_Request_Base)
},
{0, omit},
"TP_GM_PCSCF_REGISTER_03 - First request",
true,
p_checkMessage
)
);
p_monitorCompRef.done;
// Retrieve messge
f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
if (not(isbound(v_sip))) {
return;
}
log("v_sip", v_sip);
// Check REGISTER 404 Not Found response
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipResponse(mw_404NotFound(v_sip.request.msgHeader.cSeq/*, mw_WwwAuthenticate*/)),
mw_SipResponse(mw_480TemporaryUnavailable(-, v_sip.request.msgHeader.cSeq/*, mw_WwwAuthenticate*/))
},
{
mw_SipResponse(mw_Response_4xx_Base(
v_sip.request.msgHeader.callId,
v_sip.request.msgHeader.cSeq
))
},
{0, omit},
"TP_GM_PCSCF_REGISTER_03 - 404 Not Found",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_GM_PCSCF_REGISTER_03
Yann Garcia
committed
* @desc Verify that the emergency registration is rejected with 403 (Forbidden) in case invalid credentials sent from UE. (Unsuccessful emergency registration).
* Initial conditions with {
Yann Garcia
committed
* the UE_A entity isEmergencyAttachedTo the EPC_A and
* the UE_A entity not isRegisteredTo the IMS_A
* }
*
* Expected behaviour
* ensure that {
* when {
* the UE_A entity isTriggeredToStart
* }
* then {
* the IMS_P_CSCF_A entity receives a REGISTER containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
Yann Garcia
committed
* Authorization indicating value "Invalid credentials",
* Contact indicating value "sos";
* from the UE_A entity
Yann Garcia
committed
* and the IMS_P_CSCF_A entity sends an 403_Forbiden containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
Yann Garcia
committed
* CallId indicating value PX_UE_A_CALLID,
Via indicating value PX_UE_A_VIA;
* to the UE_A entity
* }
* }
*/
function f_mtc_check_TP_GM_PCSCF_ECO_REGISTER_03(
in SipInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)) {
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A); // User removed from HSS
var SipMessage v_sip;
// Check the first REGISTER
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipRequest(
mw_TP_GM_PCSCF_ECO_REGISTER_03(
mw_From_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_To_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
Yann Garcia
committed
mw_Authorization_other, // FIXME indicating value "Invalid credentials"
-, -,
mw_contact(mw_ContactAddress)
)
)
},
{
mw_SipRequest(mw_REGISTER_Request_Base)
},
{0, omit},
Yann Garcia
committed
"TP_GM_PCSCF_ECO_REGISTER_03 - First request",
true,
p_checkMessage
)
);
p_monitorCompRef.done;
// Retrieve messge
f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
if (not(isbound(v_sip))) {
return;
}
log("v_sip", v_sip);
// Check REGISTER 404 Not Found response
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
Yann Garcia
committed
mw_SipResponse(mw_403Forbidden(v_sip.request.msgHeader.cSeq/*, mw_WwwAuthenticate*/)),
mw_SipResponse(mw_480TemporaryUnavailable(-, v_sip.request.msgHeader.cSeq/*, mw_WwwAuthenticate*/))
},
{
mw_SipResponse(mw_Response_4xx_Base(
v_sip.request.msgHeader.callId,
v_sip.request.msgHeader.cSeq
))
},
{0, omit},
"TP_GM_PCSCF_REGISTER_03 - 404 Not Found",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_GM_PCSCF_ECO_REGISTER_03
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
function f_mtc_check_TP_GM_PCSCF_REGISTER_04( // FIXME RMI To be reviewed
in SipInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var SipMessage v_sip;
// Check the first REGISTER
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipRequest(
mw_TP_GM_PCSCF_REGISTER_04(
mw_From_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_To_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_Authorization_other
)
)
},
{
mw_SipRequest(mw_REGISTER_Request_Base)
},
{0, omit},
"TP_GM_PCSCF_REGISTER_04 - First request",
true,
p_checkMessage
)
);
p_monitorCompRef.done;
// Retrieve messge
f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
if (not(isbound(v_sip))) {
return;
}
// Check REGISTER 404 Not Found response
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipResponse(mw_401Unauthorized(v_sip.request.msgHeader.cSeq, mw_WwwAuthenticate)),
mw_SipResponse(mw_480TemporaryUnavailable(-, v_sip.request.msgHeader.cSeq, mw_WwwAuthenticate))
},
{
mw_SipResponse(mw_401Unauthorized_Base),
mw_SipResponse(mw_Response_4xx_Base(
v_sip.request.msgHeader.callId,
v_sip.request.msgHeader.cSeq
))
},
{0, omit},
"TP_GM_PCSCF_REGISTER_04 - 401 Unauthorized",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_GM_PCSCF_REGISTER_04
Yann Garcia
committed
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
/**
* @desc Verify that the emergency registration is rejected with 403 (Forbidden) in case the UE and P-CSCF does not support GPRS-IMS-Bundled authentication. (Unsuccessful emergency registration).
* Initial conditions with {
* the UE_A entity isEmergencyAttachedTo the EPC_B and
* the UE_A entity not isRegisteredTo the IMS_B
* }
*
* Expected behaviour
* ensure that {
* when {
* the IMS_P_CSCF_B entity receives a REGISTER containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* Authorization indicating value GPRS_IMS_Bundled_authentication,
* Contact indicating value "sos";
* from the UE_A entity
* }
* then {
* the IMS_P_CSCF_B entity sends an 403_Forbiden containing
* From indicating value PX_UE_A_SIP_URI,
* To indicating value PX_UE_A_SIP_URI,
* CallId indicating value PX_UE_A_CALLID,
* Via indicating value PX_UE_A_VIA,
* MessageBody containing
* XML containing
* ims_3gpp_element indicating value anonymous_emergencycall;;;
* to the UE_A entity
* }
* }
*/
function f_mtc_check_TP_GM_PCSCF_ECO_REGISTER_04(
in SipInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var SipMessage v_sip;
// Check the first REGISTER
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipRequest(
mw_TP_GM_PCSCF_ECO_REGISTER_04(
mw_From_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_To_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_Authorization_other // FIXME not indicating value GPRS_IMS_Bundled_authenticatio
)
)
},
{
mw_SipRequest(mw_REGISTER_Request_Base)
},
{0, omit},
"TP_GM_PCSCF_ECO_REGISTER_04 - First request",
true,
p_checkMessage
)
);
p_monitorCompRef.done;
// Retrieve messge
f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
if (not(isbound(v_sip))) {
return;
}
// Check REGISTER 404 Not Found response
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipResponse(mw_403Forbidden(v_sip.request.msgHeader.cSeq, mw_WwwAuthenticate)),
mw_SipResponse(mw_480TemporaryUnavailable(-, v_sip.request.msgHeader.cSeq, mw_WwwAuthenticate))
},
{
mw_SipResponse(mw_401Unauthorized_Base),
mw_SipResponse(mw_Response_4xx_Base(
v_sip.request.msgHeader.callId,
v_sip.request.msgHeader.cSeq
))
},
{0, omit},
"TP_GM_PCSCF_REGISTER_04 - 401 Unauthorized",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_GM_PCSCF_ECO_REGISTER_04
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
function f_mtc_check_TP_GM_PCSCF_REGISTER_05( // FIXME RMI To be reviewed
in SipInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var SipMessage v_sip;
// Check the first REGISTER
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipRequest(
mw_TP_GM_PCSCF_REGISTER_05(
mw_From_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_To_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_Authorization_other
)
)
},
{
mw_SipRequest(mw_REGISTER_Request_Base)
},
{0, omit},
"TP_GM_PCSCF_REGISTER_05 - Second request",
true,
p_checkMessage
)
);
p_monitorCompRef.done;
// Retrieve messge
f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
if (not(isbound(v_sip))) {
return;
}
// Check REGISTER 200 OK response
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipResponse(mw_200OK(
v_sip.request.msgHeader.cSeq,
v_sip.request.msgHeader.callId,
v_sip.request.msgHeader.fromField,
v_sip.request.msgHeader.toField
))
},
{
mw_SipResponse(mw_Response_2xx_Base)
},
{0, omit},
"TP_GM_PCSCF_REGISTER_05 - 200 OK",
false,
p_checkMessage
)
);
p_monitorCompRef.done;
}
} // End of function f_mtc_check_TP_GM_PCSCF_REGISTER_05
Yann Garcia
committed
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
function f_mtc_check_TP_GM_PCSCF_ECO_REGISTER_05(
in SipInterfaceMonitor p_monitorCompRef,
in boolean p_checkMessage := false
) runs on ImsTestCoordinator {
if (isvalue(p_monitorCompRef)){
var ImsUserInfo v_userInfoA := f_getSipUserId(PX_EUT_A);
var SipMessage v_sip;
// Check the first REGISTER
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipRequest(
mw_TP_GM_PCSCF_ECO_REGISTER_05(
mw_From_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_To_AddrUnion_SipUrl(omit, v_userInfoA.publicId, v_userInfoA.domain),
mw_Authorization_other
)
)
},
{
mw_SipRequest(mw_REGISTER_Request_Base)
},
{0, omit},
"TP_GM_PCSCF_ECO_REGISTER_05 - Second request",
true,
p_checkMessage
)
);
p_monitorCompRef.done;
// Retrieve messge
f_getSipMsgFromMonitor(p_monitorCompRef, v_sip);
if (not(isbound(v_sip))) {
return;
}
// Check REGISTER 200 OK response
p_monitorCompRef.start(
f_Iot_Sip_receive(
{
mw_SipResponse(mw_420BadExtension(
v_sip.request.msgHeader.cSeq,
mw_WwwAuthenticate,
mw_MBody_MIME_Ims3gpp(
*,
? // FIXME XML message body
)
)),
mw_SipResponse(mw_480TemporaryUnavailable(-, v_sip.request.msgHeader.cSeq, mw_WwwAuthenticate))
},
{
mw_SipResponse(mw_Response_2xx_Base)
},
{0, omit},
"TP_GM_PCSCF_REGISTER_05 - 200 OK",
false,
p_checkMessage