[sr-dev] [kamailio/kamailio] IPv6 parse_uri error (#1136)

Daniel-Constantin Mierla notifications at github.com
Wed Jun 21 23:54:06 CEST 2017


This function is behind `$si` variable that is supposed to return plain source ip address. The `[]` around IPv6 is required in URIs, but the IP address itself is without `[]`.

The function is not used from other modules, therefore you use `$si` in your configuration file somewhere. Can you check that?

You can replace do:

```
if(af==INET6) {
  $var(si) = "[" + $si + "]";
} else {
  $var(si) = $si;
}
```

Then use $var(si) instead of $si. Maybe a variable to get the source ip with square brackets would be useful, but that will be a new feature, $si will stay as it is, because it is useful in many cases.

Anyhow, it looks like an issue in kamailio.cfg, not in code.

-- 
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/1136#issuecomment-310216148
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20170621/69fbe6d7/attachment-0001.html>


More information about the sr-dev mailing list