Intercept incoming call

%3CLINGO-SUB%20id%3D%22lingo-sub-871462%22%20slang%3D%22en-US%22%3EIntercept%20incoming%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-871462%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20like%20to%20create%20one%20bot%2Fapp%20which%20detect%20incoming%20call%20%26amp%3B%20it%20will%20open%20browser%20in%20my%20machine%20which%20shows%20name%20of%20caller.%20Is%20that%20possible%20to%20intercept%20incoming%20call%3F%20Is%20there%20any%20API%2Fcall%20event%20which%20support%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-871462%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ECalling%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-874031%22%20slang%3D%22en-US%22%3ERe%3A%20Intercept%20incoming%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-874031%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F413403%22%20target%3D%22_blank%22%3E%40shaileshbhindi%3C%2FA%3E%20Please%20take%20a%20look%20at%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Fcalls-and-meetings%2Fcalls-meetings-bots-overview%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ECalls%20and%20meetings%20online%20bots%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-901251%22%20slang%3D%22en-US%22%3ERe%3A%20Intercept%20incoming%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-901251%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371090%22%20target%3D%22_blank%22%3E%40Trinetra-MSFT%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%2C%20Thanks%20for%20reply!.%20I%20have%20gone%20through%20it.%20Can%20we%20test%20using%20ngrok%20this%20kind%20of%20functionality%20OR%20it%20is%20compulsory%20require%20bot%20to%20register%20in%20Azure%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1016354%22%20slang%3D%22en-US%22%3ERe%3A%20Intercept%20incoming%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1016354%22%20slang%3D%22en-US%22%3E%3CP%3EAnyone%20have%20idea%20about%20this%3F%20Can%20ms%20team%20calling%20bot%20detect%20OR%20intercept%20incoming%20call%20for%20user%20who%20has%20installed%20this%20bot%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%3A%20User%20A%20has%20a%20bot%20configured%20in%20his%20ms%20teams%2C%20User%20B%20makes%20a%20phone%20call%20to%20User%20A%2C%20before%20User%20A%20accept%20the%20call%2C%20bot%20should%20log%20some%20information%20about%20this%20calls%20like%20caller%20ID%20%26amp%3B%20send%20message%20to%20User%20A%20with%20some%20details.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1052114%22%20slang%3D%22en-US%22%3ERe%3A%20Intercept%20incoming%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1052114%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20you%20can%20test%20it%20by%20setting%20up%20ngrok%20server.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1057091%22%20slang%3D%22en-US%22%3ERe%3A%20Intercept%20incoming%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1057091%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371090%22%20target%3D%22_blank%22%3E%40Trinetra-MSFT%3C%2FA%3E%26nbsp%3B-%20That%20I%20know.%20But%20I%20want%20some%20event%20in%20bot%20which%20is%20raised%20on%20incoming%20call%20for%20user%20who%20has%20configured%20this%20bot.%20Is%20there%20any%20event%20which%20occur%20on%20incoming%20call%3F%3C%2FP%3E%3CP%3EThis%20is%20not%20like%20call%20from%20user%20to%20bot.%20This%20is%20kind%20of%20requirement%20where%20one%20user%20calls%20to%20another%20user%20%26amp%3B%20bot%20intercept%20that%20call%20for%20getting%20some%20information%20from%20incoming%20call.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1057539%22%20slang%3D%22en-US%22%3ERe%3A%20Intercept%20incoming%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1057539%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F413403%22%20target%3D%22_blank%22%3E%40shaileshbhindi%3C%2FA%3E%26nbsp%3B%2C%20You%20need%20to%20register%20you%20bot%20in%20azure%2C%20where%20your%20bot%20requires%20specific%20Application%20or%20delegated%20permissions%20for%20calling%20and%20meeting%2C%20However%20you%20can%20set%20up%20the%20sample%20locally%20and%20run%20it%20on%20ngrok.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1059539%22%20slang%3D%22en-US%22%3ERe%3A%20Intercept%20incoming%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1059539%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371090%22%20target%3D%22_blank%22%3E%40Trinetra-MSFT%3C%2FA%3E%26nbsp%3B-%20I%20did%20not%20register%20to%20Azure%20but%20did%20in%20bot%20framework%20%26amp%3B%20set%20require%20permission.%20I%20am%20able%20to%20call%20directly%20to%20bot%20from%20user.%3C%2FP%3E%3CP%3EMy%20requirement%20is%20when%20some%20calls%20me%2C%20my%20bot%20will%20give%20some%20information%20about%20caller%20%26amp%3B%20send%20me%20a%20card%2Fmessage%20in%20teams.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1064030%22%20slang%3D%22en-US%22%3ERe%3A%20Intercept%20incoming%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1064030%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F413403%22%20target%3D%22_blank%22%3E%40shaileshbhindi%3C%2FA%3E%26nbsp%3B%2C%20You%20can%20configure%20your%20Bot%20to%20send%20an%20attachment%20(Adaptive%20Card%26nbsp%3B%20or%20any%20other%20card)%20when%20your%20bot%20respond%20to%20the%20call.%3C%2FP%3E%0A%3CP%3EPlease%20refer%20to%20these%20document%20to%20check%20how%20to%20send%20an%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftask-modules-and-cards%2Fcards%2Fcards-reference%23adaptive-card%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAdaptive%20card%3C%2FA%3E%20in%20attachment%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1064230%22%20slang%3D%22en-US%22%3ERe%3A%20Intercept%20incoming%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1064230%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F371090%22%20target%3D%22_blank%22%3E%40Trinetra-MSFT%3C%2FA%3E%26nbsp%3BI%20think%20you%20are%20still%20not%20getting%20what%20I%20want%20OR%20may%20be%20i%20am%20not%20able%20to%20explain%20well.%20Simple%20question%20how%20bots%20know%20that%20user%20is%20receiving%20phone%20call%3F%20In%20another%20way%20how%20bot%20will%20receive%20notification%20when%20someone%20call%20me%3F%20Suppose%20you%20are%20making%20phone%20call%20to%20me%20in%20ms%20teams%2C%20I%20have%20configured%20a%20bot%3B%20Instead%20of%20I%2C%20bot%20will%20reply%20to%20you%20OR%20bot%20will%20send%20me%20a%20card%20with%20your%20name.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1801860%22%20slang%3D%22en-US%22%3ERe%3A%20Intercept%20incoming%20call%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1801860%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F413403%22%20target%3D%22_blank%22%3E%40shaileshbhindi%3C%2FA%3E%26nbsp%3BWere%20you%20able%20to%20figure%20this%20out%3F%20I'm%20having%20a%20similar%20requirement%20now%20and%20was%20googling%20for%20options.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

 

I would like to create one bot/app which detect incoming call & it will open browser in my machine which shows name of caller. Is that possible to intercept incoming call? Is there any API/call event which support this?

 

Thanks!

10 Replies

@Trinetra-MSFT 

Hi, Thanks for reply!. I have gone through it. Can we test using ngrok this kind of functionality OR it is compulsory require bot to register in Azure?

Anyone have idea about this? Can ms team calling bot detect OR intercept incoming call for user who has installed this bot?

 

For example: User A has a bot configured in his ms teams, User B makes a phone call to User A, before User A accept the call, bot should log some information about this calls like caller ID & send message to User A with some details.

Yes, you can test it by setting up ngrok server.

@Trinetra-MSFT - That I know. But I want some event in bot which is raised on incoming call for user who has configured this bot. Is there any event which occur on incoming call?

This is not like call from user to bot. This is kind of requirement where one user calls to another user & bot intercept that call for getting some information from incoming call.

 

Thanks.

@shaileshbhindi , You need to register you bot in azure, where your bot requires specific Application or delegated permissions for calling and meeting, However you can set up the sample locally and run it on ngrok.

@Trinetra-MSFT - I did not register to Azure but did in bot framework & set require permission. I am able to call directly to bot from user.

My requirement is when some calls me, my bot will give some information about caller & send me a card/message in teams.

@shaileshbhindi , You can configure your Bot to send an attachment (Adaptive Card  or any other card) when your bot respond to the call.

Please refer to these document to check how to send an Adaptive card in attachment

@Trinetra-MSFT I think you are still not getting what I want OR may be i am not able to explain well. Simple question how bots know that user is receiving phone call? In another way how bot will receive notification when someone call me? Suppose you are making phone call to me in ms teams, I have configured a bot; Instead of I, bot will reply to you OR bot will send me a card with your name.

@shaileshbhindi Were you able to figure this out? I'm having a similar requirement now and was googling for options.