Metaswitch/pjsip-upstream — pull request #30 by rkd-msw (2014-09-19 09:09:52+00:00)
Title: [Reviewer: Mike] Only strip [] from IPv6 addresses if PJSIP_PARSE_REMOVE_QUOTE is set.

In conjunction with https://github.com/Metaswitch/sprout/tree/ipv6_pcfa, this fixes https://github.com/Metaswitch/sprout/issues/611.

I wasn't sure whether to reuse PJSIP_PARSE_REMOVE_QUOTE or create a new option - I decided to reuse it because the meaning is really the same, "I want exactly what the SIP message said and am happy to do some extra parsing to make that work". The comment also refers to this as a "quoted IPv6 address", so I think it will make sense to the PJSIP maintainers too.