Commit 31f9f199 authored by Simon Morlat's avatar Simon Morlat
Browse files

fix regression in ipv6 support, replace non ascci characters

parent d6a16581
......@@ -144,7 +144,7 @@ static int on_udp_data(belle_sip_udp_listening_point_t *lp, unsigned int events)
}else{
belle_sip_channel_t *chan;
struct addrinfo ai={0};
belle_sip_address_remove_v4_mapping((struct sockaddr*)&addr,(struct sockaddr*)&addr,&addrlen);
/*preserve the V4 mapping*/
ai.ai_family=addr.ss_family;
ai.ai_addr=(struct sockaddr*)&addr;
ai.ai_addrlen=addrlen;
......
......@@ -46,7 +46,7 @@ static void test_simple_contact_header(void) {
static void test_complex_contact_header(void) {
belle_sip_header_contact_t* L_contact;
belle_sip_uri_t* L_uri;
belle_sip_header_contact_t* L_tmp = belle_sip_header_contact_parse("Contact: \"jremis\" <sip:sip.linphone.org>;expires=3600;q=0.7, sip:titi.com");
belle_sip_header_contact_t* L_tmp = belle_sip_header_contact_parse("Contact: \"j\x8eremis\" <sip:sip.linphone.org>;expires=3600;q=0.7, sip:titi.com");
belle_sip_header_t* l_next;
belle_sip_header_contact_t* L_next_contact;
char* l_raw_header;
......@@ -60,7 +60,7 @@ static void test_complex_contact_header(void) {
CU_ASSERT_PTR_NOT_NULL(L_uri);
CU_ASSERT_STRING_EQUAL(belle_sip_uri_get_host(L_uri), "sip.linphone.org");
CU_ASSERT_STRING_EQUAL(belle_sip_header_address_get_displayname((belle_sip_header_address_t*)L_contact), "jremis");
CU_ASSERT_STRING_EQUAL(belle_sip_header_address_get_displayname((belle_sip_header_address_t*)L_contact), "j\x8eremis");
CU_ASSERT_EQUAL(belle_sip_header_contact_get_expires(L_contact),3600);
l_qvalue = belle_sip_header_contact_get_qvalue(L_contact);
......
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