This adds a new ARI method to the channels resource that allows for the
creation of a new channel. The channel is created and then placed into
the specified Stasis application.
This is different from the existing originate method that creates a
channel, dials it, and then places the answered channel into the
dialplan or a Stasis application. This method does not attempt to call
the channel at all. Dialing is left as a later step after channel
creation. This allows for pre-dialing channel manipulation if desired.
ASTERISK-25889
Change-Id: I3c96a0aba914b08e39f6256371a5bd4c92cbded8
/*! Argument struct for ast_ari_channels_create() */
structast_ari_channels_create_args{
/*! Endpoint for channel communication */
constchar*endpoint;
/*! Stasis Application to place channel into */
constchar*app;
/*! The application arguments to pass to the Stasis application provided by 'app'. Mutually exclusive with 'context', 'extension', 'priority', and 'label'. */
constchar*app_args;
/*! The unique id to assign the channel on creation. */
constchar*channel_id;
/*! The unique id to assign the second channel when using local channels. */
"description":"Create a channel and place it in a Stasis app, but do not dial the channel yet.",
"operations":[
{
"httpMethod":"POST",
"summary":"Create channel.",
"nickname":"create",
"responseClass":"Channel",
"parameters":[
{
"name":"endpoint",
"description":"Endpoint for channel communication",
"paramType":"query",
"required":true,
"allowMultiple":false,
"dataType":"string"
},
{
"name":"app",
"description":"Stasis Application to place channel into",
"paramType":"query",
"required":true,
"allowMultiple":false,
"dataType":"string"
},
{
"name":"appArgs",
"description":"The application arguments to pass to the Stasis application provided by 'app'. Mutually exclusive with 'context', 'extension', 'priority', and 'label'.",
"paramType":"query",
"required":false,
"allowMultiple":false,
"dataType":"string"
},
{
"name":"channelId",
"description":"The unique id to assign the channel on creation.",
"paramType":"query",
"required":false,
"allowMultiple":false,
"dataType":"string"
},
{
"name":"otherChannelId",
"description":"The unique id to assign the second channel when using local channels.",