Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
785 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm implementing PSTN calling functionality on my website (with HTML and Javascript) and I'm using UI Composites inside JavaScript-based Applications as instructed in: [azure.github.io/communication-ui-library/?path =/docs/use-composite-in-non-react-environment--page].
But I have a problem that I don't know where to pass the alternateCallerId and targetCallees so that I can make a call immediately when the [Start Call] button is pressed.
Here is my sample code:
<script src="./callcomposite.js"></script> // a prebuilt bundles that I downloaded from the website above.
<script type="module">
const callAdapter = await callComposite.loadCallComposite(
{
locator: { groupId: "test-group-id" },
displayName: "test-name",
userId: { communicationUserId: "..." },
token: "..."
},
document.getElementById('call-container'),
);
</script>