ARI: Make double subscribe respond with success
authorKinsey Moore <kmoore@digium.com>
Tue, 28 Jan 2014 19:19:08 +0000 (19:19 +0000)
committerKinsey Moore <kmoore@digium.com>
Tue, 28 Jan 2014 19:19:08 +0000 (19:19 +0000)
commit3eae87fdfe39f988674f1faeecb3ce592b514962
tree5a72969e5c71ee8144f0bd22eab6d0e8eca4c839
parent601692a7e4cdb9e9b9ee128d66d7b36e632184be
ARI: Make double subscribe respond with success

Currently, attempting to subscribe an application to a device state
that it has already subscribed to will generate a 500 error response.
This will now be treated as a subscription refresh even though ARI
subscriptions don't currently support lifetimes and will respond with
the normal response for a successful subscription (200 OK).

(closes issue ASTERISK-23143)
Reported by: Matt Jordan
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406778 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_stasis_device_state.c