i wanna create a calling between passenger and driver 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
This is a classic use case in many sharing economy platforms. Twilio website and documentation have sufficient details to enable you build this. Tutorials with code is also available.
Check out these steps and tutorial .
Steps include ( this is directly copied from Twilio website)
STEP ONE
PROVISION TWILIO PHONE NUMBERSPurchase a pool of phone numbers from the Twilio
self-service portal or the Twilio phone number API. You can search for phone
numbers with a specific country and area code.
STEP TWO
MAP TWILIO PHONE NUMBERS TO USERSImplement the mapping between the provisioned
Twilio phone numbers and your users. In this example, xxx-xxxx is associated
to Arya and Bran's personal phone numbers for the duration of their business
relationship.
STEP THREE
ARYA CALLS TWILIO NUMBER XXX-XXXXWhen Arya calls xxx-xxxx, Twilio receives the
call and makes an HTTP request to your web server.
STEP FOUR
YOUR WEB SERVER RETURNS BRAN'S PRIVATE NUMBERYour web server looks up the
private phone number of Bran associated to xxx-xxxx and returns a TwiML <Dial>
to Bran's number.
STEP FIVE
THE CALL IS CONNECTEDTwilio connects the call between Arya and Bran. Bran sees
the call coming in from xxx-xxxx.
Related
I am using the twilio php library to send the first message to my customers using Twilio number when the customer replies to that number at this point proxy session will create and add both (customer and company) into that session.
company will receive the customer replies using a new generated proxy number
"till this is working fine" but if a company replies back to that message, the customer will get a response from new generated proxy number rather than old Twilio number.
The text below explains the process:
Send the first Message:
Twilio number Customer number
(xxxxxx6840) ---> (xxxxxx6866)
Customer Replies:
Customer number Twilio number Proxy number Company number
(xxxxxx6866) ---> (xxxxxx6840) ---> (xxxxxx6872) ---> (xxxxxx2786)
Up to this point, everything is working fine.
Company replies
Company number Proxy number Customer number
(xxxxxx2786) ---> (xxxxxx6872)---> (xxxxxx6866)
If the company replies, then the customer gets that reply from new proxy number.
What we wants is:
Company number Proxy number Twilio number Customer number
(xxxxxx2786) ---> (xxxxxx6872)---> (xxxxxx6840) ---> (xxxxxx6866)
Thank you
Did you follow the steps documented here, for out of session call backs?
Out-of-Session Callback Response Guide
https://www.twilio.com/docs/proxy/out-session-callback-response-guide
Following that process should provide the scenario you are looking for.
Also, this adds more insight.
Using the Reserved Numbers and Auto-Create functionalities to support the “online directory” scenarios
https://www.twilio.com/docs/proxy/using-the-reserved-numbers-and-auto-create-functionalities-to-support-the-online-directory-scenarios
I had call tracking set up on my system following this tutorial https://www.twilio.com/docs/tutorials/call-tracking-php-laravel, i have created twiML app with Voice REQUEST URL configured for this call tracking purpose.
Basically on my system i have list of users with their own personal number and assigned twilio number so whenever call comes in to one of twilio numbers, twilio posts to Voice REQUEST URL and in that url i have logic for call forwarding to their personal number, recording call log etc.This is working fine.
Now my new requirement is ability to call through browser to any number, I read this tutorial https://www.twilio.com/docs/tutorials/browser-calls-php-laravel . It seems i need to use Twilio Device Client.
My question is it fine to create new different twiML app for this purpose so that i will have separate Voice REQUEST URL where i can put apporiate logic to call destination number OR i should use same twiML app and within same REQUEST URL of my system i need to put logic for two different purposes? what could be recommended way of doing this?
Thanks in advance for any suggestion
"create new different twiML app for this purpose so that i will have separate Voice REQUEST URL where i can put apporiate logic to call destination number"
Your first answer seems the best. Keeps your code and logic cleaner.
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.
Has anyone found a way to use google voice to send a phone call without first calling you. I need a phone to ring, but it is not necessary that any particular message be sent or anything. Here is the API I've been looking at. https://github.com/aaronpk/Google-Voice-PHP-API In the API you specify your google voice number and the recipient's number, and then it calls your phone and connects you to the recipient. I'm looking for a way to just connect to the recipient.
That's just the way Google Voice works... to call out you either a) use the web interface, which calls one of your phones then dials the other person or b) you call you own GV number and use the menu to dial out. The API packages I've looked at all use the GV mobile site to dial or send text messages (method a).
The only method I can think of for your scenario would be to get a free VoIP account with a number somewhere and set up a softphone that auto-answers.
But that begs the question... what is your purpose...? web driven prank calls?
I was using this for a system to alert people when a computer system I created needed attention. Text alerts are good...unless you're asleep and can't hear them. So, what I did was create a google voice number and then delete all of the phones off of it, and record a long voicemail. This way, it calls, and goes straight to a message that tells them the system needs attention and then they can just hang up and respond.
Slight work around, but it seems to work out fine.
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.