Commit fe20a9ea authored by jehan's avatar jehan

increase message traces from 3K to 5k

parent d899d4ce
......@@ -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)
......
......@@ -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=3000;
int limit=5000; /*big message when many ice candidates*/
size_t non_ascii_pos;
if (!belle_sip_log_level_enabled(level)){
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment