{"id":2209,"date":"2020-10-27T23:38:45","date_gmt":"2020-10-27T23:38:45","guid":{"rendered":"https:\/\/www.fastmetrics.com\/blog\/?p=2209"},"modified":"2023-01-18T02:38:34","modified_gmt":"2023-01-18T02:38:34","slug":"what-is-sip","status":"publish","type":"post","link":"https:\/\/www.fastmetrics.com\/blog\/tech\/what-is-sip\/","title":{"rendered":"What Is SIP &#038; How Does It Work?"},"content":{"rendered":"<h3 style=\"text-align: center;\">What Is SIP?<\/h3>\n<p>So what is SIP? SIP stands for <strong>Session Initiated Protocol<\/strong>. It is a type of IP based communication, typically used for voice, but capable of much more than simple voice communication. Press play on the below video from <a href=\"https:\/\/www.youtube.com\/channel\/UCjOClxbkjSlb_B4teQNCC9w\" target=\"_blank\" rel=\"noopener noreferrer\">sipsense.com<\/a> to learn more about what SIP is and what it does. This video covers the basics on how SIP works.<\/p>\n<p><center><\/center><\/p>\n<div class=\"video-container\"><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/erICfPV8-Lg\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<p><strong>Video transcript:<\/strong> SIP, the Session Initiation Protocol, a protocol to initiate a session. But what is a session and why do we need a protocol to get one started? Well, we\u2019re talking about a communication session. In fact an IP communication session using IP devices and an IP network. At its heart, SIP is a signaling protocol to set up an IP communication session.<\/p>\n<p>Now when we think about it, virtually all communications begin with signaling, even a face-to-face conversation. Dave here wants to talk to Nath. So he signals his intent by calling over. Hey Nath! A sound wave carried through the air. Recognizing the invitation to talk, Nath signals back to accept. What\u2019s up? With Dave\u2019s invitation signal answered with Nathan\u2019s acceptance signal, both parties are ready to converse. They begin a dialogue, an exchange of media. In this case, more sound waves traveling through the air. Conversation complete, Dave issues another signal, this time to end the session and just to be polite, Nathan signals back, confirming he knows the session is ending.<\/p>\n<p>Signaling in an IP world follows the same principles. Instead of signaling with an audio wave through the air, IP devices signal with IP packets over the IP network. Now there\u2019s lots of different types of IP packet, each with their own function and content. The important thing is that both sender and receiver understand the packet construct and what to do with this data.<\/p>\n<p>In IP communications, there are two types of IP packets. There are signaling packets and media packets. Signaling packets to establish or set up the session and media packets to then convey <a href=\"https:\/\/www.fastmetrics.com\/blog\/tech\/free-video-chat\/\">the audio, the video<\/a>, the white boarding data and so on. With a <a href=\"https:\/\/www.fastmetrics.com\/blog\/phone-systems\/what-is-voip-how-does-it-work\/\">voice session<\/a>, the analog wave on one side is encoded into ones and zeros that are put into media packets and then sent out over the IP network.<\/p>\n<p>On the other side, the ones and zeros are unpacked and decoded, the wave reconstructed and played back to the user. Encoding and decoding also applies to video. Images from the camera are encoded. The binary digits packaged in media packets and sent out over the IP network. Now the other side, again the data is decoded, the image reconstructed and then displayed to the user.<\/p>\n<p>Now every second of conversation has many, many media packets, audio and perhaps video packets that convey the real time conversation. Simple enough. But for this media exchange to take place, we\u2019re assuming two important things have already been sorted, that both parties know each other\u2019s location. They know where to send their media packets and that both parties are using the same codecs for encoding and decoding the media.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2211\" src=\"https:\/\/www.fastmetrics.com\/wp-content\/uploads\/sites\/5\/2020\/10\/taking-a-SIP-voice-call-via-a-cell-phone-1024x683.jpg\" alt=\"taking a SIP voice call via a cell phone\" width=\"525\" height=\"350\" srcset=\"https:\/\/www.fastmetrics.com\/blog\/wp-content\/uploads\/sites\/5\/2020\/10\/taking-a-SIP-voice-call-via-a-cell-phone-1024x683.jpg 1024w, https:\/\/www.fastmetrics.com\/blog\/wp-content\/uploads\/sites\/5\/2020\/10\/taking-a-SIP-voice-call-via-a-cell-phone-300x200.jpg 300w, https:\/\/www.fastmetrics.com\/blog\/wp-content\/uploads\/sites\/5\/2020\/10\/taking-a-SIP-voice-call-via-a-cell-phone-768x512.jpg 768w, https:\/\/www.fastmetrics.com\/blog\/wp-content\/uploads\/sites\/5\/2020\/10\/taking-a-SIP-voice-call-via-a-cell-phone-624x416.jpg 624w, https:\/\/www.fastmetrics.com\/blog\/wp-content\/uploads\/sites\/5\/2020\/10\/taking-a-SIP-voice-call-via-a-cell-phone.jpg 1200w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<p>So here\u2019s the big question. How do we locate or find the other user\u2019s <a href=\"https:\/\/www.fastmetrics.com\/ip\/\">IP address<\/a> and how do we decide which codecs to use? We need a process, some descriptions and rules that help us locate each other and agree on codecs. What we need is a protocol and that\u2019s where SIP comes in, the Session Initiation Protocol.<\/p>\n<p>It\u2019s essentially a rule book that describes how to locate the other party and which codec to use for encoding and decoding media. It also defines how to construct and send IP signaling packets to set up the call and what to do to then manage the call.<\/p>\n<p>So now, if Dave wants to use his <a href=\"https:\/\/www.fastmetrics.com\/blog\/tech\/bria-softphone-counterpath-user-guide-video\/\">SIP phone<\/a> to call Nath on his SIP phone, Dave\u2019s phone follows all the steps defined by SIP to construct a special IP signaling packet, a SIP packet, populated with all the data needed to set up the call and sends it out over the IP network. On the other side, Nath\u2019s SIP phone, understanding the rules of SIP, recognizes the packet is an invitation to talk and knows to alert Nath by playing the phone\u2019s ringing sound.<\/p>\n<p>More signaling packets are exchanged. We will talk about those later. Then with signaling complete and codecs determined, the phones get busy exchanging media packets that digitally convey the conversation. Then sometime later, one of the parties signals the end of the call and both stop sending media. The call is terminated. Simple.<\/p>\n<p>Now understanding the essence of SIP is really quite easy. It\u2019s just signaling to set up and manage IP communication sessions. Understanding its full potential however and knowing enough to fully implement real-life <a href=\"https:\/\/www.fastmetrics.com\/metricvoice\">SIP solutions<\/a> and to support real IP communications networks is something else.<\/p>\n<p>There\u2019s much to learn, many complexities to unravel and understand. But worry not. That\u2019s why we\u2019re here. That\u2019s the purpose of <a href=\"https:\/\/sipsense.com\/catalog\/Course\/3\/sip-basics\" target=\"_blank\" rel=\"noopener noreferrer\">this course<\/a>. By the time we\u2019re done, you will be a SIP expert. It will all make good SIP sense.<\/p>\n<h4 style=\"text-align: center;\">About Fastmetrics, Inc. Building &amp; Business ISP<\/h4>\n<p>Since 2002, Fastmetrics is the Bay Area&#8217;s only dedicated <a href=\"https:\/\/www.fastmetrics.com\/\">business ISP<\/a>. We provide telecommunication services in California and the San Francisco Bay Area. Reliable service &#8211; backed by better live and local support. From install to 24-7 proactive monitoring, get treated like a VIP customer. Not a number by a faceless call center. We specialize in managed <a href=\"https:\/\/www.fastmetrics.com\/internet-phone-bundles.php\">business internet and phones<\/a>, dedicated high speed <a href=\"https:\/\/www.fastmetrics.com\/fiber-optic-internet.php\">business fiber internet<\/a>, <a href=\"https:\/\/www.fastmetrics.com\/managed-business-wifi-service.php\">business WiFi<\/a>, <a href=\"https:\/\/www.fastmetrics.com\/metricvoice\">SIP voice<\/a> solutions \/ UCaaS and managed network services. We are a Microsoft and <a href=\"https:\/\/www.fastmetrics.com\/blog\/managed-services\/cisco-meraki-partner\/\">Cisco Meraki<\/a> Partner. Our team are Certified Cisco Specialists, Ubiquiti Enterprise Wireless Accredited and Polycom Authorized Solution Advisors. We take care of your business network, so you can focus on growth.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone \" src=\"https:\/\/www.fastmetrics.com\/assets\/images\/microsoft-partner-black.webp\" alt=\"Microsoft Partner logo - Fastmetrics\" width=\"142\" height=\"64\" \/>\u00a0 \u00a0 \u00a0 <img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" style=\"margin: 0 15px;\" src=\"https:\/\/www.fastmetrics.com\/assets\/images\/cisco-certified-specialist.webp\" alt=\"Cisco Certified Specialist \" width=\"136\" height=\"84\" \/> \u00a0<img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" style=\"margin: 0 15px;\" src=\"https:\/\/www.fastmetrics.com\/assets\/images\/Ubiquiti-Enterprise-Wireless-Admin-Training.png\" alt=\"Ubiquiti Enterprise Wireless Admin (UEWA) Accredited \" width=\"131\" height=\"72\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What Is SIP? So what is SIP? SIP stands for Session Initiated Protocol. It is a type of IP based communication, typically used for voice, but capable of much more than simple voice communication. Press play on the below video from sipsense.com to learn more about what SIP is and what it does. This video [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2211,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[25,1],"tags":[],"class_list":["post-2209","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-phone-systems","category-tech"],"_links":{"self":[{"href":"https:\/\/www.fastmetrics.com\/blog\/wp-json\/wp\/v2\/posts\/2209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fastmetrics.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fastmetrics.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fastmetrics.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fastmetrics.com\/blog\/wp-json\/wp\/v2\/comments?post=2209"}],"version-history":[{"count":0,"href":"https:\/\/www.fastmetrics.com\/blog\/wp-json\/wp\/v2\/posts\/2209\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fastmetrics.com\/blog\/wp-json\/wp\/v2\/media\/2211"}],"wp:attachment":[{"href":"https:\/\/www.fastmetrics.com\/blog\/wp-json\/wp\/v2\/media?parent=2209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fastmetrics.com\/blog\/wp-json\/wp\/v2\/categories?post=2209"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fastmetrics.com\/blog\/wp-json\/wp\/v2\/tags?post=2209"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}