@miconda

I tried to convert string to ip_addr struct as you mentioned but , functions cannot convert it. In addition , when i try to log "sdp ip address " it gives empty. I didnt understand reason.

converting with str2ip gives NULL.

struct ip_addr* cline_addr;

if(session->pf==AF_INET6){
	cline_addr=str2ip(&session->ip_addr);
}else if(session->pf==AF_INET){
	cline_addr=str2ip6(&session->ip_addr);
}else{
	LM_ERR("Couldn t get sdp address type \n");
	break;
}

if(!cline_addr){
	LM_ERR("Sdp ip address is empty  \n");
	break;
}


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.