<p></p>
<h3>Description</h3>
<p>I think something wrong with integer comparison when tested this config file</p>
<pre><code>listen=udp:[::1]:5060
listen=udp:127.0.0.1:5060
loadmodule "xlog.so"
loadmodule "sdpops.so"

request_route {
  if (sdp_get_address_family() ieq 6 ) {
    xlog("L_WARN", "sdp_get_address_family == 6\n");
  } else if (sdp_get_address_family() ieq 4) {
    xlog("L_WARN", "sdp_get_address_family == 4\n");
  } else if (sdp_get_address_family() ieq 1) {
    xlog("L_WARN", "cannot detect sdp family\n");
  }
}
</code></pre>
<p>The expected output of IP address type used in SDP. But really I always get "cannot detect sdp family" message.</p>

<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/issues/2701">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKHQFDVVVP73WS5TVLTG2THTANCNFSM42J37CSA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZOVLNI2X7J6LV3JJKDTG2THTA5CNFSM42J37CSKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4MVDUGSQ.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/issues/2701",
"url": "https://github.com/kamailio/kamailio/issues/2701",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>