You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f9f3f76
Browse filesBrowse the repository at this point in the historyBrowse files
feat(api): add SIP DTMF commands and delivery events (#4208)
## Summary
Adds typed SIP sideband keypress commands and delivery confirmations
while preserving legacy notification types.
## Changes
- Send SIP keypresses with transport.dtmf.send and optional event
correlation.
- Receive transport.dtmf.sent confirmations while retaining existing
transport.dtmf.send notification types.
The `transport.dtmf.send` command is available for SIP sideband
connections. Successful sends produce `transport.dtmf.sent`
acknowledgements. Legacy SDK notification types and historical event
decoding remain available, while the server acknowledgement now uses
`transport.dtmf.sent`.
description: Legacy SIP DTMF delivery notification retained for SDK compatibility and saved events. Current servers confirm delivery with transport.dtmf.sent; transport.dtmf.send is now the client command.
79118
+
example:
79119
+
type: transport.dtmf.send
79120
+
event_id: event_dtmf_2
79121
+
event: '#'
79122
+
type: object
79123
+
properties:
79124
+
type:
79125
+
default: transport.dtmf.send
79126
+
x-stainless-const: true
79127
+
type: string
79128
+
enum:
79129
+
- transport.dtmf.send
79130
+
event_id:
79131
+
type: string
79132
+
event:
79133
+
type: string
79134
+
minLength: 1
79135
+
maxLength: 1
79136
+
pattern: ^[0-9A-D*#]$
79137
+
client_event_id:
79138
+
description: The event_id of the client command, when supplied.
79139
+
type: string
79140
+
x-stainless-skip:
79141
+
- cli
79142
+
required:
79143
+
- type
79144
+
- event_id
79145
+
- event
79146
+
x-oaiMeta:
79147
+
example:
79148
+
type: transport.dtmf.send
79149
+
event_id: event_dtmf_2
79150
+
event: '#'
79114
79151
LegacyComputerAction:
79115
79152
discriminator:
79116
79153
propertyName: type
@@ -79124,42 +79161,6 @@ components:
79124
79161
- $ref: '#/components/schemas/ScrollParam'
79125
79162
- $ref: '#/components/schemas/TypeParam'
79126
79163
- $ref: '#/components/schemas/WaitParam'
79127
-
CodeInterpreterContainerAuto:
79128
-
properties:
79129
-
type:
79130
-
type: string
79131
-
enum:
79132
-
- auto
79133
-
description: Always `auto`.
79134
-
default: auto
79135
-
x-stainless-const: true
79136
-
file_ids:
79137
-
items:
79138
-
type: string
79139
-
example: file-123
79140
-
type: array
79141
-
maxItems: 50
79142
-
description: An optional list of uploaded files to make available to your code.
description: Send one DTMF keypress to the SIP trunk through a Live sideband connection. This command is supported only for SIP calls. A successful send emits `transport.dtmf.sent` on sideband. If you provide `event_id`, the success notification includes it as `client_event_id`; a failure includes it as `error.client_event_id`. Send separate events for multiple keypresses.
110999
+
example:
111000
+
type: transport.dtmf.send
111001
+
event_id: evt_dtmf_001
111002
+
event: '#'
111003
+
type: object
111004
+
properties:
111005
+
event_id:
111006
+
anyOf:
111007
+
- description: Optional client identifier for correlating this command with a server event's client_event_id or error.client_event_id.
111008
+
type: string
111009
+
maxLength: 512
111010
+
- type: 'null'
111011
+
type:
111012
+
default: transport.dtmf.send
111013
+
x-stainless-const: true
111014
+
type: string
111015
+
enum:
111016
+
- transport.dtmf.send
111017
+
event:
111018
+
description: 'The DTMF key to send: one of `0`–`9`, `A`–`D`, `*`, or `#`.'
111019
+
type: string
111020
+
minLength: 1
111021
+
maxLength: 1
111022
+
pattern: ^[0-9A-D*#]$
111023
+
required:
111024
+
- type
111025
+
- event
111026
+
x-oaiMeta:
111027
+
example:
111028
+
type: transport.dtmf.send
111029
+
event_id: evt_dtmf_001
111030
+
event: '#'
111031
+
LiveTransportDTMFSent:
111032
+
description: A SIP DTMF keypress successfully sent to the SIP trunk. Delivered only to sideband observers; this is not a client command.
111033
+
example:
111034
+
type: transport.dtmf.sent
111035
+
event_id: event_dtmf_2
111036
+
event: '#'
111037
+
type: object
111038
+
properties:
111039
+
type:
111040
+
default: transport.dtmf.sent
111041
+
x-stainless-const: true
111042
+
type: string
111043
+
enum:
111044
+
- transport.dtmf.sent
111045
+
event_id:
111046
+
type: string
111047
+
event:
111048
+
type: string
111049
+
minLength: 1
111050
+
maxLength: 1
111051
+
pattern: ^[0-9A-D*#]$
111052
+
client_event_id:
111053
+
description: The event_id of the client command, when supplied.
111054
+
type: string
111055
+
required:
111056
+
- type
111057
+
- event_id
111058
+
- event
111059
+
x-oaiMeta:
111060
+
example:
111061
+
type: transport.dtmf.sent
111062
+
event_id: event_dtmf_2
111063
+
event: '#'
111030
111064
SessionSpendControlResource:
111031
111065
type: object
111032
111066
properties:
@@ -111813,6 +111847,42 @@ components:
111813
111847
- completed
111814
111848
- incomplete
111815
111849
- expired
111850
+
CodeInterpreterContainerAuto:
111851
+
properties:
111852
+
type:
111853
+
type: string
111854
+
enum:
111855
+
- auto
111856
+
description: Always `auto`.
111857
+
default: auto
111858
+
x-stainless-const: true
111859
+
file_ids:
111860
+
items:
111861
+
type: string
111862
+
example: file-123
111863
+
type: array
111864
+
maxItems: 50
111865
+
description: An optional list of uploaded files to make available to your code.
0 commit comments