Previous ExternalMedia implementation uses whole ExternalMediaOptions as a request body.
But asterisk only uses Variables field as the request body. So Asterisk 18(LTS) responds as 400 Bad Request which demand mandatory query parameters.
This patch uses ExternalMediaOptions as query parameters except a Variables which is a JSON format.
This fix is just only for the externalMedia API.
Go ARI uses similar approach in channel API(e.g. originate) like the externalMedia API that doesn't use query parameters.
Refer #118
Previous
ExternalMedia
implementation uses wholeExternalMediaOptions
as a request body. But asterisk only usesVariables
field as the request body. So Asterisk 18(LTS) responds as400 Bad Request
which demand mandatory query parameters. This patch usesExternalMediaOptions
as query parameters except aVariables
which is a JSON format.This fix is just only for the
externalMedia
API. Go ARI uses similar approach inchannel
API(e.g. originate) like theexternalMedia
API that doesn't use query parameters.This change is