]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ExternalMedia: Change return object from ExternalMedia to Channel
authorGeorge Joseph <gjoseph@digium.com>
Fri, 18 Oct 2019 11:36:12 +0000 (05:36 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Fri, 18 Oct 2019 13:09:25 +0000 (08:09 -0500)
commitd71d0f9489b29450a202193ab009d5539f01541c
treefa0cb5e87dd7e981dd9f7d8cf6a5869ec625ac4a
parent5ca9efda7bb12a0c48cd6ed0f5e853ca88b3328f
ExternalMedia:  Change return object from ExternalMedia to Channel

When we created the External Media addition to ARI we created an
ExternalMedia object to be returned from the channels/externalMedia
REST endpoint.  This object contained the channel object that was
created plus local_address and local_port attributes (which are
also in the Channel variables).  At the time, we thought that
creating an ExternalMedia object would give us more flexibility
in the future but as we created the sample speech to text
application, we discovered that it doesn't work so well with ARI
client libraries that a) don't have the ExternalMedia object
defined and/or b) can't promote the embedded channel structure
to a first-class Channel object.

This change causes the channels/externalMedia REST endpoint to
return a Channel object (like channels/create and channels/originate)
instead of the ExternalMedia object.

Change-Id: If280094debd35102cf21e0a31a5e0846fec14af9
res/ari/ari_model_validators.c
res/ari/ari_model_validators.h
res/ari/resource_channels.c
res/res_ari_channels.c
rest-api/api-docs/channels.json