Can't receive sms with twilio - twilio

maybe somebody know and describe to me - why a month ago I use twilio & receive sms, but know stopped? I'm use http://twimlbin.com and put the same code
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Record/>
</Response>
But sms didn't came to me more?

Twilio evangelist here.
The code you have here will not send an SMS message, it will try to record a voice call instead.
To send SMS replies you need this TwiML:
<?xml version="1.0" encoding="utf-8"?>
<Response>
<Message>Your message here</Message>
</Response>
Put that into your TwiMLbin snippet, connect the URL to the Messaging Request URL in your twilio number, and send it an SMS message.
Let me know if you have any further issues.

Related

How to redirect incoming call to SIP ip address with twiml?

I'm using Twilio (twiml code) for incoming calls. I need to redirect incoming call to remote SIP ip address. How can I do it ?
You could use a TwiML similar to this
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial>
<Sip>
alex#something.sip.us1.twilio.com
</Sip>
</Dial>
</Response>
Note: there is more configuration needed, see the answer to How do I forward a Twilio number to a VoIP phone?
Also, this blog post has more information https://www.twilio.com/blog/registering-sip-phone-twilio-inbound-outbound

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>

Twilio number - Suppress

I have a Twilio number that forwards to my mobile phone, and I'd like the caller ID to be suppressed (not see the callers number) and just show the Twilio number. This is so I know the call is coming via the Twilio number. Is this possible?
It's possible using your Twilio number as the callerId attribute something like this:
Let's say your Twilio number is +44zzzyyyyxxx
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Dial callerId="+44zzzyyyyxxx">+447950401xxx</Dial>
</Response>

The phone number in 'Dial' is not shown in output file

I have the following xml
<Dial timeout="10" action="file.php" method="POST">211</Dial>
which dials the hypothetical 211 to try and connect the caller with 211.
When I read what was sent via $_POST, there's no mention of 211.. Why is that?
Not using Twilio client.
Twilio developer evangelist here.
I'm guessing you are returning that TwiML, the <Dial> (within a <Response> I hope) when someone calls your Twilio number and Twilio sends a webhook to your application.
I'm not sure where you are looking for the number, 211, in the $_POST object. If it is when Twilio sends the webhook to you then this is before you have told Twilio you want to dial 211 and so Twilio doesn't know anything about it yet. If you are looking for all the parameters that Twilio sends to you in that webhook, check out this article in the docs on Twilio's request to your application in a voice call.
Are there other POST requests that Twilio is making to your application where you are expecting to see this number?

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.

Resources