[sr-dev] [kamailio/kamailio] not properly compassion (#2701)

sergey-safarov notifications at github.com
Sat Apr 3 08:50:56 CEST 2021


Tanks you Daniel for your clarification
I have tested this config
```
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");
  }
}
```

Should I update Wiki with another usage example?
```
  if (function_returns_four() && $rc ieq 6 ) {
    # it doesn't go here
  } else if (function_returns_four() && $rc ieq 4) {
    # it goes here
  }
```


-- 
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/issues/2701#issuecomment-812823160
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210402/01f297e6/attachment.htm>


More information about the sr-dev mailing list