How to create confirmed outgoing caller ID from Toll-free twilio numbers? - php

I am trying to create outgoing caller ID dynamically.
But the problem is that Twilio does not create it because it fails to verify it (noone responds and inputs confirmation code).
Why do I need to verify number if I get it from the list of available phone numbers?
Can I emulate response which will send Twilio confirmation code when Twilio dials that number?

Twilio evangelist here.
Not sure what you mean by "from the list of available phone numbers". Do you mean you've purchased a number from Twilio? If thats the case you do not have to verify it, you can use any Twilio number as an outgoing caller ID.
If its not a Twilio number, today the only way to authorize an outgoing phone number is to have Twilio call that number and for someone to answer and enter the correct pin code. The reason is to prevent fraud.
Hope that helps.

Related

Error: [HTTP 400] Unable to create record: The source phone number provided is not yet verified for your account

I am using PHP from Twilio API, to make calls and sms from my php code, the sms is working, but when the calls it shows an error, please! I need help
I bought a number from twilio and upgarde, but it still shows the same error
Error: [HTTP 400] Unable to create record: The source phone number provided, +151**********, is not yet verified for your account. You may only make calls from phone numbers that you've verified or purchased from Twilio.
Twilio developer evangelist here.
When making calls you can set the number that you are calling from as either a Twilio number or a number that you have verified is your own. The error message is saying that neither of these conditions have been met.
If you are trying to make a call with a Twilio number that you have bought, then I would double check the number in your code to make sure it matches your Twilio number.
If you are trying to call from your own phone number, then make sure the number appears in your verified numbers list in your Twilio console. If it doesn't then you will need to verify it from that page first.
Let me know if that helps at all.
for me, it was because I live in Algeria and Algeria is disabled by default on my Geo permission page. if the above solution didn't work you should check your Geo permission Page in the Verify tab and look for the country you're trying to send messages to and see if it's enabled

calling to twilio number from mobilephone

I want to take my phone, call the twilio number and then talk with the person in the other side; and as the same with the sms.
I don't want "url" apps, or phone apps... (I made this that actually works http://luiscallcenter.netne.net/callcenter/index.php)... but I don't want use this.. I want to use twilio as another phone number... ...
can you help me with some reference?... I read the API but all that is about web apps, but I don't want this and I'm confused.
Basic Call Forwarding
http://twimlets.com/forward?PhoneNumber=123-123-1234
In the above URL, replace 123-123-1234 with your cellphone number. Then set this URL as your twilio voice URL. Then all calls coming to your twilio number will be forwarded to the given number. This service is offered by twilio itself.
(For more details, visit here)
Twimlets Service by Twilio Labs
You can use this website provided by twilio to generate urls for some common use cases such as forwarding to a cell number, echo a message etc.
When using this feature, you dont have to do any actual coding. Just replace the necassary parts in the provided URL and set this URL as the voice URL in twilio.

Twilio sms gateway Change sender id as text

I am tring to use Twilio SMS gateway to send SMS to clients.Twilio API works good for me but i got struk in setting sender id.
Is there any possibities to set the sender ID as text ie., our business name (ex., Mycompany - i need to receive sms with this name)?
Twilio evangelist here.
The short answer is that today we only allow you to use a Twilio phone number as the caller ID when sending text messages from Twilio. You can read more about setting the caller ID for outgoing SMS messages here.
Hope that helps.

twilio sms api - is my sms delivered or NOT-delivered to end user?

I use twilio API to send SMS from my php application. When the 'to' number is malformed (invalid area code, invalid digits number etc) twilio works fine, giving me an exception.
My problem is when I try to send to a number that is in good format, however it doesn't exist. It show it as 'sent' and no exception is given. I also tried the callback option:
array('StatusCallback' => 'http://uncurler.heroku.com/v1/<some code >').
Even when i view the report here it shows as 'sent'.
Is there a way to actually know if the message was delivered? Or more importantly if it was NOT delivered? If not, is it possible from some other API?
Twilio evangelist here.
So currently the Status value does not reflect anything beyond our ability to deliver the message to the carrier. It does not reflect any information about whether or not the carrier was able to deliver the message or not.
If the carrier accepts the message from us, we mark the message as Sent.
Hope that helps.

How to receive SMS to a twilio number

I have created a free account in twilio for sending SMS through my website. After my registration I got a twilio number like XXX-XXX-XXXX. I am able to send message to mobile numbers but I don't know how to use this twilio number for receiving SMS. Please help me out on this.
Twilio evangelist here.
The way Twilio notifies you of both incoming SMS message and incoming voice phone calls is by using something called a webhook. This is basically an HTTP request that Twilio makes to a URL that you tell us about. Normally this URL is a web app that you've created and published to a public website.
http://en.wikipedia.org/wiki/Webhook
In your Twilio dashboard, click on the Numbers tab and you will see your trial number.
https://www.twilio.com/user/account/phone-numbers/incoming
Click the phone number and you will see two input fields, one for a Voice URL and one for a SMS url. Just put your URL's there and click the save button.
Now if you send a text message to your number, Twilio will make an HTTP request to the URL you've told us about. You can think of this like a standard Form submit. Twilio will send along parameters like the number the SMS is coming from and the body of the message. The full list of parameters we send to the SMS url is here:
https://www.twilio.com/docs/api/twiml/sms/twilio_request
Your app can grab those parameters and use them however it wants. Your app can also return TwiML instructions to us that tell us to respond to the SMS.
https://www.twilio.com/docs/api/twiml/sms/your_response
You might want to check out our quickstarts for examples of how to receive a text message and and howtos for lots more examples of both sending and receiving SMS messages.
https://www.twilio.com/docs/quickstart/php/sms/hello-monkey
https://www.twilio.com/docs/howto
Hope that helps.
Devin

Categories