Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TTCN-3 Libraries
LibSip
Commits
74b10000
Commit
74b10000
authored
May 05, 2009
by
petersenj
Browse files
inserted new function f_checkHeaderInfoURI
parent
e1fa0c87
Changes
1
Hide whitespace changes
Inline
Side-by-side
LibSip_Steps.ttcn
View file @
74b10000
...
...
@@ -684,6 +684,26 @@ group FieldOperations {
return
(
v_locAddr
);
}
// end f_getContactAddr
/**
*
* @desc function checks if History-Info-Header of the p_message contains a particular URI
* @param p_message (request or response) SIP message to be analysed
* @param p_URI name of parameter
* @return true if p_URI parameter exist
*/
function
f_checkHeaderInfoURI
(
in
Response
p_message
,
SipUrl
p_URI
)
return
boolean
{
var
integer
v_chargeParamsLen
;
if
(
ispresent
(
p_message
.
msgHeader
.
historyInfo
))
{
for
(
var
integer
i
:=
0
;
i
<
sizeof
(
p_message
.
msgHeader
.
historyInfo
.
historyInfoList
);
i
:=
i
+
1
)
{
if
(
p_message
.
msgHeader
.
historyInfo
.
historyInfoList
[
i
].
nameAddr
.
addrSpec
==
p_URI
)
{
return
(
true
)}
};
}
return
(
false
)
}
/**
*
* @desc function returns the Userinfo from a given To header field
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment