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
fe20a9ea
Commit
fe20a9ea
authored
Dec 27, 2014
by
jehan
Browse files
increase message traces from 3K to 5k
parent
d899d4ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
fe20a9ea
...
...
@@ -37,6 +37,7 @@ AC_PROG_OBJC(["xcrun clang" gcc])
AM_PROG_CC_C_O
INSTALL="$INSTALL -C"
dnl AC_PROG_CC_C99
LT_INIT(win32-dll)
...
...
src/channel.c
View file @
fe20a9ea
...
...
@@ -357,12 +357,11 @@ static int acquire_body_simple(belle_sip_channel_t *obj, int end_of_stream){
}
if
(
end_of_stream
||
belle_sip_body_handler_get_transfered_size
(
bh
)
>=
content_length
){
/*great body completed
belle_sip_message("channel [%p] read [%i] bytes of body from %s:%i
\n%s
" ,obj
/*great body completed
*/
belle_sip_message
(
"channel [%p] read [%i] bytes of body from
[
%s:%i
]
"
,
obj
,
content_length
,
obj
->
peer_name
,obj->peer_port
,obj->input_stream.read_ptr);*/
,
obj
->
peer_port
);
belle_sip_channel_message_ready
(
obj
);
return
BELLE_SIP_CONTINUE
;
}
...
...
@@ -913,7 +912,7 @@ static size_t find_non_asci(const char *buffer, size_t size){
static
char
*
make_logbuf
(
belle_sip_log_level
level
,
const
char
*
buffer
,
size_t
size
){
char
*
logbuf
;
char
truncate_msg
[
128
]
=
{
0
};
int
limit
=
3
000
;
int
limit
=
5
000
;
/*big message when many ice candidates*/
size_t
non_ascii_pos
;
if
(
!
belle_sip_log_level_enabled
(
level
)){
...
...
tester/belle_sip_headers_tester.c
View file @
fe20a9ea
...
...
@@ -163,10 +163,20 @@ static void test_from_header_with_paramless_address_spec(void) {
static
void
test_to_header_with_paramless_address_spec
(
void
)
{
belle_generic_uri_t
*
L_absoluteUri
;
belle_sip_header_to_t
*
L_to
=
belle_sip_header_to_parse
(
"To: sip:bob@titi.com;tag=dlfjklcn6545614XX"
);
belle_sip_uri_t
*
L_uri
;
CU_ASSERT_PTR_NOT_NULL_FATAL
(
belle_sip_header_to_get_tag
(
L_to
));
CU_ASSERT_STRING_EQUAL
(
belle_sip_header_to_get_tag
(
L_to
),
"dlfjklcn6545614XX"
);
belle_sip_object_unref
(
L_to
);
L_to
=
belle_sip_header_to_parse
(
"To:sip:1002@192.168.1.199;tag=as1f0a0817"
);
CU_ASSERT_PTR_NOT_NULL_FATAL
(
belle_sip_header_to_get_tag
(
L_to
));
L_uri
=
belle_sip_header_address_get_uri
(
BELLE_SIP_HEADER_ADDRESS
(
L_to
));
CU_ASSERT_STRING_EQUAL
(
belle_sip_uri_get_user
(
L_uri
),
"1002"
);
CU_ASSERT_STRING_EQUAL
(
belle_sip_uri_get_host
(
L_uri
),
"192.168.1.199"
);
CU_ASSERT_STRING_EQUAL
(
belle_sip_header_to_get_tag
(
L_to
),
"as1f0a0817"
);
belle_sip_object_unref
(
L_to
);
L_to
=
belle_sip_header_to_parse
(
"To: tel:1234567;tag=dlfjklcn6545614XX"
);
CU_ASSERT_PTR_NOT_NULL_FATAL
(
belle_sip_header_to_get_tag
(
L_to
));
L_absoluteUri
=
belle_sip_header_address_get_absolute_uri
(
BELLE_SIP_HEADER_ADDRESS
(
L_to
));
...
...
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