Daniel-Constantin Mierla writes:
I gave the link to show the ipv4 representation. Square brackets are commonly used in ipv6 representations, specially in url/uri -- wikipedia link you provided mentions that..
yes, but when they are used in url, square brackets are not part of the address. they just delimiting the address.
Being a code read by machine and being required to support them in kamailio (as we get ipv6 from headers/uri), I see no problem in being flexible enough to deal with both cases.
are you sure that kamailio lcr and permissions modules are able handle all those non-canonical ipv6 addresses (including square brackets that are not part of the address) when tables are reloaded?
to me it would make sense to canonize user given addresses before management system stores them to database.
-- juha