How to get a list of active PSTN calls in Teams using the Microsoft Graph API

%3CLINGO-SUB%20id%3D%22lingo-sub-2278804%22%20slang%3D%22en-US%22%3EHow%20to%20get%20a%20list%20of%20active%20PSTN%20calls%20in%20Teams%20using%20the%20Microsoft%20Graph%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2278804%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22s-prose%20js-post-body%22%3E%3CP%3EWe're%20looking%20for%20a%20way%20to%20get%20a%20list%20of%20all%20currently%20active%20PSTN%20calls%20being%20made%20into%20MS%20Teams.%20We've%20tried%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fcallrecords-callrecord-getpstncalls%3Fview%3Dgraph-rest-beta%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fgraph%2Fapi%2Fcallrecords-callrecord-getpstncalls%3Fview%3Dgraph-rest-beta%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThat's%20almost%20exactly%20what%20we%20need%20except%20records%20do%20not%20seem%20to%20appear%20here%20until%20the%20call%20has%20ended.%20What%20we%20need%20for%20the%20app%20we're%20trying%20to%20build%20is%20live%20call%20records.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe've%20also%20tried%20it%20by%20creating%20subscriptions%20and%20getting%20the%20ID%20of%20specific%20calls%20then%20looking%20up%20call%20records%2C%20but%20this%20data%20also%20appears%20to%20be%20delayed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20method%20we're%20missing%20here%2C%20or%20equally%2C%20is%20this%20something%20that%20may%20be%20added%20to%20the%20API%20some%20point%20soon%3F%3C%2FP%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2278804%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAPI%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Visitor

We're looking for a way to get a list of all currently active PSTN calls being made into MS Teams. We've tried this:

 

https://docs.microsoft.com/en-us/graph/api/callrecords-callrecord-getpstncalls?view=graph-rest-beta

 

That's almost exactly what we need except records do not seem to appear here until the call has ended. What we need for the app we're trying to build is live call records.

 

We've also tried it by creating subscriptions and getting the ID of specific calls then looking up call records, but this data also appears to be delayed.

 

Is there a method we're missing here, or equally, is this something that may be added to the API some point soon?

0 Replies