# REST Resource: projects.calls.sipInfo

## Resource: SipInfo

The SipInfo resource. This represents information about a SIP call.

<div class="highlight"><span class="filename">JSON representation</span><pre><code><span class="p">{</span>
  <span class="s2">&quot;name&quot;</span><span class="p">: </span><span class="kd">string</span><span class="p">,</span>
  <span class="s2">&quot;startTime&quot;</span><span class="p">: </span><span class="kd">string (</span><a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank"><strong><span class="kd">Timestamp</span></strong></a><span class="kd">)</span><span class="p">,</span>
  <span class="s2">&quot;endTime&quot;</span><span class="p">: </span><span class="kd">string (</span><a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank"><strong><span class="kd">Timestamp</span></strong></a><span class="kd">)</span><span class="p">,</span>
  <span class="s2">&quot;messages&quot;</span><span class="p">: </span><span class="p">[</span>
    <span class="p">{</span>
      <span class="kd">object (</span><a href="#sipmessage"><strong><span class="kd">SipMessage</span></strong></a><span class="kd">)</span>
    <span class="p">}</span>
  <span class="p">]</span><span class="p">,</span>
  <span class="s2">&quot;sipCallId&quot;</span><span class="p">: </span><span class="kd">string</span><span class="p">,</span>
  <span class="s2">&quot;pcap&quot;</span><span class="p">: </span><span class="kd">string (</span><a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank"><strong><span class="kd">bytes</span></strong></a><span class="kd">)</span>
<span class="p">}</span></code></pre></div>

Fields | &nbsp;
--|--
<span class="e-code">name</span> | <span class="e-code">string</span><br/>Resource name of the sip_info. It is of the form `projects/*/calls/*/sipInfo`
<span class="e-code">startTime</span> | <span class="e-code">string (<a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank">Timestamp</a> format)</span><br/>The time that the SIP dialog started.
<span class="e-code">endTime</span> | <span class="e-code">string (<a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank">Timestamp</a> format)</span><br/>The time that the SIP dialog ended.
<span class="e-code">messages[]</span> | <span class="e-code">object ([SipMessage](#sipmessage))</span><br/>The messages, in chronological order, that form the SIP dialog.
<span class="e-code">sipCallId</span> | <span class="e-code">string</span><br/>The `Call-ID` of the SIP call.
<span class="e-code">pcap</span> | <span class="e-code">string (<a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank">bytes</a> format)</span><br/>The PCAP file data.

## SipMessage

A SIP message that is part of a dialog.

<div class="highlight"><span class="filename">JSON representation</span><pre><code><span class="p">{</span>
  <span class="s2">&quot;offsetDuration&quot;</span><span class="p">: </span><span class="kd">string (</span><a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank"><strong><span class="kd">Duration</span></strong></a><span class="kd">)</span><span class="p">,</span>
  <span class="s2">&quot;sourceIp&quot;</span><span class="p">: </span><span class="kd">string</span><span class="p">,</span>
  <span class="s2">&quot;sourcePort&quot;</span><span class="p">: </span><span class="kd">number (</span><a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank"><strong><span class="kd">int32</span></strong></a><span class="kd">)</span><span class="p">,</span>
  <span class="s2">&quot;destinationIp&quot;</span><span class="p">: </span><span class="kd">string</span><span class="p">,</span>
  <span class="s2">&quot;destinationPort&quot;</span><span class="p">: </span><span class="kd">number (</span><a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank"><strong><span class="kd">int32</span></strong></a><span class="kd">)</span><span class="p">,</span>
  <span class="s2">&quot;method&quot;</span><span class="p">: </span><span class="kd">string</span><span class="p">,</span>
  <span class="s2">&quot;requestLine&quot;</span><span class="p">: </span><span class="kd">string</span><span class="p">,</span>
  <span class="s2">&quot;data&quot;</span><span class="p">: </span><span class="kd">string</span>
<span class="p">}</span></code></pre></div>

Fields | &nbsp;
--|--
<span class="e-code">offsetDuration</span> | <span class="e-code">string (<a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank">Duration</a> format)</span><br/>The offset relative to the start_time that this message was sent/received.
<span class="e-code">sourceIp</span> | <span class="e-code">string</span><br/>The source IP where the message originated.
<span class="e-code">sourcePort</span> | <span class="e-code">number (<a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank">int32</a> format)</span><br/>The source port where the message originated.
<span class="e-code">destinationIp</span> | <span class="e-code">string</span><br/>The destination IP where the message was sent.
<span class="e-code">destinationPort</span> | <span class="e-code">number (<a href="https://developers.google.com/protocol-buffers/docs/proto3#json" target="_blank">int32</a> format)</span><br/>The destination port where the message was sent.
<span class="e-code">method</span> | <span class="e-code">string</span><br/>The method or response code. For example, "INVITE" or "100".
<span class="e-code">requestLine</span> | <span class="e-code">string</span><br/>The full request line. For example, "100 Trying".
<span class="e-code">data</span> | <span class="e-code">string</span><br/>The entire contents of the SIP packet, including the request line, headers and body.

## Methods

Methods | &nbsp;
--|--
<span class="e-code">[get](/docs/cloud-voice/api-reference/rest/v1beta1/projects.calls.sipInfo/get/)</span> | <span class="e-code">GET /v1beta1/{name}</span><br/>Retrieves SIP information about the specified SIP call. If the call is not a SIP call, throws NOT_FOUND. If the call has not yet completed, throws FAILED_PRECONDITION. If the SIP call was created greater than 30 days ago, returns NOT_FOUND.<br/><br/>The caller must have `voice.calls.get` permission on the project.

