1 / 10

S IP Programming :

S IP Programming :. SIP has texture encoding feature. [1] SIP allows third parties or user to program SIP follows HTTP programming model. Programming Mechanisms:. In order to develop services programmers needs APIs Three mechanisms suggested in IETF: [2]

oprah
Download Presentation

S IP Programming :

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. SIP Programming : • SIP has texture encoding feature.[1] • SIP allows third parties or user to program • SIP follows HTTP programming model

  2. Programming Mechanisms: • In order to develop services programmers needs APIs • Three mechanisms suggested in IETF:[2] • SIP Call Processing Language ( SIP – CPL ) • SIP Common Gateway Interface ( SIP – CGI ) • SIP Servlet • Other efforts • Parlay • JAIN™

  3. Call Processing Language (CPL) : • Designed by the IETF to support sophisticated telephony services • May be used by both SIP or H.323. • XML based scripting language for describing controlling call services[3] • SimpleSyntax • Extendible • Easily edited by GUI tools • Scripts runs on network SIP signaling server to create end user services • Lightweight CPL interpreter is need to parser & validate scripts.

  4. CPL Example : A simple script that blocks anonymous callers[4]; <?xml version="1.0" ?><!DOCTYPE cpl PUBLIC "-//IETF//DTD RFCxxxx CPL 1.0//EN" "cpl.dtd"><cpl> <incoming> <address-switch field="origin" subfield="user"> <address is="anonymous"> <reject status="reject" reason="I don't accept anonymous calls" /> </address> </address-switch> </incoming></cpl>

  5. Common Gateway Interface (CGI) : • Almost identical to HTTP CGI [5] • Language independent ( Perl, Tcl, C, C++, ... ) • Any binary may be executed as a separate program • Suitable for services that contains substantial web content • Passes message parameters through environmental variables to a separate program. • More flexible but more risky • Feb. 1, 2001: RFC 3050 (Common Gateway Interface for SIP) published[6]

  6. Java Servlets : • Similar to HTTP servlets • Instead of using a separate process, messages are passed to a class • The class runs within a JVM (Java Virtual Machine) on server • Security provided by Java • Portable between OSs & servers

  7. JAIN™ SIP API: • Low level API that maps to IETF - RFC 2543 • Interfaces for services across circuit switched and packet networks • Three major objectives : • Service Portability – Write Once Run Anywhere • Network Converges – Any underlying network architecture IP, ATM,Wireless,... • Service Provider Access by Anyone

  8. JAIN™ SIP API: ( Cont.) • Three SIP APIs under JAIN initiative; • JAIN™ SIP API (JSR 32) : • Low level API for almost any signaling protocol ( SIP, H.323, ... ) • Requires extensive knowledge of SIP. • Avaliable at Final Release, http://jcp.org/jsr/stage/final.jsp • JAIN™ SIP Lite : • High Level API for rapid application development • Especially User Agent development • Under development , http://jcp.org/jsr/detail/125.jsp • SIP Servlets : [7] • API for SIP servlets • Under development, http://jcp.org/jsr/detail/116.jsp

  9. Conclusion: • As the arena become more & more crowded for service providers, the choice of the appropriate service creation mechanism inherently follows HTTP service creation mechanisms and highly depends on different scenarios where security,portability and performance have different roles of importance.

  10. References : • [1],[5] Sisalem D.,Kuthan J., Understanding SIP , Http://iptel.org/sip/siptutorial.pdf • [2] Programming SIP, http://www.sipcenter.com/aboutsip/progsip.htm • [3] Rosenberg D.J, Shockey R., The Session Initiation Protocol (SIP) , ComputerTelephony , June 2000 • [4] A Spotlight on Call Processing Language, http://www.ubiquity.net/cpl.html • [6] News, http://www.cs.columbia.edu/~hgs/sip/ • [7] Java Specification Request,JSR 116,SIP Servlet API,http://jcp.org/jsr/detail/116.jsp

More Related