diff options
author | Matthew Jordan <mjordan@digium.com> | 2014-10-06 18:38:25 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2014-10-06 18:38:25 +0000 |
commit | 5c607f97359733d6b216d3422befa17c8b619dc4 (patch) | |
tree | 4063193d064485cc8af937292316022185f82010 /res/res_pjsip_pubsub.c | |
parent | 6a8cb946ebe6c3b94002d551f5b6a0560f0452db (diff) |
message: Don't close an AMI connection on SendMessage action error
If SendMessage encounters an error (such as incorrect input provided to the
action), it will currently return -1. Actions should only return -1 if the
connection to the AMI client should be closed. In this case, SendMessage
causing the client to disconnect is inappropriate.
This patch causes the action to return 0, which simply causes the action to
fail.
Review: https://reviewboard.asterisk.org/r/4024
ASTERISK-24354 #close
Reported by: Peter Katzmann
patches:
sendMessage.patch uploaded by Peter Katzmann (License 5968)
........
Merged revisions 424690 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 424691 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@424692 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_pubsub.c')
0 files changed, 0 insertions, 0 deletions