Home Add to Favorite Contact Submit  
             19 April, 2024
 

    
Category:  Articles » Communications » VOIP

 

The Basics Of How SIP (Session Initiation Protocol) Drives Your VoIP System Design And Function

Popularity:
         Views: 1768
2006-11-29 00:19:25     
Article by Michael Lemm

Hold on to your seat. Finally....here's an explanation of SIP (Session Initiation Protocol) in laymans terms. It's pretty basic.... but should be just what you need to understand how this VoIP application fits into your VoIP system design plans and function. Afterall, not everyone in the business world can talk or understand "techie speak".

SIP - Session Initiation Protocol. It is exactly that - the main purpose of SIP is to set up and tear down media (audio/video/etc data) sessions, and also to manage endpoints and other things.

SIP devices communicate (usually) on UDP port 5060. When one device wants to start a call to another, it sends an INVITE message. Included in this is the SDP, session description protocol, which explains exactly what form the data will take (audio/video/etc, what codec, etc). When they agree and are ready to start exchanging media (data), RTP (realtime transport protocol) is used to actually exchange the data. RTP functions on any range of ports, which are assigned to each endpoint. The endpoints negotiate and choose acceptable ports on each side.

Sip also does a few other thing such as REGISTER. Register allows a SIP device with a dynamic IP to recieve calls. A common use is an ATA (vonage type box) - when you plug it in, it registers to its server, and renews the registration every XXX seconds to keep the server up to date (in case its IP changes).

SIP has a handful of other functions. For example NOTIFY can be used to pass assorted data to an endpoint (many IP phones will reboot when you NOTIFY them with the data 'check-sync'). NOTIFY is also used for MWI. There is also SUBSCRIBE, which allows an extension to subscribe to notifications of the status of a voice mail box (for MWI) or an extension/channel (for BLF....(busy lamp field, the thing which makes a guy's button light up when he is on the phone).

There are a handful of other SIP functions, for example REFER (transfer), BYE (hangup), etc.

SIP has three ways of dealing with DTMF signals sent while the call is in progress:

* Inband- Send the tones as audio in the media stream. Only works with G.711 ulaw/alaw codec, other codecs will distort the DTMF.

* RFC2833- Send the tones out of band but still attached to the audio stream via RTP.

* INFO- send the tones as SIP INFO packets along the control channel.

RFC2833 is probably the most common.

There is also a set of extensions called SIMPLE (Sip Instant Messaging, Presence, and Location Extensions). Put simply, this is a way to use SIP for instant messaging type uses.

SIP does not play nice with NAT routers, mostly because of RTP - the SDP includes the source and destination IP addresses where media should be sent to, which are not always correct.

For example - if you have an ATA behind NAT, it will use its own IP (192.168) when creating the SDP. NAT will correctly translate the header, so the packet is addressed from the network's external IP. However the contents of the packet still have a 192.168 IP as the destination, which the server cannot send media to. This commonly results in calls which work except one or both parties cannot hear each other.

There are two ways to solve this - media gateways (sip-aware router that rewrites the SDP) or more commonly, STUN (Sip Traversal Under NAT). STUN is a protocol which allows a SIP device to, with the help of a STUN server, discover its own external IP and what kind of NAT it is behind. It can then write the SDP correctly and negotiate the RTP session so the NAT will not bother it.

SIP shares many response codes with HTTP. IE- 404=extension not found, 401=unauthorized, etc.

Lastly in case you are ever looking at a SIP transcript - SIP performs authentication (where passwords are used) using digests. Thus, a typical authenticated session looks like this:

device tries to connect (INVITE)....
server responds trying....
server responds 401 unauthorized with some auth info....
device responds OK....
device tries to connect (INVITE) this time with hashed auth data....
server responds trying....
server responds ok (and other phone starts to ring)....

Hopefully the above gives you a basic understanding and arms you with enough to be able to ask the right questions....for the right reasons...at the right time.

Specialized in: Voip - Business Voip - Business Voip Solution - Voip Service - Voip Plan
URL: http://business-voip-solution.com
Print article      Bookmark this page
Related Articles 
Understanding Yahoo Conference Call (Popularity: ): You should not worry, if you do not know the ways to make a conference call. It is very easy to make conference calls. Once you learn the basic idea about conference call, you will find it easy and comfortable. There are many online options that are providing the facility of conference call. It is advisable to use yahoo conference call because it is very easy and it gives satisfactory ...
Connect With Remote Patients Globally With The Help Of PBX Solutions (Popularity: ): With an advent of technology, globalization has reinforced many businesses hence it is pivotal to upgrade tools and systems with robust features. As we know, today remote communication is an imperative part of enterprises, be it small or big, enterprises prefer to deploy state-of-the-art systems like IPPBX and hosted systems so as to obtain maximum benefits within a short span. This not only saves a lot of time but also ...
Automated Reminder System for Better Customer Services (Popularity: ): No matter what industry you are working in, the customer relationship is a necessity for the growth of the company. Each enterprise needs to ensure that it runs a few extra miles to offer the enhanced client support and services. The increase in the customer satisfaction will ensure the success in business, growth and of course Return Over Investments because you will get the returning customers as well as the ...
Broadband Phone: Voice Over Internet Telephone Made Cheap & Easy (Popularity: ): Do you want to make cheap Internet phone calls with VoIP, but are tired of always having to use your computer and headphones, or possibly your favorite messenger to make phone calls online? Thought about using a broadband phone company but not sure what you need or even if your technical aptitude is up to par with such techie computer gadgets? You'll be surprised how easy installing broadband phone service ...
Exploring Different Options For Affordable International Calls Services (Popularity: ): Calling to international destinations is a frequent requirement for many companies and individuals. There is always the search to find the most affordable service. However, sometimes focusing solely on affordability might not lead to a very good decision. You might end with a compromise on the call quality. To avoid such possibilities, look up the various other aspects of selecting the right company. Nowadays, you can find cheap options providing ...


Related Business 
VOiCOM Limited (Popularity: ): Communications consultancy and training for VoIP and Convergence related technologies. Session Initiation Protocol (SIP), H.323, MGCP & MEGACO
Open SIPS VoIP Solutions (Popularity: ): OpenSIPS Solutions is a dynamic and reliable player in the VoIP / SIP area, addressing various needs of VoIP operators and providers, from SMB to large carriers. The switching solutions come with different flavors and functionalities covering the entire range of SMBs, Carriers and Enterprises. Such solutions are remarkable by the flexibility and degree of customization. The SIPGene products are the building blocks of any VoIP infrastructure - various ready-to-use ...
Telephone Systems For Small Business (Popularity: ): Opustelecom is the leading providers of Business Telephone Systems VoIP, SIP Phone Systems, IP PBX, business telephone system, enabled with SIP & VoIP, brings dramatic improvements to costs, revenues and productivity.
VAX VoIP Software Development Kit (Popularity: ): Enable applications and Web pages to have voice conversation over the internet protocol (VoIP). It includes VoIP activeX (OCX), VoIP COM DLL, VoIP LIB and VoIP CAB, to provide wide implementation choice.
Marvit VoIP - Window Mobile Dialer (Popularity: ): Marvit VoIP has build up the windows mobile application that provides the communication to Smartphone to phone and Smartphone to Smartphone. Widows mobile dialer that maintain SIP protocol, deigned to provide away uninterrupted communication services and solutions. We have also an extraordinary Mobile Application Development software solution that simplify the calling rates, rise new technology and much more functionalities through Marvit VoIP.
A8619 Protocol Test System (Popularity: ): The A8619 Protocol Test System offers Analysis, Simulation, Emulation of SS7, V5, ISDN, INAP, GSM, GPRS, CDMA and VoIP protocols.
VoIP Infotech-VoIP Solution-VoIP Service Provider-VoIP for Mobile Dialer (Popularity: ): Voice over Internet Protocol (VoIP), abbreviated as VoIP is the most advanced internet telephony; which, is based on technologies, methodologies, and transmission of multi sessions voice communication around the world. ‘VoIP InfoTech’, the global VoIP service providers applies varied internet protocols or techniques to ensure absolute and activ`e interconnection between two users on different domains. Our VoIP services are also available on numerous smartphones and Internet devices.
VOIP Products Suppliers From India (Popularity: ): A well known wholesale supplier of voip products, dealing in all types of quality voip communication devices including voip gateways, ip paging system, channel bank, voip phones, voip adapters and more.
SIP Trunking Services (Popularity: ): SIP Trunking Services Canada: Broad Connect Telecom, The Leading SIP Trunking Service In Canada Offers Cost Effective Solutions. SIP Trunk – Smart SIP Serves as a Convertor between the Traditional Phone System and the Company’s Internet Connection and Allows Data Network to Carry Voice Traffic.
FaktorTel: Residential VOIP (Popularity: ): FaktorTel runs one of Australias largest voip services, providing services to the Australian market place. We currently offer hosted PBXs, full scale sip trunking for business and wholesale services as well as a range of residential voip services for the home user.