Fix crash in PresenceState AMI action when specifying an invalid provider
authorMatthew Jordan <mjordan@digium.com>
Fri, 15 Feb 2013 23:29:28 +0000 (23:29 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 15 Feb 2013 23:29:28 +0000 (23:29 +0000)
commitc209e85ad31ac3983a0eb7684055cdd808cbd8fe
tree4ad998c53caf879cc4c99a867911731e5341bf2f
parent8a7dd2f40880f988ea017294ad8001bf0e1825b5
Fix crash in PresenceState AMI action when specifying an invalid provider

This patch fixes a crash in Asterisk that could be caused by using the
PresenceState AMI action while providing an invalid provider. This patch
also adds some additional warnings when a user attempts to provide the
PresenceState action with invalid data, and removes some NOTICE statements
that were still lurking in the code from testing.

(closes issue AST-1084)
Reported by: John Bigelow
Tested by: John Bigelow
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@381595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_presencestate.c
main/manager.c
main/presencestate.c