MS Graph
3 TopicsCannot initiate PSTN calls from bot
Hi everybody, within my calling bot I try to initiate a PSTN call like https://docs.microsoft.com/en-us/graph/api/application-post-calls?view=graph-rest-1.0&tabs=http#example-8-create-peer-to-peer-pstn-call-with-application-hosted-media or invite a PSTN as new participant to an Existing call like https://docs.microsoft.com/en-us/graph/api/participant-invite?view=graph-rest-1.0&tabs=http#example-4-invite-one-pstn-participant-to-an-existing-group-call I always get following exception: InternalServerError Microsoft.Graph.ServiceException: Code: 9999 Message: Unknown internal server error. Inner error: AdditionalData: date: 2021-10-26T10:15:50 request-id: 58538d09-d622-4d61-854e-61606e0f6530 client-request-id: 58538d09-d622-4d61-854e-61606e0f6530 ClientRequestId: 58538d09-d622-4d61-854e-61606e0f6530 at Microsoft.Graph.HttpProvider.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) at Microsoft.Graph.BaseRequest.SendRequestAsync(Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption) at Microsoft.Graph.BaseRequest.SendAsync[T](Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption) at RC_MsGraphLink.Controllers.GraphApi.GraphHandler.MakeCall(InvitationParticipantInfo device) in C:\Users\GeW\Documents\tfshome\GLOBAL\MAIN\RC_MsGraphLink\RC_MsGraphLink\Controllers\GraphApi\GraphHandlerCallControl.cs:line 45 My bot has assigned a PSTN number and could be called from extern. Everything also works fine if I try the scenarios with MS Teams Users. We also followed the instrucions from https://docs.microsoft.com/en-us/graph/cloud-communications-phone-number#assign-a-phone-number-to-your-bot There is a similar problem described here: https://techcommunity.microsoft.com/t5/teams-developer/initiate-pstn-call-from-teams-to-public-landline/m-p/2105893#M2564 Any ideas? Thanks for yout help. Regards GerdSolved3.4KViews0likes8CommentsWhen Sending an Adaptive Card to Teams via MS Graph Can The Copy Link & Title Bar Be Removed?
When using MS Graph and I use the message endpoint to send a message to a channel in MS Teams, and that message includes an adaptive card as an attachment, I always end up with a blank space/padding at the top of the card, and 3-dot menu to the right (with a Copy option). This padding doesn't seem to appear on any of the examples given in the documentation, and the blank space at the top of all my cards looks a bit naff. Is there a way to remove this spacing? Or, alternatively, is there a way to add content into this space, and alter the options shown under the 3-dot menu? Endpoint being used... https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/messages Example request body being used... { "body": { "contentType": "html", "content": "<attachment id=\"4465B062-EE1C-4E0F-B944-3B7AF61EAF40\"></attachment>" }, "attachments": [ { "id": "4465B062-EE1C-4E0F-B944-3B7AF61EAF40", "contentType": "application/vnd.microsoft.card.adaptive", "content": "{\n \"type\": \"AdaptiveCard\",\n \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\n \"version\": \"1.3\",\n \"body\": [\n {\n \"type\": \"TextBlock\",\n \"size\": \"Large\",\n \"weight\": \"Bolder\",\n \"text\": \"My News Item\",\n \"wrap\": true\n }\n ],\n \"actions\": [\n {\n \"type\": \"Action.OpenUrl\",\n \"title\": \"View\",\n \"url\": \"https://bing.com\"\n }\n ]\n }" } ] }7KViews0likes3Comments