Use built-in parsing functions for Contact and Record-Route headers.
authorMark Michelson <mmichelson@digium.com>
Tue, 17 Jan 2012 16:56:04 +0000 (16:56 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 17 Jan 2012 16:56:04 +0000 (16:56 +0000)
commit5af788ccd07adf7b7a529f7ae39babd209b0f954
tree7095fd39c3f73ab158c55bed3b429e14f5100bd6
parentf86621eb9364fe11186d844ed1f774cb8b03c43e
Use built-in parsing functions for Contact and Record-Route headers.

If a Contact or a Record-Route header had a quoted string with an
item in angle brackets, then we would mis-parse it. For instance,
"Bob <1234>" <1234@example.org>
would be misparsed as having the URI "1234"
The fix for this is to use parsing functions from reqresp_parser.h
since they are heavily tested and are awesome.

(issue ASTERISK-18990)
........

Merged revisions 351284 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 351286 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@351288 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c