[HELP] Struggling with Allocation failed error when creating ExternalMedia channel via ARI in Asterisk

Hey folks — I’m trying to create an ExternalMedia channel using ARI with Audiosocket encapsulation over TCP, but I keep getting this error: “Allocation failed”

Here’s the config I’m sending:
const streamId = uuidv4();
const mediaConfig = {
app: ARI_CONFIG.appName ?? “asterisk”,
external_host: ${ARI_CONFIG.externalHost}:${port},
format: “slin16”,
transport: “tcp”,
encapsulation: “audiosocket”,
data: streamId,
channelId: streamId
};

try {
const response = await ariClient.Channel().externalMedia(mediaConfig);
} catch (error) {
console.error(‘Error creating external media:’, error);
}

Has anyone here encountered this issue before, or would anyone be kind enough to point me in the right direction? Would appreciate any guidance :folded_hands: