Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
06f7a1dd
Commit
06f7a1dd
authored
May 11, 2017
by
jehan
Browse files
add a small test fr header address with sips
parent
7e5e66dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
tester/belle_sip_headers_tester.c
tester/belle_sip_headers_tester.c
+9
-0
No files found.
tester/belle_sip_headers_tester.c
View file @
06f7a1dd
...
...
@@ -768,6 +768,15 @@ static void test_address_header(void) {
BC_ASSERT_STRING_EQUAL
(
"
\"
to
\\
to
\"
"
,
belle_sip_header_address_get_displayname
(
laddress
));
belle_sip_object_unref
(
BELLE_SIP_OBJECT
(
laddress
));
laddress
=
belle_sip_header_address_parse
(
"sips:example.com;transport=tls;maddr=sip1.example.com"
);
BC_ASSERT_PTR_NOT_NULL
(
laddress
);
L_raw
=
belle_sip_object_to_string
(
BELLE_SIP_OBJECT
(
laddress
));
BC_ASSERT_PTR_NOT_NULL
(
L_raw
);
belle_sip_object_unref
(
BELLE_SIP_OBJECT
(
laddress
));
laddress
=
belle_sip_header_address_parse
(
L_raw
);
belle_sip_free
(
L_raw
);
BC_ASSERT_STRING_EQUAL
(
"sip1.example.com"
,
belle_sip_uri_get_maddr_param
(
belle_sip_header_address_get_uri
(
laddress
)));
belle_sip_object_unref
(
BELLE_SIP_OBJECT
(
laddress
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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