Metaswitch/pjsip-upstream — pull request #29 by AlexHockey (2014-09-11 15:10:56+00:00)
Title: [Reviewer: Mike] Don't allow quotes in usernames in URIs

Mike, please could you review this simple fix to make PJSIP not allow quotes in usernames (they are forbidden according to the BNF in RFC 3261).

Without this fix we have problems parsing URIs like: `sip:scscf.example.com;some-param="bob@example.com"`. PJSIP scans forward in the URI looking for the first character that is not valid in a username. It finds `@` and assumes the URI has a username. This fix means that PJSIP will stop when it gets to the `"`, and because this isn't an `@`, treats the URI as if it does not have a username (the correct behavior).