Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions bandwidth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4568,6 +4568,8 @@ components:
$ref: '#/components/schemas/tag1'
machineDetectionResult:
$ref: '#/components/schemas/machineDetectionResult'
sipCallId:
$ref: '#/components/schemas/sipCallId'
bridgeCompleteCallback:
type: object
description: >-
Expand Down Expand Up @@ -4832,6 +4834,10 @@ components:
$ref: '#/components/schemas/errorId'
tag:
$ref: '#/components/schemas/tag1'
sipCallId:
$ref: '#/components/schemas/sipCallId'
sipResponseCode:
$ref: '#/components/schemas/sipResponseCode'
dtmfCallback:
type: object
description: >-
Expand Down Expand Up @@ -4948,6 +4954,10 @@ components:
$ref: '#/components/schemas/stirShaken'
uui:
$ref: '#/components/schemas/uui'
sipCallId:
$ref: '#/components/schemas/sipCallId'
sipHeaders:
$ref: '#/components/schemas/sipHeaders'
machineDetectionCompleteCallback:
type: object
description: >-
Expand Down Expand Up @@ -5595,6 +5605,36 @@ components:
value, including the encoding specifier, may not exceed 256 characters.
example: bXktdXVp
maxLength: 256
sipCallId:
type: string
description: >-
(optional) The SIP Call-ID of the call's current SIP dialog with
Bandwidth's SBC. Used to correlate dialogs and trace calls. Present on
any call, inbound or outbound, once that dialog has been established;
may be absent very early in a call before the dialog exists.
example: c95ac8d6e1a31c52eb38f419893c151633ec68f8d@sbc.bandwidth.com
sipHeaders:
type: object
additionalProperties:
type: string
description: >-
(optional) Map of customer-supplied X-* headers from the original
INVITE. Keys are lowercase (SIP headers are case-insensitive). Present
only for inbound SIP URI calls with custom headers. Note - keys preserve
the original SIP header name in lowercase rather than Bandwidth's usual
camelCase JSON convention, since these are passthrough values from the
caller's SIP INVITE, not Bandwidth-defined fields. If the same header
name is sent more than once in the INVITE, only the last value is kept.
example:
x-custom-header: customer-value
x-session-id: sess-12345
sipResponseCode:
type: integer
description: >-
(optional) The SIP status code returned by Bandwidth's SBC when it
rejected an outbound call's INVITE (e.g. 486 for busy, 603 for decline).
Present only when an outbound call was rejected by the SBC.
example: 486
codeRequest:
type: object
properties:
Expand Down
4 changes: 3 additions & 1 deletion docs/AnswerCallback.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
| **answer_time** | **Time** | Time the call was answered, in ISO 8601 format. | [optional] |
| **tag** | **String** | (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. | [optional] |
| **machine_detection_result** | [**MachineDetectionResult**](MachineDetectionResult.md) | | [optional] |
| **sip_call_id** | **String** | (optional) The SIP Call-ID of the call's current SIP dialog with Bandwidth's SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists. | [optional] |

## Example

Expand All @@ -38,7 +39,8 @@ instance = Bandwidth::AnswerCallback.new(
start_time: 2022-06-17T22:19:40.375Z,
answer_time: 2022-06-17T22:20Z,
tag: exampleTag,
machine_detection_result: null
machine_detection_result: null,
sip_call_id: c95ac8d6e1a31c52eb38f419893c151633ec68f8d@sbc.bandwidth.com
)
```

6 changes: 5 additions & 1 deletion docs/DisconnectCallback.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
| **error_message** | **String** | Text explaining the reason that caused the call to fail in case of errors. | [optional] |
| **error_id** | **String** | Bandwidth's internal id that references the error event. | [optional] |
| **tag** | **String** | (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. | [optional] |
| **sip_call_id** | **String** | (optional) The SIP Call-ID of the call's current SIP dialog with Bandwidth's SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists. | [optional] |
| **sip_response_code** | **Integer** | (optional) The SIP status code returned by Bandwidth's SBC when it rejected an outbound call's INVITE (e.g. 486 for busy, 603 for decline). Present only when an outbound call was rejected by the SBC. | [optional] |

## Example

Expand All @@ -44,7 +46,9 @@ instance = Bandwidth::DisconnectCallback.new(
cause: busy,
error_message: Call c-2a913f94-6a486f3a-3cae-4034-bcc3-f0c9fa77ca2f is already bridged with another call,
error_id: 4642074b-7b58-478b-96e4-3a60955c6765,
tag: exampleTag
tag: exampleTag,
sip_call_id: c95ac8d6e1a31c52eb38f419893c151633ec68f8d@sbc.bandwidth.com,
sip_response_code: 486
)
```

6 changes: 5 additions & 1 deletion docs/InitiateCallback.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
| **diversion** | [**Diversion**](Diversion.md) | | [optional] |
| **stir_shaken** | [**StirShaken**](StirShaken.md) | | [optional] |
| **uui** | **String** | The value of the `User-To-User` header to send within the initial `INVITE`. Must include the encoding parameter as specified in RFC 7433. Only `base64`, `jwt` and `hex` encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters. | [optional] |
| **sip_call_id** | **String** | (optional) The SIP Call-ID of the call's current SIP dialog with Bandwidth's SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists. | [optional] |
| **sip_headers** | **Hash<String, String>** | (optional) Map of customer-supplied X-* headers from the original INVITE. Keys are lowercase (SIP headers are case-insensitive). Present only for inbound SIP URI calls with custom headers. Note - keys preserve the original SIP header name in lowercase rather than Bandwidth's usual camelCase JSON convention, since these are passthrough values from the caller's SIP INVITE, not Bandwidth-defined fields. If the same header name is sent more than once in the INVITE, only the last value is kept. | [optional] |

## Example

Expand All @@ -36,7 +38,9 @@ instance = Bandwidth::InitiateCallback.new(
start_time: 2022-06-17T22:19:40.375Z,
diversion: null,
stir_shaken: null,
uui: bXktdXVp
uui: bXktdXVp,
sip_call_id: c95ac8d6e1a31c52eb38f419893c151633ec68f8d@sbc.bandwidth.com,
sip_headers: {"x-custom-header":"customer-value","x-session-id":"sess-12345"}
)
```

2 changes: 1 addition & 1 deletion docs/RbmActionBase.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require 'bandwidth-sdk'
instance = Bandwidth::RbmActionBase.new(
type: null,
text: Hello world,
postback_data: [B@5b3c11ce
postback_data: [B@3dabdd11
)
```

2 changes: 1 addition & 1 deletion docs/RbmSuggestionResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require 'bandwidth-sdk'

instance = Bandwidth::RbmSuggestionResponse.new(
text: Yes, I would like to proceed,
postback_data: [B@5b3c11ce,
postback_data: [B@3dabdd11,
paired_message_id: 1752697342534u24xerqdukke523x
)
```
Expand Down
20 changes: 15 additions & 5 deletions lib/bandwidth-sdk/models/answer_callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ class AnswerCallback < ApiModelBase

attr_accessor :machine_detection_result

# (optional) The SIP Call-ID of the call's current SIP dialog with Bandwidth's SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists.
attr_accessor :sip_call_id

class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
Expand Down Expand Up @@ -94,7 +97,8 @@ def self.attribute_map
:'start_time' => :'startTime',
:'answer_time' => :'answerTime',
:'tag' => :'tag',
:'machine_detection_result' => :'machineDetectionResult'
:'machine_detection_result' => :'machineDetectionResult',
:'sip_call_id' => :'sipCallId'
}
end

Expand Down Expand Up @@ -124,7 +128,8 @@ def self.openapi_types
:'start_time' => :'Time',
:'answer_time' => :'Time',
:'tag' => :'String',
:'machine_detection_result' => :'MachineDetectionResult'
:'machine_detection_result' => :'MachineDetectionResult',
:'sip_call_id' => :'String'
}
end

Expand All @@ -134,7 +139,7 @@ def self.openapi_nullable
:'enqueued_time',
:'answer_time',
:'tag',
:'machine_detection_result'
:'machine_detection_result',
])
end

Expand Down Expand Up @@ -209,6 +214,10 @@ def initialize(attributes = {})
if attributes.key?(:'machine_detection_result')
self.machine_detection_result = attributes[:'machine_detection_result']
end

if attributes.key?(:'sip_call_id')
self.sip_call_id = attributes[:'sip_call_id']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -244,7 +253,8 @@ def ==(o)
start_time == o.start_time &&
answer_time == o.answer_time &&
tag == o.tag &&
machine_detection_result == o.machine_detection_result
machine_detection_result == o.machine_detection_result &&
sip_call_id == o.sip_call_id
end

# @see the `==` method
Expand All @@ -256,7 +266,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[event_type, event_time, account_id, application_id, from, to, direction, call_id, call_url, enqueued_time, start_time, answer_time, tag, machine_detection_result].hash
[event_type, event_time, account_id, application_id, from, to, direction, call_id, call_url, enqueued_time, start_time, answer_time, tag, machine_detection_result, sip_call_id].hash
end

# Builds the object from hash
Expand Down
30 changes: 25 additions & 5 deletions lib/bandwidth-sdk/models/disconnect_callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ class DisconnectCallback < ApiModelBase
# (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present.
attr_accessor :tag

# (optional) The SIP Call-ID of the call's current SIP dialog with Bandwidth's SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists.
attr_accessor :sip_call_id

# (optional) The SIP status code returned by Bandwidth's SBC when it rejected an outbound call's INVITE (e.g. 486 for busy, 603 for decline). Present only when an outbound call was rejected by the SBC.
attr_accessor :sip_response_code

class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
Expand Down Expand Up @@ -107,7 +113,9 @@ def self.attribute_map
:'cause' => :'cause',
:'error_message' => :'errorMessage',
:'error_id' => :'errorId',
:'tag' => :'tag'
:'tag' => :'tag',
:'sip_call_id' => :'sipCallId',
:'sip_response_code' => :'sipResponseCode'
}
end

Expand Down Expand Up @@ -140,7 +148,9 @@ def self.openapi_types
:'cause' => :'String',
:'error_message' => :'String',
:'error_id' => :'String',
:'tag' => :'String'
:'tag' => :'String',
:'sip_call_id' => :'String',
:'sip_response_code' => :'Integer'
}
end

Expand All @@ -151,7 +161,7 @@ def self.openapi_nullable
:'answer_time',
:'error_message',
:'error_id',
:'tag'
:'tag',
])
end

Expand Down Expand Up @@ -238,6 +248,14 @@ def initialize(attributes = {})
if attributes.key?(:'tag')
self.tag = attributes[:'tag']
end

if attributes.key?(:'sip_call_id')
self.sip_call_id = attributes[:'sip_call_id']
end

if attributes.key?(:'sip_response_code')
self.sip_response_code = attributes[:'sip_response_code']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -276,7 +294,9 @@ def ==(o)
cause == o.cause &&
error_message == o.error_message &&
error_id == o.error_id &&
tag == o.tag
tag == o.tag &&
sip_call_id == o.sip_call_id &&
sip_response_code == o.sip_response_code
end

# @see the `==` method
Expand All @@ -288,7 +308,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[event_type, event_time, account_id, application_id, from, to, call_id, direction, call_url, enqueued_time, start_time, answer_time, end_time, cause, error_message, error_id, tag].hash
[event_type, event_time, account_id, application_id, from, to, call_id, direction, call_url, enqueued_time, start_time, answer_time, end_time, cause, error_message, error_id, tag, sip_call_id, sip_response_code].hash
end

# Builds the object from hash
Expand Down
30 changes: 26 additions & 4 deletions lib/bandwidth-sdk/models/initiate_callback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ class InitiateCallback < ApiModelBase
# The value of the `User-To-User` header to send within the initial `INVITE`. Must include the encoding parameter as specified in RFC 7433. Only `base64`, `jwt` and `hex` encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters.
attr_accessor :uui

# (optional) The SIP Call-ID of the call's current SIP dialog with Bandwidth's SBC. Used to correlate dialogs and trace calls. Present on any call, inbound or outbound, once that dialog has been established; may be absent very early in a call before the dialog exists.
attr_accessor :sip_call_id

# (optional) Map of customer-supplied X-* headers from the original INVITE. Keys are lowercase (SIP headers are case-insensitive). Present only for inbound SIP URI calls with custom headers. Note - keys preserve the original SIP header name in lowercase rather than Bandwidth's usual camelCase JSON convention, since these are passthrough values from the caller's SIP INVITE, not Bandwidth-defined fields. If the same header name is sent more than once in the INVITE, only the last value is kept.
attr_accessor :sip_headers

class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
Expand Down Expand Up @@ -89,7 +95,9 @@ def self.attribute_map
:'start_time' => :'startTime',
:'diversion' => :'diversion',
:'stir_shaken' => :'stirShaken',
:'uui' => :'uui'
:'uui' => :'uui',
:'sip_call_id' => :'sipCallId',
:'sip_headers' => :'sipHeaders'
}
end

Expand Down Expand Up @@ -118,7 +126,9 @@ def self.openapi_types
:'start_time' => :'Time',
:'diversion' => :'Diversion',
:'stir_shaken' => :'StirShaken',
:'uui' => :'String'
:'uui' => :'String',
:'sip_call_id' => :'String',
:'sip_headers' => :'Hash<String, String>'
}
end

Expand Down Expand Up @@ -195,6 +205,16 @@ def initialize(attributes = {})
if attributes.key?(:'uui')
self.uui = attributes[:'uui']
end

if attributes.key?(:'sip_call_id')
self.sip_call_id = attributes[:'sip_call_id']
end

if attributes.key?(:'sip_headers')
if (value = attributes[:'sip_headers']).is_a?(Hash)
self.sip_headers = value
end
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -248,7 +268,9 @@ def ==(o)
start_time == o.start_time &&
diversion == o.diversion &&
stir_shaken == o.stir_shaken &&
uui == o.uui
uui == o.uui &&
sip_call_id == o.sip_call_id &&
sip_headers == o.sip_headers
end

# @see the `==` method
Expand All @@ -260,7 +282,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[event_type, event_time, account_id, application_id, from, to, direction, call_id, call_url, start_time, diversion, stir_shaken, uui].hash
[event_type, event_time, account_id, application_id, from, to, direction, call_id, call_url, start_time, diversion, stir_shaken, uui, sip_call_id, sip_headers].hash
end

# Builds the object from hash
Expand Down
Loading