Skip to content
GitLab
Explore
Sign in
INT - Core Network and Interoperability Testing
Voice and Video over LTE
Conformance Test Specifications for the SCC-AS Services
Compare revisions
4b0e154844deb64ce2fb282c4a61894647405b33 to 9fa221c6cd538585f0cd909f38905b5f1225123c
Commits on Source (2)
move functions to steps
· a002ae4e
Axel Rennoch
authored
Oct 21, 2022
a002ae4e
move functions to steps
· 9fa221c6
Axel Rennoch
authored
Oct 21, 2022
9fa221c6
Hide whitespace changes
Inline
Side-by-side
ttcn/AtsSccas/AtsSccas_Steps.ttcn
View file @
9fa221c6
...
...
@@ -489,6 +489,38 @@ module AtsSccas_Steps {
LibSip_Steps
.
f_setHeadersINVITE
(
p_cSeq_s
);
}
// end f_setHeadersINVITE_AS
/**
* @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
);
}
}
}
// End of group SetHeaders
group
CommonProcedures
{
...
...
@@ -621,6 +653,18 @@ module AtsSccas_Steps {
runs
on
ImsComponent
{
var
CSeq
v_cSeq_s
:=
p_cSeq_s
;
}
//end function f_ReleaseDialogAS
/**
* @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
;
}
}
//end group CommonProcedures
...
...
ttcn/AtsSccas/AtsSccas_TCFunctions.ttcn
View file @
9fa221c6
...
...
@@ -3435,47 +3435,7 @@ module AtsSccas_TCFunctions {
}
// 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
;
}
/**
* @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
);
}
}
}
// End of group helpers
...
...