Get active PSTN caller id from Teams - microsoft-graph-api

I'm looking for a way to get the PSTN caller id / phone number of an active PSTN call in a tab or custom app in MS Teams. Is this possible?

Related

Twilio number as voicemail - receive forwarding number as callerid

I am building an application where a user will call our clients personal phonenumber. His voicemail is set one of our Twilio numbers.
Is there a way to find out which client forwarded the call to us?
I am using a TwiML app with our API as webhook.
I successfully receive the calls and see the phonenumber of the caller as 'from' and 'caller' and our 'twilio' number as 'to'.
Since it is a forwarded call I would expect the 'caller' should be the clients number, 'from' the caller and 'to' our twilio number, or at least both 'caller' and 'from' should be the client rather than the original caller. However, both 'from' and 'caller' are always the number of the original caller.
One option is to provision a phone number for each client. That way each client will forward calls into a unique phone number that only they use. If you have 10 clients you will have 10 Twilio phone numbers. Each of those provisioned numbers will use your same TwiML app w/ API as webhook. This is described in this "How to Build a Call Tracking Solution".

Redirecting call from a Twilio to Microsoft Teams

I am trying to understand if there is a way we can transfer/redirect active call from Twilio to Microsoft Teams user.
Incoming call to Twilio will be a SIP audio call.
MS Teams will act as SIP Gateway/Server which can receive call from Twilio and Teams user will see the incoming call.
I was reading few of the articles on Twilio:
https://www.twilio.com/docs/voice/tutorials/call-forwarding-java-spark
https://www.twilio.com/docs/sip-trunking/call-transfer
Does Twilio and MS Teams supports this feature using the APIs?
As you will have read in the SIP trunking call transfer article, you can absolutely transfer a SIP call from Twilio to another SIP endpoint.
I have no experience of that with MS Teams, but it appears that you can make SIP calls to Teams. Though some of the documentation points out that you may need specific hardware that supports Teams.

How to show your company's and department's name as a caller id in Twilio?

I'm trying to integrate Twilio for my company. And it has two departments. I want to make twilio calls as "Company dep1", "Company dep2". How can we do it with twilio.
Twilio developer evangelist here.
If you are making calls to the US or Canada then you can setup CNAM caller ID so that your business name comes up when making outbound dials. To set this up you need to contact Twilio support, please see this article for the details on setting up CNAM for your Twilio number.
Note that even with CNAM, your Twilio number can only have one name associated with it. If you want more than one name, then you would need more than one number.
If you are not making calls to the US or Canada, then Twilio does not support caller ID names. The only way to get your company name to show up would be for your users to enter the company name and number in their contacts.

Adding Existing Numbers to Twilio Connect SID

We're currently building a Twilio Connect App and testing with our Twilio Projects.
Our main SID is e.g. AC336 and when flow through Twilio Connect, we get a new SID e.g. AC294
We can successfully authenticate with this SID and contact the REST API.
The issue is, this new SID (AC294) has no numbers associated with it, hence we can't send any messages. However, with our App, we want existing Twilio customers to authorise our App and use their existing numbers. We do not wish to or need to, offer to buy them numbers as they likely already have them on their account.
When we currently call the following using the 'new' SID, we get no data:
$incomingPhoneNumbers = $this->twilio->incomingPhoneNumbers
->read(array(), 20);
But if we authenticate with our parent SID e.g. AC336 then we get our phone numbers, as expected.
Is it possible, via Twilio Connect, to make the numbers available in the 'parent' SID (AC336 in our case) available to the authorised App SID (AC294 in this example)?

How to build administrative functions in Twilio Programmable Voice (Conference)

I'm playing around Twilio programmable Voice (Conference) along with PHP.
I'm unable to implement administrative functions like muting/un-muting all participants, start & stop recording etc by moderator of the conference, I preferably would like to use *1, *2, *3, *4 as keypad presses by moderator to have control over the active ongoing conference call.
Appreciate your feedback.
The flow I've created so far as prototype is working good.
Participant/moderator dials Twilio number
TwiML greets users by and prompts to capture PIN code by using
PIN code validated by action URL on my server
When two participant & moderator joins conference is working.
Twilio developer evangelist here.
In order to achieve this, you need to add a couple of things to your conference.
First, add the hangupOnStar attribute to the <Dial> for your moderator. That will allow the moderator to temporarily leave the conference by dialling *.
When they do, Twilio will request the URL in the action attribute. You will want to respond to that request with TwiML that allows the moderator to perform the muting action, so you'll need a <Gather>. The <Gather> will need an action attribute that receives the Digits pressed by the moderator, performs the action (muting/unmuting) using the REST API and returns TwiML to put the moderator back into the <Conference>.
Does that help?

Resources