Fix case-sensitivity for device-specific event subscriptions and CCSS
authorKinsey Moore <kmoore@digium.com>
Fri, 2 Mar 2012 21:06:12 +0000 (21:06 +0000)
committerKinsey Moore <kmoore@digium.com>
Fri, 2 Mar 2012 21:06:12 +0000 (21:06 +0000)
commit8d1bde49a9255ddf5738aa453cb1daf83e7566bb
treecad2e4977b3fabd2356d7b69e2ec6ee73e46e34f
parent9926662aba1ed9410461cb5eb127a72477ae7fcd
Fix case-sensitivity for device-specific event subscriptions and CCSS

This change fixes case-sensitivity for device-specific subscriptions such that
the technology identifier is case-insensitive while the remainder of the device
string is still case-sensitive.  This should also preserve the original case of
the device string as passed in to the event system.  CCSS is the only feature
affected as it is the only consumer of device-specific event subscriptions.

The second part of this patch addresses similar case-sensitivity issues within
CCSS itself that prevented it from functioning correctly after the fix to the
events system.

This adds a unit test to verify that the event system works as expected.

(closes issue ASTERISK-19422)
Review: https://reviewboard.asterisk.org/r/1780/
........

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

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@357942 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/strings.h
main/ccss.c
main/event.c
tests/test_event.c