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

sergey-safarov notifications at github.com
Sat Apr 3 07:43:21 CEST 2021


### Description

I think something wrong with integer comparison when tested this config file
```
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");
  }
}
```

The expected output of IP address type used in SDP. But really I always get "cannot detect sdp family" message.

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210402/292b29ac/attachment.htm>


More information about the sr-dev mailing list