Understanding how twilio manages multiple numbers from same twilio account - twilio

My question is when we buy multiple numbers from same twilio account, what is the parameter that makes the numbers different? Is it the client name or is there something else? Suppose that I want my tablet and phone to be linked to same twilio number then they will have different client name, Is that right? Please can some one explain.

Twilio evangelist here.
Suppose that I want my tablet and phone to be linked to same twilio number then they will have different client name
To do this you could set the Voice request URL of your Twilio phone number to a URL that returns TwiML containing multiple <Client> nouns. you can set it up to eather dial sequentially:
<Response>
<Dial>
<Client>bob</Client>
</Dial>
<Dial>
<Client>alice</Client>
</Dial>
</Response>
In this scenario Twilio will dial Bob first. If Bob does not answer, Twilio will dial alice.
You can also simul-dial multiple clients:
<Response>
<Dial>
<Client>bob</Client>
<Client>alice</Client>
</Dial>
</Response>
In this scenario Twilio will dial Bob and Alice at the same time and Twilio will bridge the inbound PSTN call to which ever answers.
Hope that helps.

Related

Twilio: Can Sip be used to call a Twilio Conference?

I've been reviewing the Twilio Voice documentation, but I can't see if it would be possible for a sip communications infrastructure to join a Twilio Conference.
This would be the ideal scenario for us.
However, if this wasn't possible, having a conference dial or invite a sip address would be almost as good.
Obvious this is the basic sip dial from a pstn, but can't see how this could be used with the Twiml Conference verbs.
https://www.twilio.com/docs/voice/twiml/sip
<Response>
<Dial>
<Sip>
sip:jack#example.com
</Sip>
</Dial>
</Response>
Also I can see that the Api supports 'Create a Participant – Agent Conference only', however we don't use the Agent Conference Only conference type and we've concerned this would break existing functionality.
https://www.twilio.com/docs/voice/api/conference-participant-resource
I guess we're hoping this can be achieved with Twiml.
Since you are initiating a call out toward your SIP infrastructure (if I am understanding you correctly?), you would use the Twilio REST API Calls resource to do so, and the To: would be a SIP URI. The URL would be pointing toward TwiML which then join the SIP participant into the conference when they answer.
If you want them to dial into Twilio via SIP from your SIP infrastructure, you would set up a SIP Domain.
You actually have an incredible amount of flexibility with either approach.
Alan
Making Calls

TwiML Sip only dialing the first one

I am trying to get all of our customer care team's phone's to ring on inbound call's using twiml, but it only ever ring's the first one, Both test phone's are registered through twilio's Sip Domain, and depending on which one is first, that is the one that rings, Here is an exmple of my twiml ( Generated through there function's )
<Response>
<Dial>
<Sip>sip:test1#testdomianasdf.sip.us1.twilio.com</Sip>
<Sip>sip:test2#testdomianasdf.sip.us1.twilio.com</Sip>
</Dial>
</Response>
Per Twilio's Support, are not able to do "simulring", and also can not do "simulring" on if the number is hosted through twilio due to some timing issue :(
SimRing is not support on SIP End-points. It is supported using Number and Client nouns.
If you register SIP clients under the same SIP URI, up to 10 will ring.
Twilio now allows "parallel" calls via SIP:
https://www.twilio.com/docs/voice/twiml/sip?code-sample=code-parallel-calling-11
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial>
<Sip>sip:alice-soft-phone#example.com</Sip>
<Sip>sip:alice-desk-phone#example.com</Sip>
<Sip>sip:alice-mobile-client#example.com</Sip>
</Dial>
</Response>

Twillio iOS App, not making calls properly

I am experimenting with Twillio for iOS, and going through the quick start tutorial here
https://www.twilio.com/docs/quickstart/php/ios-client/passing-parameters
Now I setup a heroku account as per the tutorial and so far I am accomplishing everything up until the point where I press dial in the app and make a call to a cell phone that I entered, I get an automated message saying " Welcome to Twillio"
and then in like 3 seconds it hangs up. No Error messages are logged or anything.
Any help would be appreciated.
Twilio evangelist here.
Assuming you are using the TwiML sample from the previous step in Twilio Client for iOS the quickstart, it sounds like your application is behaving as expected.
When using Twilio Client, you need to tell Twilio what to do with the VoIP connection thats being from iOS into Twilio, which you do by setting up a web server that has a URL that returns a set of TwiML "verbs". In the Quickstart, the TwiML we show includes the <Say> verb, which tells Twilio to take text and turn it into the robot voice that you're hearing.
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>Welcome to Twilio</Say>
</Response>
Once Twilio finishes executing all of the TwiML verbs you give it, it disconnects the call.
If you want a different experience from whats shown in the Quickstart you can just change the TwiML your server returns. For example, if you want to have Twilio drop that Client call into a conference you could change the TwiML to:
<Response>
<Dial>
<Conference>Party Time</Conference>
</Dial>
</Response>
If you want Twilio to dial a PSTN number (like making a call to a cell phone), you would use the <Dial> verb with the <Number> noun:
<Response>
<Dial>
<Number>+15555555555</Number>
</Dial>
</Response>
Hope that helps.

Issues with Twilio Transcription during recording within a Dial verb

I am Raj, an independent Twilio consultant for a customer.
As part of a solution implementation, we have a requirement to support the following -
"A Customer makes a call to a Twilio number which forwards the call to a business number and record the conversation".
We have configured the Twilio Number to route the request to our server and we send the following TwiML as a response :
<Response>
<Dial record="true">XXXXXXXXX</Dial>
</Response>
The above works fine for call forward and recording; but it does not seem to transcribe the recording.
If I send the following as a TwiML response; the recording & transcription does not seem to happen either.
<Response>
<Dial>XXXXXXXXXX</Dial>
<Record transcribe="true"/>
</Response>
Is there a limitation in the Dial verb that it can only record, but cannot transcribe?
Regards
Raj
Twilio Developer Evangelist here.
You are correct. Record is available as a dial verb attribute but transcribe is not.
If you want to transcribe in this scenario you could use a 3rd party transcription service like Rev.

Twilio Voice - Add a person to an exisiting confrence call

I am using Twilio Voice, Now what i want to do is, If i already created a conference call between 2 people, and then while they are talking, they decided to add a 3rd person to the call with them on the conference, Can someone please help me how to have this done with a sample or something ?
Thanks!
Twilio Developer Evangelist here. So, it depends on how this is setup. I presume your conference call TwiML looks like this:
<Response>
<Dial>
<Conference>someroom</Conference>
</Dial>
</Response>
In that case, you can just have another person dial the number and provide the same TwiML to add them to the same conference room. If you want the people on the call to invite someone in, you will need to use so that they can provide the other person's number, or have some sort of web interface. Then use the REST API to dial that person into the conference, again with the same TwiML.
Is this what you needed?

Resources