]> 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:01 +0000 (08:09 -0500)
commit2d665091a36882070dae8ac733aa551f260488ad
tree36be03fbc504389066a6eab6856c86f4612c4e34
parentb590e8f23ef068718f3269ed14dde39522339410
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