Azure Communication Service добавить участников, не работающихJavascript

Форум по Javascript
Ответить
Anonymous
 Azure Communication Service добавить участников, не работающих

Сообщение Anonymous »

Я пытался добавить номер телефона к вызову с помощью службы связи Azure, но он продолжал провалить < /p>
const incoming_context = event.data.incomingCallContext;
const answer_res = await client.answerCall(incoming_context, `${config.domain}`);

await answer_res.callConnection.addParticipant([{
targetParticipant: { phoneNumber: '+xxxxxxxxxxx' },
sourceDisplayName: "Info",
sourceCallerIdNumber: { phoneNumber: '+xxxxxxxxxxx' }
}]);
< /code>
Received 1 event(s)
Error answering call: TypeError: Cannot read properties of undefined (reading 'communicationUserId')
at isCommunicationUserIdentifier (C:\Users\rohit\Desktop\git\call-record\node_modules\@azure\communication-common\dist\index.js:326:30)
at getIdentifierKind (C:\Users\rohit\Desktop\git\call-record\node_modules\@azure\communication-common\dist\index.js:366:9)
at serializeCommunicationIdentifier (C:\Users\rohit\Desktop\git\call-record\node_modules\@azure\communication-common\dist\index.js:518:28)
at communicationIdentifierModelConverter (C:\Users\rohit\Desktop\git\call-record\node_modules\@azure\communication-call-automation\dist\commonjs\utli\converters.js:95:94)
at CallConnection.addParticipant (C:\Users\rohit\Desktop\git\call-record\node_modules\@azure\communication-call-automation\dist\commonjs\callConnection.js:130:89)
at C:\Users\rohit\Desktop\git\call-record\app.js:34:53
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)


Подробнее здесь: https://stackoverflow.com/questions/796 ... ot-working
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Javascript»