Skip to content

REST Resource: projects.calls.sipInfo

Resource: SipInfo

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

JSON representation
{
  "name": string,
  "startTime": string (Timestamp),
  "endTime": string (Timestamp),
  "messages": [
    {
      object (SipMessage)
    }
  ],
  "sipCallId": string,
  "pcap": string (bytes)
}
Fields  
name string
Resource name of the sip_info. It is of the form projects/*/calls/*/sipInfo
startTime string (Timestamp format)
The time that the SIP dialog started.
endTime string (Timestamp format)
The time that the SIP dialog ended.
messages[] object (SipMessage)
The messages, in chronological order, that form the SIP dialog.
sipCallId string
The Call-ID of the SIP call.
pcap string (bytes format)
The PCAP file data.

SipMessage

A SIP message that is part of a dialog.

JSON representation
{
  "offsetDuration": string (Duration),
  "sourceIp": string,
  "sourcePort": number (int32),
  "destinationIp": string,
  "destinationPort": number (int32),
  "method": string,
  "requestLine": string,
  "data": string
}
Fields  
offsetDuration string (Duration format)
The offset relative to the start_time that this message was sent/received.
sourceIp string
The source IP where the message originated.
sourcePort number (int32 format)
The source port where the message originated.
destinationIp string
The destination IP where the message was sent.
destinationPort number (int32 format)
The destination port where the message was sent.
method string
The method or response code. For example, "INVITE" or "100".
requestLine string
The full request line. For example, "100 Trying".
data string
The entire contents of the SIP packet, including the request line, headers and body.

Methods

Methods  
get GET /v1beta1/{name}
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.

The caller must have voice.calls.get permission on the project.