For management and business purposes many organizations use multiple software system for exchanging data over internet. Web service is a method of communication between them. Twilio API allows programmers to programmatically handle phone calls and text messages using its web service.
Twilio, the San Francisco-based company that currently works with around half a million developers to integrate text messaging, voice and VoIP services into their apps by way of a set of simple APIs.
Twilio uses Amazon Web Services to host telephony infrastructure. It provides connectivity between HTTP and the public switched telephone network (PSTN) through its APIs. Because of following architectural design it can easily handle the unexpected outage of Amazon Web service and stay online. In 2011 Twilio received praises for handling Amazon Web Services outage.
Twilio contributes to the open-source community by developing the support in those softwares using only basic Web development skills. For business users Twilio launched OpenVBX in June 2010 with that one can configure phone numbers to receive and route phone calls. One month later Twilio introduced open-source status dashboard that any API or software service can use to display whether their service is functioning properly or not.
Twilio API allows php,JAVA,python,.net,perl etc programming languages so that programmers from different backgrounds can easily handle this API.
Fig: overview of Twilio technology
To begin using Twilio to make voice calls, send SMS, and create VoIP clients, user first needs to sign up for an account. After signing up, one will be able to access an account SID and auth token which will be used to authenticate requests to the Twilio back end. This information can be found on one's dashboard.
Fig: Authentication Layer
Twilio offers different services for the technical market for handling their systems according to their needs.
1) Make outbound/inbound phone calls
2) Appointment Remainder
3)Buy a phone number
4) Call Queue
5) Call Screening
6) Call tracking
7) Company Directory
8) IVR(The Basics,Extensions,Call Screening and Recording,Database Integration,Logging and Reporting)
9) Moderated Conference
12)Reject an Incoming Call
14)Using Twilio Sub-accounts
18)Weather By Phone
2)Browser Soft Phone
3)Browser to Browser Call
4)Click to Call
6)Conference Call Monitor
2)Send an SMS From a Call
Phone Call Technique:
Click to call technique is an easy way to pass call to user from web application using Twilio by crossing Twilio authentication layer. When an user passes call from web application Twilio calls initialize that call between third party and user by using library class. User can get the status of the calls like successful, queued or failure.
Below image describes this technique.
Fig: Call technique
Twilio exposes outbound SMS messaging for user by crossing Twilio authentication layer. When an user sends from web application to the specified phone number Twilio allows that by using library class. User can get the status of the SMSs like successful, queued or failure.
Below image describes this technique.
Fig: SMS technique
My project for Booking to Barber experience:
I have developed one project named "atkirei" using this API where i have used 3 features of this
1) Call to barber for booking
2) Send sms to barber for booking
3) IVR system
1) Call: One booking calendar is there to select Year-Month-Day Hour-Minute-Seconds. And after pressing submit
button, call will be gone to barber and barber will hear automated japanese female voice for booking request along
with customer name.
String twiml = "<Response><Say voice='woman' language='ja-jp'>" + callText + "</Say>"+"</Response>";
// response of call
String Url = "http://twimlets.com/echo?Twiml=" + URLEncoder.encode(twiml, "utf-8");
//build map of post parameters
HashMap params = new HashMap();
// an instance of Twilio response
response = client.request("/"+barberConstants.APIVERSION+"/Accounts/"+client.getAccountSid()+"/Calls", "POST", params);
<Say> -> allows the automated voice to tell about the set text for call.
<Response> -> allows to pass the call.
TwilioRestResponse class handles params containing twilio authenticated number, receiver's number, calltext and passes
call to the third party.
2) SMS: After presssing submit button, SMS will be gone to barber by carrying the message of booking calendar's
Year-Month-Day Hour-Minute-Seconds along with customer name.
// Place the call From, To and Body values into a hash map.
HashMap<String, String> smsParams = new HashMap<String, String>();
// barber's twilio information
// barber contact information
// Create an instance of the SmsFactory class.
SmsFactory smsFactory = account.getSmsFactory();
// Send the message.
Sms sms = smsFactory.create(smsParams);
Sms class handles params containing twilio authenticated number, receiver's number, smsText and passes
SMSs to the third party. Before that, SmsFactory authenticates the account's information.
3) IVR: Interative voice system allows
1 for accepting booking request
2 for rejecting booking request
other digits/nothing for pending request
Barber after hearing automated female voice with date time decides what to press from his/her phone.And
Twilio handles pressed digit by request.getParameter("Digits") parameter and the system works according to that.
//call text set to response and say verb allows automated jp voice to speak
<Response><Say voice='woman' language='ja-jp' speed='0.5'> callText </Say>
//gather verb takes pressed digit and sends to system
<Gather action='action class url' method='GET' numDigits='1'>
<Say voice='woman' language='ja-jp' speed='0.5'>press 1 to accept</Say>
//pause for taking time gap between saying info
<Say voice='woman' language='ja-jp' speed='0.5'>press 2 to reject</Say>
<Say voice='woman' language='ja-jp' speed='0.5'>press others for pending</Say>
<Say voice='woman' language='ja-jp' speed='0.5'>You have not made any requests</Say>
<Say voice='woman' language='ja-jp' speed='0.5'>Thank you.</Say>
Fig: Booking Calender
Overall, Twilio provides user a very user-friendly API to work with and codes are really easy to handle for a developer. Its useful features are very beneficial for the user.
I just started this blog to describe my life in Bangladesh, how my internship has gone on and of course about Same Page Ltd.,.
Have you ever heard of "Joomla!" ?
This is one of the most popular CMS here in Bangladesh.
Bangladesh, despite of a low-income country has maintained an impressive track record on different sectors. For becoming a middle-income country youths are making great impact on country's economy. They are struggling with poverty, unemployment and nasty political corruption. Freelancing is their main weapon in this struggle.
Markets and business owners are now being interested about Bangladeshi freelancers because of the working ability, skillful tasks and cheap rate. According to BASIS(Bangladesh Association of Software and Information Services) more than 1lac Bangladeshi freelancers are adding 1crore BDT per day in Bangladesh economy. Lots of owners daily post their jobs to freelancing sites like oDesk, Freelancer.Com, eLance.com and so on.
Freelancing is all about how to efficiently, flexibly one can sell his/her skill. Some highly demanding freelancing jobs are- SEO (search engine optimization), Website development, Data entry, Blogging and Affiliate Marketing Expert, Article writing, Graphic design, Software Development, Mobile and Web apps development etc.
Experts and some political leaders' opinion about freelancing is- despite of having so many obstacles youth are carrying this sector very skillfully and Within 2021 we can change our Bangladesh as a middle-income country.
Freelancers opinion about this sector is- We are working hard and day by day we are improving but the obstacles which should be removed are,
1) Cost of internet should be minimized.
2) Various rules on Dollar should be stopped.
3) There should be some systems in Bank for freelancers only to take money on holidays.
4) Government should take more steps like seminar, workshop etc to improve this sector as well.
In Bangladesh not only single person but also many companies are doing freelancing which is not only removing unemployment but also increasing ability of our country to compete with developed countries.
Translate to Japanese Language→http://tottho.org/samepage/blog/bangladesh/217-it-web-development.html
For the very first time in Bangladesh, three members of an international Yaba tablet syndicate were arrested by rapid Action Battalion(RAB) in Bandartila area of Chittagong,Bangladesh. RAB-7 media ASP mentioned that the satellite phone is an indicator of their international counter parts. The satellite phone is from Iridium brand. People who are against humanity
use this type of phones to continue their crimes. However it is a matter of great regret that Bangladesh does not have any technology to track or monitor this system.
Fig: Smugglers with Satellite phone were nabbed in Bangladesh
What is Satellite phone:
Generally, people are familiar with mobile network phones which get its connection from mobile company's own tower. However satellite phones get signal directly from satellite. So, it can be used in any place and there is no need of network tower. Thuraiya satellite mobile was a great advantage for Iraq and Afghanistan war.
Differences between Mobile and Satellite phone:
There is no such differences between satellite phone and mobile phone but only in network system. Terrestrial network is not used here but get connected directly with satellite. That is why this phone can be used in any place or in any weather. Specially for navy and army these phones are used in most of the cases.
Disadvantages of Satellite phone:
This technology started in 18th or 19th century along with mobile phones. Now-a-days these phones have become like smartphone size. However the disadvantages are-
1) Satellite reception rate is very poor without open field.
2) Satellite phone can not connect within home or offices that's why it is not renowned like mobile phones.
How does it work:
Satellite phone works in various ways. In some cases it uses Geosynchronous orbit. It means mostly 3-4 satellites are stable in the orbit of earth and connection in the whole world can be established by contacting those. Those satellites are very heavy (~5000kg) and very expensive to set in the distance of 22000 miles away from earth. That is why good connection is needed with which satellites are set in less distance with earth in low-earth orbit. These are set in only 400-700 miles away from earth and they usually move around the earth within 70-100 minutes. These satellites can give coverage within 2800 km and the speed of message passing in mobiles is from 2200 bit/s to 9600 bit/s.
Fig: Uses of this technology
Expenses of Satellite phone:
Satellite phone has become very expensive now-a-days. Sat-to-Sat call rate is $0.15-$2 but Sat-to-mob call rate iss $3-$14. Moreover many company offers upto $15. And pre-paid card of satellite phone is from $5000 to $10000.
Users of Satellite phone:
Iridium is the leading company which provides this service with the help of 66 low-earth orbits. Government offices, military, navy, Ministry of Disaster Management and Relief, foreign embassies, The recreational user that travels outside of cellular range, Recreational boaters that travel off the coast, Captains of chartered boats etc can use this phone with the proper permission of government. In the whole world only 7-8 companies provide this service. However this service is totally banned for North Korea, India, Cuba, Myanmar, libya.
Satellite phone for general people:
This phone was not available for general people in 18-19th century. However the company SPOT will provide this phone in 38000 BDT. This phone is called Spot Global phone which is kind of similar to old version Nokia phone. With the help of this phone one can call from any place.
Fig: SPOT GLOBAL phone
Crimes with this technology:
Mobile phone can be easily monitored but because of high and expensive technology some country can not monitored satellite phone properly. That is why for smuggling drugs, golds, weapons etc they usually use this technology so that they can communicate from any rural place.
This useful technology can be a great help gor humanities to invent something necessary but now this technology is being harmful. And necessary steps should be taken immediatly to stop those activities against humanity.
"Clouds come floating into my life, no longer to carry rain or usher storm, but to add color to my sunset sky."-- Rabindranath Tagore.
Now cloud has floated into the technical world such as computing, communication etc. also but with vast differences. Cloud communications are Internet-based voice and data communications where telecommunications applications,switching and storage are hosted by a third-party outside of the organization using them, and they are accessed over the public Internet. Messy telecom hardwares are taken care of and Cloud APIs are introduced for the communication.One of those APIs I have a great experience to work with is "TWILIO" API.
Fig: Cloud communication working with Mobile
Twilio is a quick service provider to get connected with other party over phone or SMS. Different applications with whom an organization can work with and consumer can consume the facilities like appointment remainder, call tracking, moderated conferencing, SMS notification, audio recording, browser-browser call, browser-phone call etc.
Fig: TWILIO API
User has to buy one number from Twilio and they will authenticate that user with some necessary information. From user end, user will call to the customer. Initially call will be placed to the Twilio server and it will authenticate those informations and establish the connection between user and customer. And for this service they will cost a certain amount.
Fig: Twilio API with call and sms
I have developed two projects using this API.
1)Booking to barber/salon over phone or by SMS. IVR (interactive voice response) system has been also using to get
immediate response to accept/reject those requests.
Fig: booking over phone/sms
2) Wishing people on their birthday with automated voice and mp3.
Fig: Birthday Call button hits Twilio gateway for passing call to birthday person
Leading companies also rely on Twilio for their quick service --- http://www.twilio.com/customers
Twilio has enhanced the telecommunication world with all its facilities and consumers are satisfied with the quick services of this API.