[sr-dev] [kamailio/kamailio] nathelper: test sdp c line and sip source ip address is matched. (#2045)
Yasin CANER
notifications at github.com
Mon Aug 26 11:00:01 CEST 2019
@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 or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2045#issuecomment-524781702
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190826/dbc6c36d/attachment.html>
More information about the sr-dev
mailing list