diff options
author | Joshua Colp <jcolp@digium.com> | 2016-12-07 13:38:25 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-12-07 13:38:25 -0600 |
commit | 1067b9add3784c5873ca701bcf24b7bc2844894f (patch) | |
tree | 2d35aa1dc0ab1637425d784c5389cde59aae471e /third-party | |
parent | 18fe80e776ee413a8cc0aac102187a9b80c27813 (diff) | |
parent | 76d52dc228ff445cdb6d597e26b5a8384fe74fb3 (diff) |
Merge "Bundled pjproject: Fix finding SIP transactions."
Diffstat (limited to 'third-party')
-rw-r--r-- | third-party/pjproject/patches/config_site.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/third-party/pjproject/patches/config_site.h b/third-party/pjproject/patches/config_site.h index 66e8e84d3..f84adeb35 100644 --- a/third-party/pjproject/patches/config_site.h +++ b/third-party/pjproject/patches/config_site.h @@ -43,7 +43,16 @@ #define PJ_DEBUG 0 #define PJSIP_SAFE_MODULE 0 #define PJ_HAS_STRICMP_ALNUM 0 -#define PJ_HASH_USE_OWN_TOLOWER 1 + +/* + * Do not ever enable PJ_HASH_USE_OWN_TOLOWER because the algorithm is + * inconsistently used when calculating the hash value and doesn't + * convert the same characters as pj_tolower()/tolower(). Thus you + * can get different hash values if the string hashed has certain + * characters in it. (ASCII '@', '[', '\\', ']', '^', and '_') + */ +#undef PJ_HASH_USE_OWN_TOLOWER + /* It is imperative that PJSIP_UNESCAPE_IN_PLACE remain 0 or undefined. Enabling it will result in SEGFAULTS when URIs containing escape sequences are encountered. |