简体   繁体   English

Microsoft Teams 订阅电话

[英]Microsoft Teams subscription call

So I want to receive a notification, when a call is happening callRecord (/communications/callRecords) so I grabed myself this example and changed the task function to this:所以我想在通话发生时收到通知callRecord (/communications/callRecords)所以我抓住了这个例子并将任务 function 更改为:

public async Task<ActionResult<string>> Get()
        {
            var graphServiceClient = GetGraphClient();

            var sub = new Microsoft.Graph.Subscription();
            sub.ChangeType = "created";
            sub.NotificationUrl = config.Ngrok + "/api/notifications";
            sub.Resource = "/communications/callRecords";
            sub.ExpirationDateTime = DateTime.UtcNow.AddMinutes(5);

            var newSubscription = await graphServiceClient
              .Subscriptions
              .Request()
              .AddAsync(sub);

            Subscriptions[newSubscription.Id] = newSubscription;

            if (subscriptionTimer == null)
            {
                subscriptionTimer = new Timer(CheckSubscriptions, null, 5000, 15000);
            }

            return $"Subscribed. Id: {newSubscription.Id}, Expiration: {newSubscription.ExpirationDateTime}";
        }

I also added the graph api permission CallRecords.Read.All to my app.我还将图表 api 权限CallRecords.Read.All添加到我的应用程序中。 Beforehand I testet the example with the updated users notification and it worked fine.事先我用更新的用户通知测试了这个例子,它工作得很好。 But now it won't trigger the notification for a call.但现在它不会触发来电通知。

Same here, everything worked yesterday but today my webhook endpoint didn't even trigger once.同样在这里,昨天一切正常,但今天我的 webhook 端点甚至没有触发一次。

I think there might be an issue on Microsoft's side.我认为微软方面可能存在问题。 I follow this issue here of someone who has the same problem as us.在这里关注与我们有同样问题的人的这个问题。

UPDATE: Someone from Microsoft answered in the linked Github Issue:更新:来自微软的某人在链接的 Github 问题中回答:

There is currently an ongoing issue.目前存在一个持续的问题。 The related post is TM220340 in the M365 Admin Center.相关帖子是 M365 管理中心中的 TM220340。

So they're confirming that the issue is on their end.所以他们确认问题已经结束。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM