-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Voice): additional conference call method
- Loading branch information
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from sinch.domains.voice.models.callouts.responses import VoiceCalloutResponse | ||
|
||
|
||
def test_conference_call( | ||
sinch_client_sync, | ||
phone_number, | ||
voice_origin_phone_number, | ||
conference_id | ||
): | ||
conference_callout_response = sinch_client_sync.voice.conferences.call( | ||
conference_id=conference_id, | ||
destination={ | ||
"type": "number", | ||
"endpoint": phone_number | ||
}, | ||
locale="en-US", | ||
cli=voice_origin_phone_number | ||
) | ||
assert isinstance(conference_callout_response, VoiceCalloutResponse) | ||
|
||
|
||
async def test_conference_call_async( | ||
sinch_client_async, | ||
phone_number, | ||
voice_origin_phone_number, | ||
conference_id | ||
): | ||
conference_callout_response = await sinch_client_async.voice.conferences.call( | ||
conference_id=conference_id, | ||
destination={ | ||
"type": "number", | ||
"endpoint": phone_number | ||
}, | ||
locale="en-US", | ||
cli=voice_origin_phone_number | ||
) | ||
assert isinstance(conference_callout_response, VoiceCalloutResponse) |