]> git.ipfire.org Git - thirdparty/asterisk.git/commit
CallerID: Fix parsing of malformed callerid
authorKinsey Moore <kmoore@digium.com>
Wed, 27 Aug 2014 15:14:39 +0000 (15:14 +0000)
committerKinsey Moore <kmoore@digium.com>
Wed, 27 Aug 2014 15:14:39 +0000 (15:14 +0000)
commitbd96feb6ff4335ab07a509f38d99a2ea56c02388
tree15f3afae6293fd4a2b74829d9484f26410cfe8cd
parentb52e213f79b4e14bc74b269ef821a2977c7b65b2
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/
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@422114 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