# Service enfonica.voice.v1beta1.SipInfoService

## Methods

| GetSipInfo |
| -- |
| <span class="e-code">rpc GetSipInfo(<span class="e-code">[GetSipInfoRequest](#getsipinforequest)</span>) returns (<span class="e-code">[SipInfo](#resource-sipinfo)</span>)</span><br/><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. |

## Resource: SipInfo

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

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">start_time</span> | <span class="e-code"><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp" target="_blank">google.protobuf.Timestamp</a></span><br/>The time that the SIP dialog started.
<span class="e-code">end_time</span> | <span class="e-code"><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#timestamp" target="_blank">google.protobuf.Timestamp</a></span><br/>The time that the SIP dialog ended.
<span class="e-code">messages[]</span> | <span class="e-code">[SipMessage](#sipmessage)</span><br/>The messages, in chronological order, that form the SIP dialog.
<span class="e-code">sip_call_id</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">bytes</span><br/>The PCAP file data.

## SipMessage

A SIP message that is part of a dialog.

Fields | &nbsp;
--|--
<span class="e-code">offset_duration</span> | <span class="e-code"><a href="https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration" target="_blank">google.protobuf.Duration</a></span><br/>The offset relative to the start_time that this message was sent/received.
<span class="e-code">source_ip</span> | <span class="e-code">string</span><br/>The source IP where the message originated.
<span class="e-code">source_port</span> | <span class="e-code">int32</span><br/>The source port where the message originated.
<span class="e-code">destination_ip</span> | <span class="e-code">string</span><br/>The destination IP where the message was sent.
<span class="e-code">destination_port</span> | <span class="e-code">int32</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">request_line</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.

## GetSipInfoRequest

The GetSipInfo request message.

Fields | &nbsp;
--|--
<span class="e-code">name</span> | <span class="e-code">string</span><br/>Required. The resource name of the SipInfo to retrieve. Must be of the form `projects/*/calls/*/sipInfo`.

