Skip to content

Commit 047fb06

Browse files
Merge pull request #195 from plivo/VT-4030
dialelement parameter added
2 parents 09a79dc + 7e58aee commit 047fb06

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## [4.23.0](https://github.com/plivo/plivo-python/tree/v4.23.0) (2022-03-18)
4+
**Feature - DialElement**
5+
- `confirmTimeout` parameter added to [The Dial element](https://www.plivo.com/docs/voice/xml/dial/)
6+
37
## [4.22.3](https://github.com/plivo/plivo-python/tree/v4.22.3) (2022-03-04)
48
**Bug fix - Application API (create/update)**
59
- For [create & update application API](https://www.plivo.com/docs/account/api/application#create-an-application) the parameter `answer url` is set to optional.

plivo/xml/DialElement.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,22 @@ def set_confirm_sound(self, value):
133133
self.confirm_sound = value
134134
return self
135135

136+
@property
137+
def confirm_timeout(self):
138+
return self.confirm_timeout
139+
140+
@confirm_timeout.setter
141+
def confirm_timeout(self, value):
142+
self.confirm_timeout = six.text_type(
143+
value) if value is not None else None
144+
145+
@validate_args(
146+
value=[of_type(six.text_type)],
147+
)
148+
def confirm_timeout(self, value):
149+
self.confirm_timeout = value
150+
return self
151+
136152
@property
137153
def confirm_key(self):
138154
return self.__confirm_key
@@ -269,6 +285,7 @@ def __init__(
269285
caller_id=None,
270286
caller_name=None,
271287
confirm_sound=None,
288+
confirm_timeout=None,
272289
confirm_key=None,
273290
dial_music=None,
274291
callback_url=None,
@@ -288,6 +305,7 @@ def __init__(
288305
self.caller_id = caller_id
289306
self.caller_name = caller_name
290307
self.confirm_sound = confirm_sound
308+
self.confirm_timeout = confirm_timeout
291309
self.confirm_key = confirm_key
292310
self.dial_music = dial_music
293311
self.callback_url = callback_url
@@ -307,6 +325,7 @@ def to_dict(self):
307325
'callerId': self.caller_id,
308326
'callerName': self.caller_name,
309327
'confirmSound': self.confirm_sound,
328+
'confirmTimeout': self.confirm_timeout,
310329
'confirmKey': self.confirm_key,
311330
'dialMusic': self.dial_music,
312331
'callbackUrl': self.callback_url,

0 commit comments

Comments
 (0)