How to phone number masking when call using twilio via PHP android? - php

I want to create a calling between driver and rider using anonymous phone no. both are not see own no. it actually see the Twilio assign no. how can i integrate in custom PHP and please also tell me the work flow. if u have code must share your git link.
I will try using twilio sdk but still not working.i am not getting what we do from PHP side.

Twilio developer evangelist here.
I'd first start by working through this tutorial we have on masked phone numbers with PHP. This doesn't give you the Android app side of things, but will teach you about how number masking works.
Then, check out the documentation for Twilio Programmable Voice for Android and try to build the quickstart application.
Once you have those two parts, you should be able to fit them together to complete your solution. If you have any trouble with those bits, then please do post on StackOverflow with your code and the feature you are having difficulty with.

Related

Sending SMS using API using flowroute API

I want to Send SMS using flowroute API. I want to use PHP or Laravel Framework. I didn't get any good tutorial about it.
You know, that you just need to read and click a littlebit? The address you refered to, shows PHP-examples. On the target-github-page you can find the text "To work with the SDK, please read and follow the steps in the Flowroute PHP Library v2.". What is the problem?

Nexmo Forward Message to my number

I have a virtual number in nexmo 447775*****, then my goal is If someone texted me on that number the message will be forwarded to my personal number 55699*****. I read the documentation on how webhook works but I didn't quite sure if that is what I'm looking for. I already search google for a day to search for a tutorial but I didn't find any. Can someone provide me some reference or provide an example? Btw I'm using php.
You could setup your Nexmo virtual to "forward" to your personal number however you need to code your backed as such. Nexmo provides an API to facilitate sending/receiving SMS but it's not a forwarding service. Google Voice would be what you are looking if you want something out of the box. A Webhook is basically a URL that Nexmo would call when you receive an incoming SMS message. Your API/service would receive the message, parse it and do something with it. Hope this helps.

Trying to figure out a how call works in twilio

As subject says I am reading api docs for twilio but even after brainstorming for 2 hours I am still unable to figure out exactly how can I receive a call from twilio on my web application and answer the call with my own voice like we do in a real phone.
I know how to respond a call when someone call your twilio number but that's only text to speech conversion like their "Hello Monkey" example application but nothing so far about answering a call using their API.
Can anyone please explain how can we do that? Not everything, just main concept and few references if possible
I am using Laravel so would be good if it's in php
Twilio evangelist here.
I would suggest working through the Twilio Client for JavaScript Quickstart. This will walk you through both the server and client side code needed to build a phone in your browser, showing you how to both make outbound calls from the browser to a PSTN phone as well as receive incoming PSTN calls in the browser.
The magic that you are looking for in either of those cases is the <Dial> verb. When an incoming PSTN call comes into Twilio, you can use the Dial verb to tell Twilio to dial and bridge that call with a Client instance:
<Dial>
<Client>jenny</Client>
</Dial>
When and instance of client make an outbound call and wants to connect to a PSTN phone number you again us the Dial verb:
<Dial>
<Number>+15555555555</Number>
</Dial>
The quickstart shows in more detail how this works.
Hope that helps.
You tried the Twilio PHP lib? As for Laravel... Incoming call? No problem!
Please try to use Google before asking questions! I think one important trait to any programmer is the ability to organize the idea of "what you want", and then google each step to get it that you want...

How to record and store Twilio SMS in MySQL with no additional action?

What I am trying to accomplish is quite simple. I want to store all received SMS messages from a Twilio number in a database. Upon checking Twilio's documentation, their TwiML word should be able to do this, but no attribute relates to this:
https://www.twilio.com/docs/api/twiml/sms
Twilio developer evangelist here.
When your Twilio number gets sent an SMS, your application receives a webhook at the URL you supply in the settings for the number. For each messages, the webhook sends a number of parameters telling you about the message. The documentation for that can be found here: https://www.twilio.com/docs/api/twiml/sms/twilio_request.
You might want to take a look at our PHP Quickstart tutorial which will give you a good idea of how to get the details from the request. You will then just have to pick which attributes you want to store in your database.
Let me know if this helps.

How to make a web based appliaction to call on cell phone

I want to make a web page in PHP from there users can easily call to any mobile numbers how is this possible in PHP?
I think you're looking for something similar to Google Talk Developer API with the libjingle kit.
(Considering that's about as close to voice and calls you'll get to without finding a company with a phone number and SDK--Google voice I don't think has an SDK).
Additionally, you could Google "VOIP SDK" and see what you get.
If you don't need synchronous voice communication (i.e.: a pre-recorded message is fine) then Twilio has a wonderful HTTP API for interfacing with telephones.

Categories