Skip to content

Commit 0635b62

Browse files
committed
update voice values
1 parent 1ada40e commit 0635b62

File tree

8 files changed

+17
-6
lines changed

8 files changed

+17
-6
lines changed

pants.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[GLOBAL]
2-
pants_version = '2.23.0'
2+
pants_version = '2.24.2'
33

44
backend_packages = [
55
'pants.backend.python',
@@ -21,7 +21,7 @@ enabled = false
2121
root_patterns = ['/', 'src/', 'tests/']
2222

2323
[python]
24-
interpreter_constraints = ['==3.12.*']
24+
interpreter_constraints = ['==3.13.*']
2525

2626
[pytest]
2727
args = ['-vv', '--no-header']

voice/CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.4.0
2+
- Increase maximum value of call `length_timer` to 86400s
3+
- Add additional fields `eventUrl` and `eventMethod` to NCCO model
4+
15
# 1.3.0
26
- Add new `headers` and `standard_headers` options to the `Sip` data model
37
- Add new `standardHeaders` option to the `SipEndpoint` NCCO model

voice/src/vonage_voice/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.3.0'
1+
__version__ = '1.4.0'

voice/src/vonage_voice/models/ncco.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ class Conversation(NccoAction):
8888
hear. If not provided, the participant can hear everyone. If an empty list
8989
is provided, the participant will not hear any other participants.
9090
mute (Optional[bool]): Mute the participant.
91+
eventUrl (Optional[list[str]]): The URL to send asynchronous events to.
92+
eventMethod (Optional[str]): The HTTP method used to send the event to `eventUrl`.
9193
9294
Raises:
9395
NccoActionError: If the `mute` option is used with the `canSpeak` option.
@@ -101,6 +103,8 @@ class Conversation(NccoAction):
101103
canSpeak: Optional[list[str]] = None
102104
canHear: Optional[list[str]] = None
103105
mute: Optional[bool] = None
106+
eventUrl: Optional[list] = None
107+
eventMethod: Optional[str] = None
104108
action: NccoActionType = NccoActionType.CONVERSATION
105109

106110
@model_validator(mode='after')

voice/src/vonage_voice/models/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class CreateCallRequest(BaseModel):
6565
event_method: Optional[Literal['POST', 'GET']] = None
6666
machine_detection: Optional[Literal['continue', 'hangup']] = None
6767
advanced_machine_detection: Optional[AdvancedMachineDetection] = None
68-
length_timer: Optional[int] = Field(None, ge=1, le=7200)
68+
length_timer: Optional[int] = Field(None, ge=1, le=86400)
6969
ringing_timer: Optional[int] = Field(None, ge=1, le=120)
7070

7171
@model_validator(mode='after')

vonage/CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 4.4.1
2+
- Update some Voice API parameters
3+
14
# 4.4.0
25
Vonage Voice Package:
36
- Add new `headers` and `standard_headers` options to the `Sip` data model

vonage/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies = [
2121
"vonage-verify>=2.1.0",
2222
"vonage-verify-legacy>=1.0.1",
2323
"vonage-video>=1.2.0",
24-
"vonage-voice>=1.3.0",
24+
"vonage-voice>=1.4.0",
2525
]
2626
classifiers = [
2727
"Programming Language :: Python",

vonage/src/vonage/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '4.4.0'
1+
__version__ = '4.4.1'

0 commit comments

Comments
 (0)