Skip to content

Commit 4d2d4b5

Browse files
committed
Merge remote-tracking branch 'origin/VAPI-3164' into VAPI-3164
2 parents 0b07ad1 + c3abe37 commit 4d2d4b5

16 files changed

Lines changed: 398 additions & 26 deletions

.bandwidth/component.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ metadata:
66
description: Bandwidth Java SDK
77
annotations:
88
github.com/project-slug: Bandwidth/java-sdk
9+
bandwidth.com/languages: Java
910
organization: BW
1011
costCenter: Development - Software Infra
1112
spec:

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434

3535
steps:
3636
- name: Set Release Version
37-
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
37+
run: echo "RELEASE_VERSION=${TAG#v}" >> $GITHUB_ENV
38+
env:
39+
TAG: ${{ github.event.release.tag_name }}
3840

3941
- name: Checkout
4042
uses: actions/checkout@v6

api/openapi.yaml

Lines changed: 99 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6498,6 +6498,8 @@ components:
64986498
examples:
64996499
messageSendingCallback:
65006500
$ref: "#/components/examples/messageSendingCallbackExample"
6501+
messageSentCallback:
6502+
$ref: "#/components/examples/messageSentCallbackExample"
65016503
smsMessageDeliveredCallback:
65026504
$ref: "#/components/examples/smsMessageDeliveredCallbackExample"
65036505
mmsMessageDeliveredCallback:
@@ -6511,7 +6513,7 @@ components:
65116513
description: |-
65126514
<p>This Outbound Message Webhook is an envelope containing status information regarding a message sent (MT)
65136515
from your message-enabled Bandwidth telephone number.
6514-
<p>The payload type will be one of <code>message-sending</code>, <code>message-delivered</code>, <code>message-failed</code> or <code>message-read</code>.
6516+
<p>The payload type will be one of <code>message-sending</code>, <code>message-sent</code>, <code>message-delivered</code>, <code>message-failed</code> or <code>message-read</code>.
65156517
<p>Note that <code>message-read</code> callbacks are pertinent only for RBM messages sent from the <code>/messages/multiChannel</code> endpoint.
65166518
</p><p>Please visit <a href='/docs/messaging/webhooks/'>Webhooks</a></p>
65176519
required: true
@@ -6691,12 +6693,33 @@ components:
66916693
media:
66926694
- https://dev.bandwidth.com/images/bandwidth-logo.png
66936695
tag: your tag here
6696+
messageSentCallbackExample:
6697+
summary: An example of a message-sent callback body.
6698+
value:
6699+
time: 2024-06-25T18:42:36.979456Z
6700+
type: message-sent
6701+
to: "+15554443333"
6702+
description: Message sent to carrier
6703+
message:
6704+
id: 1593110555875xo7watq5px6rbe5d
6705+
owner: "+15552221111"
6706+
applicationId: cfd4fb83-7531-4acc-b471-42d0bb76a65c
6707+
time: 2024-06-25T18:42:35.876906Z
6708+
segmentCount: 1
6709+
direction: out
6710+
to:
6711+
- "+15554443333"
6712+
from: "+15552221111"
6713+
text: ""
6714+
media:
6715+
- https://dev.bandwidth.com/images/bandwidth-logo.png
6716+
tag: v2 lab
66946717
smsMessageDeliveredCallbackExample:
66956718
summary: An example of a sms message-delivered callback body.
66966719
value:
66976720
type: message-delivered
66986721
time: 2024-09-14T18:20:11.160744Z
6699-
description: Message delivered to carrier.
6722+
description: Message delivered to handset.
67006723
to: "+12345678902"
67016724
message:
67026725
id: 14762070468292kw2fuqty55yp2b2
@@ -6714,7 +6737,7 @@ components:
67146737
value:
67156738
type: message-delivered
67166739
time: 2024-09-14T18:20:24.160544Z
6717-
description: Message delivered to carrier.
6740+
description: Message delivered to handset.
67186741
to: "+12345678902"
67196742
message:
67206743
id: 14762070468292kw2fuqty55yp2b2
@@ -6734,7 +6757,7 @@ components:
67346757
value:
67356758
type: message-delivered
67366759
time: 2024-09-14T18:20:17.160544Z
6737-
description: Message delivered to carrier.
6760+
description: Message delivered to handset.
67386761
to: "+12345678902"
67396762
message:
67406763
id: 14762070468292kw2fuqty55yp2b2
@@ -10704,7 +10727,7 @@ components:
1070410727
type: string
1070510728
description:
1070610729
description: A detailed description of the event described by the callback.
10707-
example: Message delivered to carrier.
10730+
example: Message delivered to handset.
1070810731
type: string
1070910732
message:
1071010733
$ref: "#/components/schemas/statusCallbackMessage"
@@ -10765,11 +10788,13 @@ components:
1076510788
description: |-
1076610789
The possible status callbacks when sending an MT SMS or MMS or RBM message:
1076710790
- `message-sending` indicates that Bandwidth is sending the message to the upstream provider.
10768-
- `message-delivered` indicates that the message was successfully sent.
10791+
- `message-sent` indicates that the message has left the Bandwidth network and is in transit to the provider.
10792+
- `message-delivered` indicates that the message was successfully delivered to handset.
1076910793
- `message-failed` indicates that the message could not be sent to the intended recipient.
1077010794
- `message-read` indicates that the RBM message was read by the recipient.
1077110795
enum:
1077210796
- message-sending
10797+
- message-sent
1077310798
- message-delivered
1077410799
- message-failed
1077510800
- message-read
@@ -12354,6 +12379,13 @@ components:
1235412379
type: string
1235512380
machineDetectionResult:
1235612381
$ref: "#/components/schemas/machineDetectionResult"
12382+
sipCallId:
12383+
description: "(optional) The SIP Call-ID of the call's current SIP dialog\
12384+
\ with Bandwidth's SBC. Used to correlate dialogs and trace calls. Present\
12385+
\ on any call, inbound or outbound, once that dialog has been established;\
12386+
\ may be absent very early in a call before the dialog exists."
12387+
example: c95ac8d6e1a31c52eb38f419893c151633ec68f8d@sbc.bandwidth.com
12388+
type: string
1235712389
type: object
1235812390
bridgeCompleteCallback:
1235912391
description: "If the target call leaves the <Bridge>, then this callback is\
@@ -12933,6 +12965,19 @@ components:
1293312965
example: exampleTag
1293412966
nullable: true
1293512967
type: string
12968+
sipCallId:
12969+
description: "(optional) The SIP Call-ID of the call's current SIP dialog\
12970+
\ with Bandwidth's SBC. Used to correlate dialogs and trace calls. Present\
12971+
\ on any call, inbound or outbound, once that dialog has been established;\
12972+
\ may be absent very early in a call before the dialog exists."
12973+
example: c95ac8d6e1a31c52eb38f419893c151633ec68f8d@sbc.bandwidth.com
12974+
type: string
12975+
sipResponseCode:
12976+
description: "(optional) The SIP status code returned by Bandwidth's SBC\
12977+
\ when it rejected an outbound call's INVITE (e.g. 486 for busy, 603 for\
12978+
\ decline). Present only when an outbound call was rejected by the SBC."
12979+
example: 486
12980+
type: integer
1293612981
type: object
1293712982
dtmfCallback:
1293812983
description: The DTMF event is sent for every digit detected after a <StartGather>
@@ -13197,6 +13242,27 @@ components:
1319713242
example: bXktdXVp
1319813243
maxLength: 256
1319913244
type: string
13245+
sipCallId:
13246+
description: "(optional) The SIP Call-ID of the call's current SIP dialog\
13247+
\ with Bandwidth's SBC. Used to correlate dialogs and trace calls. Present\
13248+
\ on any call, inbound or outbound, once that dialog has been established;\
13249+
\ may be absent very early in a call before the dialog exists."
13250+
example: c95ac8d6e1a31c52eb38f419893c151633ec68f8d@sbc.bandwidth.com
13251+
type: string
13252+
sipHeaders:
13253+
additionalProperties:
13254+
type: string
13255+
description: "(optional) Map of customer-supplied X-* headers from the original\
13256+
\ INVITE. Keys are lowercase (SIP headers are case-insensitive). Present\
13257+
\ only for inbound SIP URI calls with custom headers. Note - keys preserve\
13258+
\ the original SIP header name in lowercase rather than Bandwidth's usual\
13259+
\ camelCase JSON convention, since these are passthrough values from the\
13260+
\ caller's SIP INVITE, not Bandwidth-defined fields. If the same header\
13261+
\ name is sent more than once in the INVITE, only the last value is kept."
13262+
example:
13263+
x-custom-header: customer-value
13264+
x-session-id: sess-12345
13265+
type: object
1320013266
type: object
1320113267
machineDetectionCompleteCallback:
1320213268
description: "This event is sent to the url informed when requesting a machine\
@@ -14284,6 +14350,33 @@ components:
1428414350
example: bXktdXVp
1428514351
maxLength: 256
1428614352
type: string
14353+
sipCallId:
14354+
description: "(optional) The SIP Call-ID of the call's current SIP dialog with\
14355+
\ Bandwidth's SBC. Used to correlate dialogs and trace calls. Present on any\
14356+
\ call, inbound or outbound, once that dialog has been established; may be\
14357+
\ absent very early in a call before the dialog exists."
14358+
example: c95ac8d6e1a31c52eb38f419893c151633ec68f8d@sbc.bandwidth.com
14359+
type: string
14360+
sipHeaders:
14361+
additionalProperties:
14362+
type: string
14363+
description: "(optional) Map of customer-supplied X-* headers from the original\
14364+
\ INVITE. Keys are lowercase (SIP headers are case-insensitive). Present only\
14365+
\ for inbound SIP URI calls with custom headers. Note - keys preserve the\
14366+
\ original SIP header name in lowercase rather than Bandwidth's usual camelCase\
14367+
\ JSON convention, since these are passthrough values from the caller's SIP\
14368+
\ INVITE, not Bandwidth-defined fields. If the same header name is sent more\
14369+
\ than once in the INVITE, only the last value is kept."
14370+
example:
14371+
x-custom-header: customer-value
14372+
x-session-id: sess-12345
14373+
type: object
14374+
sipResponseCode:
14375+
description: "(optional) The SIP status code returned by Bandwidth's SBC when\
14376+
\ it rejected an outbound call's INVITE (e.g. 486 for busy, 603 for decline).\
14377+
\ Present only when an outbound call was rejected by the SBC."
14378+
example: 486
14379+
type: integer
1428714380
codeRequest:
1428814381
properties:
1428914382
to:

bandwidth.yml

Lines changed: 74 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2962,7 +2962,7 @@ components:
29622962
description:
29632963
type: string
29642964
description: A detailed description of the event described by the callback.
2965-
example: Message delivered to carrier.
2965+
example: Message delivered to handset.
29662966
message:
29672967
$ref: '#/components/schemas/statusCallbackMessage'
29682968
errorCode:
@@ -3018,7 +3018,11 @@ components:
30183018
- `message-sending` indicates that Bandwidth is sending the message to
30193019
the upstream provider.
30203020
3021-
- `message-delivered` indicates that the message was successfully sent.
3021+
- `message-sent` indicates that the message has left the Bandwidth
3022+
network and is in transit to the provider.
3023+
3024+
- `message-delivered` indicates that the message was successfully
3025+
delivered to handset.
30223026
30233027
- `message-failed` indicates that the message could not be sent to the
30243028
intended recipient.
@@ -3027,6 +3031,7 @@ components:
30273031
recipient.
30283032
enum:
30293033
- message-sending
3034+
- message-sent
30303035
- message-delivered
30313036
- message-failed
30323037
- message-read
@@ -4563,6 +4568,8 @@ components:
45634568
$ref: '#/components/schemas/tag1'
45644569
machineDetectionResult:
45654570
$ref: '#/components/schemas/machineDetectionResult'
4571+
sipCallId:
4572+
$ref: '#/components/schemas/sipCallId'
45664573
bridgeCompleteCallback:
45674574
type: object
45684575
description: >-
@@ -4827,6 +4834,10 @@ components:
48274834
$ref: '#/components/schemas/errorId'
48284835
tag:
48294836
$ref: '#/components/schemas/tag1'
4837+
sipCallId:
4838+
$ref: '#/components/schemas/sipCallId'
4839+
sipResponseCode:
4840+
$ref: '#/components/schemas/sipResponseCode'
48304841
dtmfCallback:
48314842
type: object
48324843
description: >-
@@ -4943,6 +4954,10 @@ components:
49434954
$ref: '#/components/schemas/stirShaken'
49444955
uui:
49454956
$ref: '#/components/schemas/uui'
4957+
sipCallId:
4958+
$ref: '#/components/schemas/sipCallId'
4959+
sipHeaders:
4960+
$ref: '#/components/schemas/sipHeaders'
49464961
machineDetectionCompleteCallback:
49474962
type: object
49484963
description: >-
@@ -5590,6 +5605,36 @@ components:
55905605
value, including the encoding specifier, may not exceed 256 characters.
55915606
example: bXktdXVp
55925607
maxLength: 256
5608+
sipCallId:
5609+
type: string
5610+
description: >-
5611+
(optional) The SIP Call-ID of the call's current SIP dialog with
5612+
Bandwidth's SBC. Used to correlate dialogs and trace calls. Present on
5613+
any call, inbound or outbound, once that dialog has been established;
5614+
may be absent very early in a call before the dialog exists.
5615+
example: c95ac8d6e1a31c52eb38f419893c151633ec68f8d@sbc.bandwidth.com
5616+
sipHeaders:
5617+
type: object
5618+
additionalProperties:
5619+
type: string
5620+
description: >-
5621+
(optional) Map of customer-supplied X-* headers from the original
5622+
INVITE. Keys are lowercase (SIP headers are case-insensitive). Present
5623+
only for inbound SIP URI calls with custom headers. Note - keys preserve
5624+
the original SIP header name in lowercase rather than Bandwidth's usual
5625+
camelCase JSON convention, since these are passthrough values from the
5626+
caller's SIP INVITE, not Bandwidth-defined fields. If the same header
5627+
name is sent more than once in the INVITE, only the last value is kept.
5628+
example:
5629+
x-custom-header: customer-value
5630+
x-session-id: sess-12345
5631+
sipResponseCode:
5632+
type: integer
5633+
description: >-
5634+
(optional) The SIP status code returned by Bandwidth's SBC when it
5635+
rejected an outbound call's INVITE (e.g. 486 for busy, 603 for decline).
5636+
Present only when an outbound call was rejected by the SBC.
5637+
example: 486
55935638
codeRequest:
55945639
type: object
55955640
properties:
@@ -8712,12 +8757,33 @@ components:
87128757
media:
87138758
- https://dev.bandwidth.com/images/bandwidth-logo.png
87148759
tag: your tag here
8760+
messageSentCallbackExample:
8761+
summary: An example of a message-sent callback body.
8762+
value:
8763+
time: '2024-06-25T18:42:36.979456Z'
8764+
type: message-sent
8765+
to: '+15554443333'
8766+
description: Message sent to carrier
8767+
message:
8768+
id: 1593110555875xo7watq5px6rbe5d
8769+
owner: '+15552221111'
8770+
applicationId: cfd4fb83-7531-4acc-b471-42d0bb76a65c
8771+
time: '2024-06-25T18:42:35.876906Z'
8772+
segmentCount: 1
8773+
direction: out
8774+
to:
8775+
- '+15554443333'
8776+
from: '+15552221111'
8777+
text: ''
8778+
media:
8779+
- https://dev.bandwidth.com/images/bandwidth-logo.png
8780+
tag: v2 lab
87158781
smsMessageDeliveredCallbackExample:
87168782
summary: An example of a sms message-delivered callback body.
87178783
value:
87188784
type: message-delivered
87198785
time: '2024-09-14T18:20:11.160744Z'
8720-
description: Message delivered to carrier.
8786+
description: Message delivered to handset.
87218787
to: '+12345678902'
87228788
message:
87238789
id: 14762070468292kw2fuqty55yp2b2
@@ -8735,7 +8801,7 @@ components:
87358801
value:
87368802
type: message-delivered
87378803
time: '2024-09-14T18:20:24.160544Z'
8738-
description: Message delivered to carrier.
8804+
description: Message delivered to handset.
87398805
to: '+12345678902'
87408806
message:
87418807
id: 14762070468292kw2fuqty55yp2b2
@@ -8755,7 +8821,7 @@ components:
87558821
value:
87568822
type: message-delivered
87578823
time: '2024-09-14T18:20:17.160544Z'
8758-
description: Message delivered to carrier.
8824+
description: Message delivered to handset.
87598825
to: '+12345678902'
87608826
message:
87618827
id: 14762070468292kw2fuqty55yp2b2
@@ -9787,7 +9853,7 @@ components:
97879853
information regarding a message sent (MT)
97889854
97899855
from your message-enabled Bandwidth telephone number.
9790-
<p>The payload type will be one of <code>message-sending</code>, <code>message-delivered</code>, <code>message-failed</code> or <code>message-read</code>.
9856+
<p>The payload type will be one of <code>message-sending</code>, <code>message-sent</code>, <code>message-delivered</code>, <code>message-failed</code> or <code>message-read</code>.
97919857
<p>Note that <code>message-read</code> callbacks are pertinent only for RBM messages sent from the <code>/messages/multiChannel</code> endpoint.
97929858
</p><p>Please visit <a
97939859
href='/docs/messaging/webhooks/'>Webhooks</a></p>
@@ -9798,6 +9864,8 @@ components:
97989864
examples:
97999865
messageSendingCallback:
98009866
$ref: '#/components/examples/messageSendingCallbackExample'
9867+
messageSentCallback:
9868+
$ref: '#/components/examples/messageSentCallbackExample'
98019869
smsMessageDeliveredCallback:
98029870
$ref: '#/components/examples/smsMessageDeliveredCallbackExample'
98039871
mmsMessageDeliveredCallback:

docs/AnswerCallback.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The Answer event is sent to the answerUrl specified in the createCall request wh
2222
|**answerTime** | **OffsetDateTime** | Time the call was answered, in ISO 8601 format. | [optional] |
2323
|**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] |
2424
|**machineDetectionResult** | [**MachineDetectionResult**](MachineDetectionResult.md) | | [optional] |
25+
|**sipCallId** | **String** | (optional) The SIP Call-ID of the call&#39;s current SIP dialog with Bandwidth&#39;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] |
2526

2627

2728

docs/DisconnectCallback.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ The Disconnect event is fired when a call ends, for any reason.
2525
|**errorMessage** | **String** | Text explaining the reason that caused the call to fail in case of errors. | [optional] |
2626
|**errorId** | **String** | Bandwidth&#39;s internal id that references the error event. | [optional] |
2727
|**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] |
28+
|**sipCallId** | **String** | (optional) The SIP Call-ID of the call&#39;s current SIP dialog with Bandwidth&#39;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] |
29+
|**sipResponseCode** | **Integer** | (optional) The SIP status code returned by Bandwidth&#39;s SBC when it rejected an outbound call&#39;s INVITE (e.g. 486 for busy, 603 for decline). Present only when an outbound call was rejected by the SBC. | [optional] |
2830

2931

3032

0 commit comments

Comments
 (0)