System and method for processing telephony sessions
In one embodiment, the method of processing telephony sessions includes: communicating with an application server using an application layer protocol; processing telephony instructions with a call router; and creating call router resources accessible through a call router Application Programming Interface (API). In another embodiment, the system for processing telephony sessions includes: a call router, a URI for an application server, a telephony instruction executed by the call router, and a call router API resource.
1. A method comprising:
sending, from a device, using a uniform resource locator (URL), a request to an application, the request comprising parameters including account information and phone number information of a telephony session;
receiving, at the device and from the application, a response to the request, the response including at least one telephony instruction; and
executing, based on the at least one telephony instruction, a telephony action for the telephony session.
2. The method of claim 1 , wherein the parameters further comprise state information of the telephony session.
3. The method of claim 1 , wherein the parameters further comprise an indication of dual tone multi frequency (DTMF) digits received in the telephony session.
4. The method of claim 1 , wherein the parameters further comprise second phone number information of the telephony session.
5. The method of claim 1 , wherein the parameters further comprise a unique identifier of the telephony session.
6. The method of claim 1 , wherein the parameters further comprise a status of the telephony session.
7. The method of claim 1 , wherein the parameters further comprise a representation of a sound recording.
8. The method of claim 1 , wherein the parameters further comprise a result of a second telephony action.
9. The method of claim 1 , wherein the parameters further comprise geographic data regarding a participant in the telephony session.
10. The method of claim 1 , further comprising:
associating the URL with an endpoint.
11. The method of claim 10 , further comprising:
initiating the telephony session with the endpoint.
12. The method of claim 1 , wherein the telephony session is a voice session.
13. The method of claim 1 , wherein the telephony session is a short messaging service (SMS) session.
14. The method of claim 1 , wherein the telephony session is a multimedia messaging service (MMS) session.
15. A call router system configured to perform operations comprising:
sending, using a uniform resource locator (URL), a request to an application, the request comprising parameters including account information and phone number information of a telephony session;
receiving, from the application, a response to the request, the request including at least one telephony instruction; and
executing, based on the at least one telephony instruction, a telephony action for the telephony session.
16. The call router system of claim 15 , wherein the parameters further comprise state information of the telephony session.
17. The call router system of claim 15 , wherein the parameters further comprise an indication of dual tone multi frequency (DTMF) digits received in the telephony session.
18. The call router system of claim 15 , wherein the parameters further comprise second phone number information of the telephony session.
19. The call router system of claim 15 , wherein the parameters further comprise a unique identifier of the telephony session.
20. The call router system of claim 15 , wherein the parameters further comprise a status of the telephony session.