<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=184809" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/miconda">@miconda</a></p>
<p>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.</p>
<p>converting with str2ip gives NULL.</p>
<pre><code>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;
}

</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2045?email_source=notifications&email_token=ABO7UZIVYMFAY5YKLJ23DGDQGOLRDA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5DYRBQ#issuecomment-524781702">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJ5UMVAH46HZ7WMMPLQGOLRDANCNFSM4IPMS3XQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZP4GZ4WOUTOMT5ZCTLQGOLRDA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5DYRBQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2045?email_source=notifications\u0026email_token=ABO7UZIVYMFAY5YKLJ23DGDQGOLRDA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5DYRBQ#issuecomment-524781702",
"url": "https://github.com/kamailio/kamailio/pull/2045?email_source=notifications\u0026email_token=ABO7UZIVYMFAY5YKLJ23DGDQGOLRDA5CNFSM4IPMS3X2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5DYRBQ#issuecomment-524781702",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>