<p></p>
<p>Tanks you Daniel for your clarification<br>
I have tested this config</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() && $rc ieq 6 ) {
    xlog("L_WARN", "sdp_get_address_family == 6\n");
  } else if (sdp_get_address_family() && $rc ieq 4) {
    xlog("L_WARN", "sdp_get_address_family == 4 \n");
  } else {
    xlog("L_WARN", "cannot detect sdp family\n");
  }
}
</code></pre>
<p>Should I update Wiki with another usage example?</p>
<pre><code>  if (function_returns_four() && $rc ieq 6 ) {
    # it doesn't go here
  } else if (function_returns_four() && $rc ieq 4) {
    # it goes here
  }
</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/issues/2701#issuecomment-812823160">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZP25O7B4YOONJVQQTDTG23FBANCNFSM42J37CSA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMTQZEPEWHKMY5JDW3TG23FBA5CNFSM42J37CSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGBZLE6A.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#issuecomment-812823160",
"url": "https://github.com/kamailio/kamailio/issues/2701#issuecomment-812823160",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>