ari endpoints: GET /ari/endpoints/{invalid-tech} should return a 404
authorKevin Harwell <kharwell@digium.com>
Tue, 12 Nov 2013 23:17:45 +0000 (23:17 +0000)
committerKevin Harwell <kharwell@digium.com>
Tue, 12 Nov 2013 23:17:45 +0000 (23:17 +0000)
commitf6593b4156b0daa0a74f1f04dc062a6b24acab6c
tree9c5dc4e25252121e0dee954107032f450f3f6ddc
parent4be01b4598f37431809980907d1ab7ce02d0e47a
ari endpoints: GET /ari/endpoints/{invalid-tech} should return a 404

Was returning a 404 on a valid technology with an empty list of endpoints.
Now checking against the channel tech to make sure the tech itself is valid
and not just an empty list of endpoints.

(issue ASTERISK-22803)
Reported by: David M. Lee
........

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

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