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
* Set pause duration to be Int
* Fix `Record.max_duration`
* Update `ring.duration` and `ring.answer_call` test
* Update int fields for `SendDtmf`
* Fix Conference
Not allowed to have nested verbs
* Set `Gather` int properties to int
* Set proper bool values for `StartRecording`
* DRY
* Fix `Ring` test
name (str): The name of the conference. Can contain up to 100 characters of letters, numbers, and the symbols -, _, and .
34
26
mute (str, optional): A boolean value to indicate whether the member should be on mute in the conference. When muted, a member can hear others speak, but others cannot hear them speak. Defaults to false.
35
27
hold (str, optional): A boolean value to indicate whether the member should be on hold in the conference. When on hold, a member cannot hear others, and they cannot be heard. Defaults to false.
36
-
call_ids_to_coach (str, optional): A comma-separated list of call ids to coach. When a call joins a conference with this attribute set, it will coach the listed calls.
28
+
call_ids_to_coach (str, optional): A comma-separated list of call ids to coach. When a call joins a conference with this attribute set, it will coach the listed calls.
37
29
Those calls will be able to hear and be heard by the coach, but other calls in the conference will not hear the coach.
38
-
conference_event_url (str, optional): URL to send Conference events to. The URL, method, username, and password are set by the BXML document that creates the conference,
39
-
and all events related to that conference will be delivered to that same endpoint. If more calls join afterwards and also have this property (or any other webhook related properties like username and password),
30
+
conference_event_url (str, optional): URL to send Conference events to. The URL, method, username, and password are set by the BXML document that creates the conference,
31
+
and all events related to that conference will be delivered to that same endpoint. If more calls join afterwards and also have this property (or any other webhook related properties like username and password),
40
32
they will be ignored and the original webhook information will be used. This URL may be a relative endpoint.
41
33
conference_event_method (str, optional): The HTTP method to use for the request to conferenceEventUrl. GET or POST. Default value is POST.
42
34
conference_event_fallback_url (str, optional): A fallback url which, if provided, will be used to retry the conference webhook deliveries in case conferenceEventUrl fails to respond.
@@ -45,17 +37,17 @@ def __init__(
45
37
password (str, optional): The password to send in the HTTP request to conferenceEventUrl.
46
38
fallback_username (str, optional): The username to send in the HTTP request to conferenceEventFallbackUrl.
47
39
fallback_password (str, optional): The password to send in the HTTP request to conferenceEventFallbackUrl.
48
-
tag (str, optional): A custom string that will be sent with this and all future callbacks unless overwritten by a future tag attribute or <Tag> verb, or cleared. May be cleared by setting tag="".
40
+
tag (str, optional): A custom string that will be sent with this and all future callbacks unless overwritten by a future tag attribute or <Tag> verb, or cleared. May be cleared by setting tag="".
49
41
Max length 256 characters. Defaults to None.
50
-
callback_timeout (str, optional): This is the timeout (in seconds) to use when delivering webhooks for the conference.
42
+
callback_timeout (str, optional): This is the timeout (in seconds) to use when delivering webhooks for the conference.
51
43
If not set, it will inherit the webhook timeout from the call that creates the conference. Can be any numeric value (including decimals) between 1 and 25.
password (str, optional): The password to send in the HTTP request to gather_url.
35
35
fallback_username (str, optional): The username to send in the HTTP request to gather_fallback_url.
36
36
fallback_password (str, optional): The password to send in the HTTP request to gather_fallback_url.
37
-
tag (str, optional): A custom string that will be sent with this and all future callbacks unless overwritten by a future tag attribute or <Tag> verb, or cleared.
37
+
tag (str, optional): A custom string that will be sent with this and all future callbacks unless overwritten by a future tag attribute or <Tag> verb, or cleared.
38
38
May be cleared by setting tag="". Max length 256 characters.
39
39
terminating_digits (str, optional): When any of these digits are pressed, it will terminate the Gather. Default value is "", which disables this feature.
40
-
max_digits (str, optional): Max number of digits to collect. Default value is 50. Range: decimal values between 1 - 50.
41
-
inter_digit_timeout (str, optional): Time (in seconds) allowed between digit presses before automatically terminating the Gather. Default value is 5. Range: decimal values between 1 - 60.
42
-
first_digit_timeout (str, optional): Time (in seconds) to pause after any audio from nested <SpeakSentence> or <PlayAudio> verb is played (in seconds) before terminating the Gather.
40
+
max_digits (int, optional): Max number of digits to collect. Default value is 50. Range: decimal values between 1 - 50.
41
+
inter_digit_timeout (int, optional): Time (in seconds) allowed between digit presses before automatically terminating the Gather. Default value is 5. Range: decimal values between 1 - 60.
42
+
first_digit_timeout (int, optional): Time (in seconds) to pause after any audio from nested <SpeakSentence> or <PlayAudio> verb is played (in seconds) before terminating the Gather.
43
43
Default value is 5. Range: decimal values between 0 - 60.
44
-
repeat_count (str, optional): The number of times the audio prompt should be played if no digits are pressed. For example, if this value is 3, the nested audio clip will be played a maximum of three times.
44
+
repeat_count (int, optional): The number of times the audio prompt should be played if no digits are pressed. For example, if this value is 3, the nested audio clip will be played a maximum of three times.
45
45
The delay between repetitions will be equal to first_digit_timeout. Default value is 1. repeat_count * number of verbs must not be greater than 20.
fallback_password (str, optional): The password to send in the HTTP request to recordCompleteFallbackUrl. If specified, the URLs must be TLS-encrypted (i.e., https). Defaults to None.
43
43
tag (str, optional): A custom string that will be sent with this and all future callbacks unless overwritten by a future tag attribute or <Tag> verb, or cleared. May be cleared by setting tag="". Max length 256 characters. Defaults to None.
44
44
terminating_digits (str, optional): When pressed, this digit will terminate the recording. Default value is “#”. This feature can be disabled with "". Defaults to None.
45
-
max_duration (str, optional): Maximum length of recording (in seconds). Max 10800 (3 hours). Default value is 60. Defaults to None.
45
+
max_duration (int, optional): Maximum length of recording (in seconds). Max 10800 (3 hours). Default value is 60. Defaults to None.
46
46
silence_timeout (str, optional): Length of silence after which to end the recording (in seconds). Max is equivalent to the maximum maxDuration value. Default value is 0, which means no timeout. Defaults to None.
47
47
file_format (str, optional): The audio format that the recording will be saved as: mp3 or wav. Default value is wav. Defaults to None.
Copy file name to clipboardExpand all lines: bandwidth/model/bxml/verbs/ring.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -11,14 +11,14 @@
11
11
classRing(TerminalVerb):
12
12
13
13
def__init__(
14
-
self, duration: str=None,
15
-
answer_call: str=None,
14
+
self, duration: int=None,
15
+
answer_call: bool=None,
16
16
):
17
17
"""Initialize a <Ring> verb
18
18
19
19
Args:
20
-
duration (str, optional): How many seconds to play ringing on the call. Default value is 5. Range: decimal values between 0.1 - 86400.
21
-
answer_call (str, optional): A boolean indicating whether or not to answer the call when Ring is executed on an unanswered incoming call. Default value is 'true'.
20
+
duration (int, optional): How many seconds to play ringing on the call. Default value is 5. Range: decimal values between 0.1 - 86400.
21
+
answer_call (bool, optional): A boolean indicating whether or not to answer the call when Ring is executed on an unanswered incoming call. Default value is 'true'.
Copy file name to clipboardExpand all lines: bandwidth/model/bxml/verbs/send_dtmf.py
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -12,15 +12,15 @@ class SendDtmf(TerminalVerb):
12
12
13
13
def__init__(
14
14
self, digits: str,
15
-
tone_duration: str=None,
16
-
tone_interval: str=None,
15
+
tone_duration: int=None,
16
+
tone_interval: int=None,
17
17
):
18
18
"""Initialize a <SendDtmf> verb
19
19
20
20
Args:
21
21
digits (str): String containing the DTMF characters to be sent in a call. Allows a maximum of 50 characters. The digits will be sent one-by-one with a marginal delay.
22
-
tone_duration (str, optional): The length (in milliseconds) of each DTMF tone. Default value is 200. Range: decimal values between 50 - 5000.
23
-
tone_interval (str, optional): The duration of silence (in milliseconds) following each DTMF tone. Default value is 400. Range: decimal values between 50 - 5000.
22
+
tone_duration (int, optional): The length (in milliseconds) of each DTMF tone. Default value is 200. Range: decimal values between 50 - 5000.
23
+
tone_interval (int, optional): The duration of silence (in milliseconds) following each DTMF tone. Default value is 400. Range: decimal values between 50 - 5000.
0 commit comments