You are on page 1of 26

INTEROPERABILITY IN UNIFIED COMMUNICATIONS USING SIP

Final Year Major Project

Supervisor : Mr. C.P. Gupta Asso Professor, Department of Computer Engineering

Submitted by: Chirag Golechha Gaurav Jain Neha Agarwal Priyanka Mahajan Shikha Vijay

Submitted to: Department of Computer Engineering University College of Engineering, RTU, Kota

PRESENTATION COMPRISES OF:


Introduction to Unified Communications Introduction to SIP

Unified communication

NEED
To integrate different communication medium over one interface. To minimize communication response time or delay. One can send a message on one medium and receive the same message on another medium. Less bills to worry as all services from a single provider through a single number. To maximize work time.

SESSION INITIATION PROTOCOL (SIP)


SIP is a multimedia session control protocol published by IETF in 1999 It is a application layer protocol. Only establishes and tear down the sessions and not responsible for data transfer. Supports the following features: User Location Users parameter negotiation User availability Call establishment Call management

SIP PROTOCOL STRUCTURE

SIP Protocol Message Exchange

Implementation architecture

STEPS OF IMPLEMENTATION
1. Establishment of SIP Proxy Server (openSIPS).
1.1 Configuration of User agent server. 1.2 Configuration of Proxy server. 1.3 Configuration of Redirect server. 1.4 Configuration of Location server.

We are implementing two services as unified service :-

1.VoIP Service
2.Mail Exchange Service

Architecture to implement Voip service

For VoIP service steps of implementation are :1. Configuration of scripting and routing. 2. Adding authentication. 3. Establishing a GUI for openSIPS.

4. Connecting to PSTN.
5. Integration of media services.

6. Managing accounting and billing.

Architecture to implement mail exchange service


abc@gmail.com xyz@yahoo.com Fetchmail program

abc@rediffmail.com

Outgoing mail

Mail Transfer Agent (Postfix with SASL)

IMAP and POP3 daemon

Send to local user mail Boxes

Sent Mail

Web Browser

Squirelmail web interface

The main components of mail exchange service are:1. Fetch Mail :- Open source software used to retrive email from a remote POP3, IMAP mail server to mail transfer agent. 2. Mail Transfer agent (Postfix with SASL):- It handles receiving mails addressed directly to our machine, and sending it to the correct users mailbox, and sending mail out of the machine. SASL stands for simple authentication security layer. 3. Dovecot (IMAP and POP3 Server) :- It provides a way for mail user agents to access their mails. 4. Sqirrelmail :- It is a web mail package. 5. Browser interface

AUTHENTICATION
To authenticate SIP requests and save data such as location and alias tables we have to perform database based authentication using AUTH_DB module and to provide MySQL support we have to use DB_MySql module. The AUTH_DB module exports two functions:

1. www_authorize :This function is used in the REGISTER requests authentication .


2. proxy_authorize :This function is used in the NON REGISTER requests ( such as INVITE )authentication . Now we understand the working of above 2 functions one by one.

The REGISTER authentication

When Open SIPS receives the REGISTER message, it checks for the existence of the Authorize header. If it is not found, it will challenge UAC for the credentials and exit. After being challenged, the UAC should send a REGISTER message with an Authorize header field.

The INVITE authentication

The first INVITE with a reply containing a message, 407 Proxy Authentication Required. This message has the Authorize header field, containing information about the digest authentication, such as realm and nonce UAC replies with a new INVITE. Now, the Authorize header field contains the digest calculated using the username, password, realm, and nonce calculated using the MD5 algorithm.

DIGEST authentication

The digest scheme is a simple challenge-response mechanism. It challenges the UA using a nonce value. A valid response includes a checksum with all the parameters. Thus the password is never transmitted in plain text.

Client Interface
It offers follwing features: Voice call Video call Instant messaging Mail access

INTRODUCTION TO JAIN SIP


JAIN SIP is the standardized Java interface to the Session Initiation Protocol for desktop and server applications. JAIN SIP enables transaction stateless, transaction statefull and dialog stateful control over the protocol.

SIP PROTOCOL STACK LAYER

SEQUENCE DIAGRAM JAIN SIP

JAIN SIP ARCHITECTURE

Why Jain sip


Provide stack interoperability and application portability. Simple to implement and integrate. Provide full functionality. Follows the standard RFC. Open source.

You might also like