1 / 20

Asterisk based real-time social chat

Asterisk based real-time social chat. Advisor : Lian-Jou Tsai Student : Jhe -Yu Wu. Outline. Motivation. Telephony Technology. System Design. Conclusion. Reference. Abstract. Application. Motivation. To integrate WebRTC into SIP and PSTN. To simplify calling process. Abstract.

zelia
Download Presentation

Asterisk based real-time social chat

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Asterisk based real-time social chat Advisor : Lian-Jou Tsai Student : Jhe-Yu Wu

  2. Outline Motivation Telephony Technology System Design Conclusion Reference Abstract Application

  3. Motivation To integrate WebRTC into SIP and PSTN. To simplify calling process.

  4. Abstract This study aims to integrate new telephony technology like WebRTC with VoIP. The following slides will introduce telephony technology including PSTN and VoIP. The system design will show at the end of the presentation.

  5. Telephony Technology • PSTN & VoIP

  6. PSTN VoIP • Public Switched Telephone Network • Voice over Internet Protocol VoIP Server PSTN Figure 2. The VoIP architecture. Figure 1. The PSTN architecture.

  7. Application • Asterisk & WebRTC

  8. Asterisk WebRTC • Asterisk is a flexible and extensible suite of integrated telecommunications software. • WebRTC(Web Real Time Communication) is a open project  • that enables web browsers withReal-TimeCommunications capabilities • via simple JavaScript APIs. • Supported Browsers

  9. System Design • User interface & Core component

  10. User Interface : jQuery JavaScript varxmlhttp; if (window.XMLHttpRequest){ xmlhttp = new XMLHttpRequest(); }else{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange= function(){ if(xmlhttp.status == 200){ //ok } } xmlhttp.open("GET","ajax.php?data=ok",true); xmlhttp.send(); • jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML. jQuery $.ajax({ url: "ajax.php?data=ok", type: "GET", success: function(){ //ok }})

  11. User Interface : JSON XML <book> <type>textbook</type> <pages>256</pages> <title>Programming Pearls 2nd Edition</title> <rating>4.5</rating> <coverType>paperback</coverType> <genre>Computer Science</genre> <author>Jon Bentley</author> </book> • JSON is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs. JSON { "book": { "type": "textbook", "pages": "256", "title": "ProgrammingPearls2ndEdition", "rating": "4.5", "coverType": "paperback", "genre": "ComputerScience", "author": "JonBentley“ } }

  12. User Interface jQuery PHP JSON HTML Client Side Scripting Send an AJAX request to PHP Server Side Scripting Send command to AMI and handle returning value Javascript Object Notation Wrap returning data in JSON Create Web Page Parse JSON using jQuery and render web page

  13. Core Component : AMI • PHP-AMI-CLASS, a PHP class for Asterisk Manager Interface • Access AMI with simple AIPs • Available on GitHub

  14. Core Component JSON Asterisk AMI PHP Javascript Object Notation Wrap returning data in JSON VoIP Server Provide WebRTC service through WebSocket Asterisk Manager Interface Control Asterisk by reading or sending command to AMI Server Side Scripting Send command to AMI and handle returning value

  15. Traditional Service Brand New Social Chat • Fill lots of informations before make the call • Login with a Facebook account, no more input

  16. Simple User Interface

  17. Cross Platform Chat Everywhere The system write with native APIs, don’t need to worry about support of other browsers and OSes.

  18. Advantage No More Registration Login with Facebook account No Plugin Needed Native WebRTC support Chat Everywhere Cross-platform

  19. References [1] www.voip-info.org/wiki/view/Asterisk+manager+API [2] www.oschina.net/question/100267_61459 [3] wikipedia.org/JSON [4] stackoverflow.com/questions/8567114/how-to-make-an-ajax-call-without-jquery [5] wikipedia.org/wiki/Jquery

  20. Thanks for your patient

More Related