{"id":279,"date":"2024-10-18T08:32:40","date_gmt":"2024-10-18T08:32:40","guid":{"rendered":"https:\/\/www.siperb.com\/kb\/?post_type=ht_kb&#038;p=279"},"modified":"2026-03-26T11:44:40","modified_gmt":"2026-03-26T11:44:40","slug":"sip-session-description-protocol","status":"publish","type":"ht_kb","link":"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/","title":{"rendered":"What is SIP (Session Initiation Protocol)?"},"content":{"rendered":"\n<p><strong>Session Initiation Protocol (SIP)<\/strong> is a signaling protocol used for initiating, maintaining, and terminating real-time sessions that involve voice, video, messaging and other communications applications and services between two or more endpoints on IP networks. SIP messages are the fundamental building blocks of SIP-based communications, facilitating various operations such as call setup, management and termination.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Types of SIP Messages<\/h3>\n\n\n\n<p>SIP utilizes two types of messages:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Requests<\/strong> &#8211; Methods sent by the client to initiate or control a transaction. Examples include INVITE, ACK, BYE, CANCEL, REGISTER, OPTIONS, and UPDATE.<\/li>\n\n\n\n<li><strong>Responses<\/strong> &#8211; Replies from the server that indicate the status of the received request. These are numerically coded, similar to HTTP responses (e.g., 200 OK, 404 Not Found).<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Common SIP Message Headers<\/h3>\n\n\n\n<p>SIP messages consist of several headers that provide essential protocol functionality. Here is an explanation of the most commonly used SIP headers:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Via<\/strong>: This header is used to track the path taken by the request through the network. It is used by SIP proxies to route the responses back to the originator of the request. It includes the protocol version, transport protocol, and the sender&#8217;s address.<\/li>\n\n\n\n<li><strong>From<\/strong>: Specifies the initiator of the request. It contains a URI (usually a SIP URI similar to an email address) and optionally a display name. It also includes a tag parameter, which helps in identifying the session.<\/li>\n\n\n\n<li><strong>To<\/strong>: Contains the recipient&#8217;s URI and optionally their display name. Like the From header, it may include a tag, but in initial requests, it typically does not.<\/li>\n\n\n\n<li><strong>Call-ID<\/strong>: A unique identifier for the SIP session, shared by all participants in the call. It is crucial for call management and tracking.<\/li>\n\n\n\n<li><strong>CSeq<\/strong>: The Command Sequence header includes a sequence number and the request method (e.g. INVITE). It is used to order transactions within a SIP dialog, ensuring that they are processed in the correct sequence.<\/li>\n\n\n\n<li><strong>Contact<\/strong>: Provides a URI that can be used to contact the user or service identified in the To header. It is used in registration and call-routing processes.<\/li>\n\n\n\n<li><strong>Max-Forwards<\/strong>: Limits the number of times a request can be forwarded by proxies. This prevents loops and too long request paths in the network.<\/li>\n\n\n\n<li><strong>Content-Type<\/strong>: Describes the type of message body attached to the SIP message. Common types include application\/sdp, which denotes that the message body contains a Session Description Protocol description.<\/li>\n\n\n\n<li><strong>Content-Length<\/strong>: Indicates the length of the message body in octets. It is critical for determining where the message body ends and the next SIP message begins when multiple SIP messages are sent in a single TCP stream.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Examples of SIP Messages<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Example 1: SIP INVITE Request<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>INVITE sip:user@example.com SIP\/2.0\nVia: SIP\/2.0\/UDP host.example.com;branch=z9hG4bKnashds8\nTo: &lt;sip:user@example.com&gt;\nFrom: \"Alice\" &lt;sip:alice@example.com&gt;;tag=1928301774\nCall-ID: a84b4c76e66710@host.example.com\nCSeq: 314159 INVITE\nContact: &lt;sip:alice@host.example.com&gt;\nMax-Forwards: 70\nContent-Type: application\/sdp\nContent-Length: 142\n\n(v=0\no=Alice 2890844526 2890844526 IN IP4 host.example.com\ns=\nc=IN IP4 host.example.com\nt=0 0\nm=audio 49170 RTP\/AVP 0\na=rtpmap:0 PCMU\/8000)<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Example 2: SIP 200 OK Response<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>SIP\/2.0 200 OK\nVia: SIP\/2.0\/UDP host.example.com;branch=z9hG4bKnashds8;received=192.0.2.1\nFrom: \"Alice\" &lt;sip:alice@example.com&gt;;tag=1928301774\nTo: &lt;sip:user@example.com&gt;;tag=a6c85cf\nCall-ID: a84b4c76e66710@host.example.com\nCSeq: 314159 INVITE\nContact: &lt;sip:user@example.com&gt;\nContent-Type: application\/sdp\nContent-Length: 131\n\n(v=0\no=user 53655765 2353687637 IN IP4 host.example.com\ns=\nc=IN IP4 host.example.com\nt=0 0\nm=audio 3456 RTP\/AVP 0\na=rtpmap:0 PCMU\/8000)<\/code><\/pre>\n\n\n\n<p>These SIP messages and their headers play a vital role in managing the communication sessions. Each header provides specific functionality that ensures proper protocol operation, contributing to the robustness and reliability of SIP-based communications.<\/p>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-info\">SIPERB makes use of the standard SIP messages as its primary messaging protocol for calling. This technique is called <a href=\"https:\/\/www.siperb.com\/kb\/topics\/sip-over-webrtc\/\">SIP over WebRTC<\/a>. SIPERB follows the default\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/Session_Initiation_Protocol\" target=\"_blank\" rel=\"noreferrer noopener\">SIP<\/a>\u00a0standard according to\u00a0<a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc3261\" target=\"_blank\" rel=\"noreferrer noopener\">RFC 3261<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Session Initiation Protocol (SIP) is a signaling protocol used for initiating, maintaining, and terminating real-time sessions that involve voice, video, messaging, and other communications applications and services between two or more endpoints on IP networks.<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[28],"ht-kb-tag":[35,36],"class_list":["post-279","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-sip-over-webrtc","ht_kb_tag-sip","ht_kb_tag-webrtc"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What is SIP (Session Initiation Protocol)? - SIPERB WebRTC Softphone<\/title>\n<meta name=\"description\" content=\"Session Initiation Protocol (SIP) is a signaling protocol used for initiating, maintaining, and terminating real-time sessions that involve voice, video, messaging, and other communications applications and services between two or more endpoints on IP networks.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is SIP (Session Initiation Protocol)? - SIPERB WebRTC Softphone\" \/>\n<meta property=\"og:description\" content=\"Session Initiation Protocol (SIP) is a signaling protocol used for initiating, maintaining, and terminating real-time sessions that involve voice, video, messaging, and other communications applications and services between two or more endpoints on IP networks.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/\" \/>\n<meta property=\"og:site_name\" content=\"SIPERB WebRTC Softphone\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/people\/Siperb\/61559214233611\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-26T11:44:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.siperb.com\/kb\/wp-content\/uploads\/2024\/08\/Universal-Promo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"629\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@SiperbDotCom\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/\",\"url\":\"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/\",\"name\":\"What is SIP (Session Initiation Protocol)? - SIPERB WebRTC Softphone\",\"isPartOf\":{\"@id\":\"https:\/\/www.siperb.com\/kb\/#website\"},\"datePublished\":\"2024-10-18T08:32:40+00:00\",\"dateModified\":\"2026-03-26T11:44:40+00:00\",\"description\":\"Session Initiation Protocol (SIP) is a signaling protocol used for initiating, maintaining, and terminating real-time sessions that involve voice, video, messaging, and other communications applications and services between two or more endpoints on IP networks.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.siperb.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is SIP (Session Initiation Protocol)?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.siperb.com\/kb\/#website\",\"url\":\"https:\/\/www.siperb.com\/kb\/\",\"name\":\"SIPERB\",\"description\":\"Softphone for Asterisk or FreeSWITCH\",\"publisher\":{\"@id\":\"https:\/\/www.siperb.com\/kb\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.siperb.com\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.siperb.com\/kb\/#organization\",\"name\":\"SIPERB\",\"url\":\"https:\/\/www.siperb.com\/kb\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.siperb.com\/kb\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.siperb.com\/kb\/wp-content\/uploads\/2024\/08\/cropped-playstore-1.png\",\"contentUrl\":\"https:\/\/www.siperb.com\/kb\/wp-content\/uploads\/2024\/08\/cropped-playstore-1.png\",\"width\":512,\"height\":512,\"caption\":\"SIPERB\"},\"image\":{\"@id\":\"https:\/\/www.siperb.com\/kb\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/people\/Siperb\/61559214233611\/\",\"https:\/\/x.com\/SiperbDotCom\",\"https:\/\/linkedin.com\/company\/siperb\/\",\"https:\/\/youtube.com\/@Siperb\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is SIP (Session Initiation Protocol)? - SIPERB WebRTC Softphone","description":"Session Initiation Protocol (SIP) is a signaling protocol used for initiating, maintaining, and terminating real-time sessions that involve voice, video, messaging, and other communications applications and services between two or more endpoints on IP networks.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/","og_locale":"en_GB","og_type":"article","og_title":"What is SIP (Session Initiation Protocol)? - SIPERB WebRTC Softphone","og_description":"Session Initiation Protocol (SIP) is a signaling protocol used for initiating, maintaining, and terminating real-time sessions that involve voice, video, messaging, and other communications applications and services between two or more endpoints on IP networks.","og_url":"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/","og_site_name":"SIPERB WebRTC Softphone","article_publisher":"https:\/\/facebook.com\/people\/Siperb\/61559214233611\/","article_modified_time":"2026-03-26T11:44:40+00:00","og_image":[{"width":1200,"height":629,"url":"https:\/\/www.siperb.com\/kb\/wp-content\/uploads\/2024\/08\/Universal-Promo.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@SiperbDotCom","twitter_misc":{"Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/","url":"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/","name":"What is SIP (Session Initiation Protocol)? - SIPERB WebRTC Softphone","isPartOf":{"@id":"https:\/\/www.siperb.com\/kb\/#website"},"datePublished":"2024-10-18T08:32:40+00:00","dateModified":"2026-03-26T11:44:40+00:00","description":"Session Initiation Protocol (SIP) is a signaling protocol used for initiating, maintaining, and terminating real-time sessions that involve voice, video, messaging, and other communications applications and services between two or more endpoints on IP networks.","breadcrumb":{"@id":"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.siperb.com\/kb\/article\/sip-session-description-protocol\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.siperb.com\/kb\/"},{"@type":"ListItem","position":2,"name":"What is SIP (Session Initiation Protocol)?"}]},{"@type":"WebSite","@id":"https:\/\/www.siperb.com\/kb\/#website","url":"https:\/\/www.siperb.com\/kb\/","name":"SIPERB","description":"Softphone for Asterisk or FreeSWITCH","publisher":{"@id":"https:\/\/www.siperb.com\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.siperb.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.siperb.com\/kb\/#organization","name":"SIPERB","url":"https:\/\/www.siperb.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.siperb.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.siperb.com\/kb\/wp-content\/uploads\/2024\/08\/cropped-playstore-1.png","contentUrl":"https:\/\/www.siperb.com\/kb\/wp-content\/uploads\/2024\/08\/cropped-playstore-1.png","width":512,"height":512,"caption":"SIPERB"},"image":{"@id":"https:\/\/www.siperb.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/people\/Siperb\/61559214233611\/","https:\/\/x.com\/SiperbDotCom","https:\/\/linkedin.com\/company\/siperb\/","https:\/\/youtube.com\/@Siperb"]}]}},"_links":{"self":[{"href":"https:\/\/www.siperb.com\/kb\/wp-json\/wp\/v2\/ht-kb\/279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.siperb.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.siperb.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.siperb.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.siperb.com\/kb\/wp-json\/wp\/v2\/comments?post=279"}],"version-history":[{"count":6,"href":"https:\/\/www.siperb.com\/kb\/wp-json\/wp\/v2\/ht-kb\/279\/revisions"}],"predecessor-version":[{"id":660,"href":"https:\/\/www.siperb.com\/kb\/wp-json\/wp\/v2\/ht-kb\/279\/revisions\/660"}],"wp:attachment":[{"href":"https:\/\/www.siperb.com\/kb\/wp-json\/wp\/v2\/media?parent=279"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.siperb.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=279"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.siperb.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}