web statisticsweb stats

Business Phone Systems

Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Sep 2006
Posts: 3
Member
Member
Offline
Joined: Sep 2006
Posts: 3
Can someone please explain SIP (protocol) to me, in laymans terms. Started using Genband G6 VOIP box here at work and I can provision pri/cas and gr303 in it but dont really understand SIP protocol? Hell I dont even understand this whole box with no formal training but we have GENBAND support so that helps.

Thanks Guys.

Oh yeah and I am new to the board, here.

Dan

Atcom VoIP Phones
VoIP Demo

Best VoIP Phones Canada


Visit Atcom to get started with your new business VoIP phone system ASAP
Turn up is quick, painless, and can often be done same day.
Let us show you how to do VoIP right, resulting in crystal clear call quality and easy-to-use features that make everyone happy!
Proudly serving Canada from coast to coast.

Joined: Sep 2006
Posts: 39
Member
Member
Offline
Joined: Sep 2006
Posts: 39
OK this is pretty basic but might be what you need. I'm also pretty tired so sorry if this is disjointed.

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'). I believe 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 if I remember correctly). 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)

This may not help, but it drove me mad a few times before I figured it out smile


Hope that all helps!


A time is coming when men will go mad, and when they see someone who is not mad, they will attack him saying, "You are mad, you are not like us." -Abba Anthony
Joined: Aug 2003
Posts: 5,155
Likes: 5
Moderator-Vertical, Vodavi
*****
Moderator-Vertical, Vodavi
*****
Joined: Aug 2003
Posts: 5,155
Likes: 5
Good explanation, IronHelix!

Joined: Jun 2006
Posts: 292
Member
Member
Offline
Joined: Jun 2006
Posts: 292
WOW IronHelix.....very nicely done!!!

Joined: Sep 2006
Posts: 3
Member
Member
Offline
Joined: Sep 2006
Posts: 3
Thank you for the response!

Joined: Aug 2004
Posts: 9,172
Likes: 22
Admin
*****
Admin
*****
Joined: Aug 2004
Posts: 9,172
Likes: 22
Another source of info. This link was posted earlier.


https://www.sipcenter.com/sip.nsf/html/What+Is+SIP+Introduction


[Linked Image]
Joined: Jul 2006
Posts: 731
Member
Member
Offline
Joined: Jul 2006
Posts: 731
I am amazed at the wealth of knowledge one can achieve here, on this site!

clap


www.phonelinetech.com


"Can I Still Call Out?"

Link Copied to Clipboard
Newest Topics
SV8100 beeping
by Jackcmann - 04/10/25 05:29 AM
Samsung xchange server
by scanjet - 04/07/25 06:37 PM
NEC IP Phones
by juno - 04/04/25 09:05 AM
Forum Statistics
Forums84
Topics94,516
Posts639,970
Members49,848
Most Online5,661
May 23rd, 2018
Newest Members
Kevin usama, Pruitt roger, ActiveTelephones, yeloshak, ty3995
49,847 Registered Users
Top Posters(30 Days)
Toner 9
Taddeo 6
Who's Online Now
0 members (), 179 guests, and 44 robots.
Key: Admin, Global Mod, Mod
Contact Us | Sponsored by Atcom: One of the best VoIP Phone Canada Suppliers for your business telephone system!| Terms of Service

Sundance Communications is not affiliated with any of the above manufacturers. Sundance Phone System Forums - VOIP & Cloud Phone Help
©Copyright Sundance Communications 1998 - 2025
Powered by UBB.threads™ PHP Forum Software 8.0.0