CallerID: Fix parsing of malformed callerid
authorKinsey Moore <kmoore@digium.com>
Wed, 27 Aug 2014 15:39:35 +0000 (15:39 +0000)
committerKinsey Moore <kmoore@digium.com>
Wed, 27 Aug 2014 15:39:35 +0000 (15:39 +0000)
commitbf850181076c786d2c9e5e7f23e205547c7140cb
tree3a384bb94539e77298c351ae79dcff9453bc0b25
parentd199536a04690e3034d02243e197071d70fc4f9c
CallerID: Fix parsing of malformed callerid

This allows the callerid parsing function to handle malformed input
strings and strings containing escaped and unescaped double quotes.
This also adds a unittest to cover many of the cases where the parsing
algorithm previously failed.

Review: https://reviewboard.asterisk.org/r/3923/
Review: https://reviewboard.asterisk.org/r/3933/
........

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

Merged revisions 422113 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 422114 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 422154 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@422158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c
include/asterisk/utils.h
main/callerid.c
main/utils.c
res/res_pjsip_caller_id.c
tests/test_callerid.c [new file with mode: 0644]
tests/test_utils.c