Nathelper sends a Via header with IPv6 address with no square brackets
This cause parsing errors on the receiving side and all kinds of unhappy packets in the universe and Internet of SIP.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/363
Via: SIP/2.0/UDP FFFF:67C:FFD8:E07F:0:0:0:8:5060;branch=0
should be
Via: SIP/2.0/UDP [FFFF:67C:FFD8:E07F:0:0:0:8]:5060;branch=0
The syntax for the host part says IPv6 reference.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/363#issuecomment-146159666
Committed fix to master. Needs backport to 4.3 / 4.2 but the code is a bit different there. Tested - it works
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/363#issuecomment-146166674
Closed #363.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/363#event-429023915
Note: The code hard codes "UDP" but for both IPv4 and IPv6 one may need keepalives even on TCP connections, unfortunately. That may be another bug to fix.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/363#issuecomment-146166942