Hi Team ,I am using Asterisk Ari and i am creating the external Media channel using a package ari-client
but there is not option to set the context of the external media channel is there any option to set that
externalMedia({
channelId : uniqueIdGeneratorV4(),
app : `chanType:streaming`,
context
external_host : ``,
format : "ulaw",
transport : "udp",
encapsulation : "rtp",
connection_type: "client",
direction : "both",
variables : {context :'test'},
});
whne i use this i get the stasis start event but there is i got the context
as default can you tell me how to set that
As I linked, there is no ability to set the context when creating the external media channel. The context is also unused by Asterisk as the channel goes directly into the ARI application. If you then want to send the external media to the dialplan for some reason you could do so by using the continue route and specifying the context and extension.
Are you using the context on the channel for some reason, even though external media didn’t go through the dialplan and isn’t in the dialplan?
Senario is an incoming call came to me and that call context is tel-in i send that call to an stasis app where i create a external media channel and that context is default
and then i am using ami redirect event transfer blind
then i recevie the ami.on ‘blind transfer’ and where i got the transferee channel context where i got the default context