(Update with the copy of version: 8.5.2DRAFT) |
(Update with the copy of version: 8.5.2DRAFT) |
||
Line 1: | Line 1: | ||
− | = Voice Namespace= | + | |
+ | =Voice Namespace= | ||
__TOC__ | __TOC__ | ||
==Methods== | ==Methods== | ||
The Voice namespace includes the following methods: | The Voice namespace includes the following methods: | ||
+ | * [[VoiceNamespace#answer|answer]] | ||
* [[VoiceNamespace#dial|dial]] | * [[VoiceNamespace#dial|dial]] | ||
+ | * [[VoiceNamespace#hangUp|hangUp]] | ||
+ | * [[VoiceNamespace#hold|hold]] | ||
+ | * [[VoiceNamespace#resume|resume]] | ||
* [[VoiceNamespace#pauseCallRecording|pauseCallRecording]] | * [[VoiceNamespace#pauseCallRecording|pauseCallRecording]] | ||
* [[VoiceNamespace#resumeCallRecording|resumeCallRecording]] | * [[VoiceNamespace#resumeCallRecording|resumeCallRecording]] | ||
* [[VoiceNamespace#startCallRecording|startCallRecording]] | * [[VoiceNamespace#startCallRecording|startCallRecording]] | ||
* [[VoiceNamespace#stopCallRecording|stopCallRecording]] | * [[VoiceNamespace#stopCallRecording|stopCallRecording]] | ||
+ | * [[VoiceNamespace#isMicrophoneMute|isMicrophoneMute]] | ||
+ | * [[VoiceNamespace#muteMicrophone|muteMicrophone]] | ||
+ | * [[VoiceNamespace#unmuteMicrophone|unmuteMicrophone]] | ||
+ | * [[VoiceNamespace#isSpeakerMute|isSpeakerMute]] | ||
+ | * [[VoiceNamespace#muteSpeaker|muteSpeaker]] | ||
+ | * [[VoiceNamespace#unmuteSpeaker|unmuteSpeaker]] | ||
+ | |||
+ | |||
+ | ===answer=== | ||
+ | |||
+ | {| | ||
+ | |- | ||
+ | !|Signature | ||
+ | || answer('interactionId') | ||
+ | |- | ||
+ | !|Description | ||
+ | ||Answers the incoming call. | ||
+ | |- | ||
+ | !|Parameters | ||
+ | || | ||
+ | {| | ||
+ | |- | ||
+ | !|Name | ||
+ | !|Type | ||
+ | !|Argument | ||
+ | !|Description | ||
+ | |- | ||
+ | ||interaction | ||
+ | ||string | ||
+ | || | ||
+ | |||
+ | ||The interaction identifier | ||
+ | |} | ||
+ | |} | ||
===dial=== | ===dial=== | ||
+ | {|! Signature| dial(''destination'', ''userData'')! Description| Calls the destination in the same way Workspace Web Edition calls the destination from Team Communicator.! Parameters| | ||
+ | {| | ||
+ | |- | ||
+ | !|Name | ||
+ | !|Type | ||
+ | !|Argument | ||
+ | !|Description | ||
+ | |- | ||
+ | ||destination | ||
+ | ||string | ||
+ | || | ||
+ | |||
+ | ||The call destination number. | ||
+ | |- | ||
+ | ||userData | ||
+ | ||object | ||
+ | || | ||
+ | |||
+ | ||The attached user data key/value object that is updated with each interaction event. | ||
+ | |} | ||
+ | |||
+ | ===hangUp=== | ||
+ | |||
{| | {| | ||
− | |||
− | |||
|- | |- | ||
− | ! | + | !|Signature |
− | | | + | || hangUp('interactionId') |
|- | |- | ||
− | ! Parameters | + | !|Description |
− | | | + | ||Releases the incoming call. |
+ | |- | ||
+ | !|Parameters | ||
+ | || | ||
{| | {| | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | !|Name |
− | | | + | !|Type |
− | | | + | !|Argument |
− | | | + | !|Description |
|- | |- | ||
− | | | + | ||interaction |
− | | | + | ||string |
− | | | + | || |
− | | The | + | |
+ | ||The interaction identifier | ||
|} | |} | ||
|} | |} | ||
− | === | + | |
+ | ===hold=== | ||
+ | |||
+ | {| | ||
+ | |- | ||
+ | !|Signature | ||
+ | || hold('interactionId') | ||
+ | |- | ||
+ | !|Description | ||
+ | ||Holds the incoming call. | ||
+ | |- | ||
+ | !|Parameters | ||
+ | || | ||
+ | {| | ||
+ | |- | ||
+ | !|Name | ||
+ | !|Type | ||
+ | !|Argument | ||
+ | !|Description | ||
+ | |- | ||
+ | ||interaction | ||
+ | ||string | ||
+ | || | ||
+ | |||
+ | ||The interaction identifier | ||
+ | |} | ||
+ | |} | ||
+ | |||
+ | |||
+ | ===resume=== | ||
+ | |||
{| | {| | ||
− | |||
− | |||
|- | |- | ||
− | ! | + | !|Signature |
− | | | + | || resume('interactionId') |
|- | |- | ||
− | ! Parameters | + | !|Description |
− | | | + | ||Resumes the held call. |
+ | |- | ||
+ | !|Parameters | ||
+ | || | ||
{| | {| | ||
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | !|Name |
− | | string | + | !|Type |
− | | The | + | !|Argument |
+ | !|Description | ||
+ | |- | ||
+ | ||interaction | ||
+ | ||string | ||
+ | || | ||
+ | |||
+ | ||The interaction identifier | ||
|} | |} | ||
|} | |} | ||
+ | |||
+ | |||
+ | |||
+ | ===pauseCallRecording=== | ||
+ | {|! Signature| pauseCallRecording(''interactionId'')! Description| Pauses the call recording.! Parameters| | ||
+ | {| | ||
+ | |- | ||
+ | !|Name | ||
+ | !|Type | ||
+ | !|Description | ||
+ | |- | ||
+ | ||interactionId | ||
+ | ||string | ||
+ | ||The unique identifier for the interaction. | ||
+ | |} | ||
+ | |||
===resumeCallRecording=== | ===resumeCallRecording=== | ||
+ | {|! Signature| resumeCallRecording(''interactionId'')! Description| Resumes the call recording.! Parameters| | ||
{| | {| | ||
− | |||
− | |||
|- | |- | ||
− | ! | + | !|Name |
− | | | + | !|Type |
+ | !|Description | ||
|- | |- | ||
− | ! Parameters | + | ||interactionId |
− | | | + | ||string |
+ | ||The unique identifier for the interaction. | ||
+ | |} | ||
+ | |||
+ | |||
+ | ===startCallRecording=== | ||
+ | {|! Signature| startCallRecording(''interactionId'')! Description| Starts the call recording.! Parameters| | ||
{| | {| | ||
− | |||
− | |||
− | |||
|- | |- | ||
− | | interactionId | + | !|Name |
− | | string | + | !|Type |
− | | The unique identifier for the interaction. | + | !|Description |
+ | |- | ||
+ | ||interactionId | ||
+ | ||string | ||
+ | ||The unique identifier for the interaction. | ||
|} | |} | ||
+ | |||
+ | |||
+ | ===stopCallRecording=== | ||
+ | {|! Signature| stopCallRecording(''interactionId'')! Description| Stops the call recording.! Parameters| | ||
+ | {| | ||
+ | |- | ||
+ | !|Name | ||
+ | !|Type | ||
+ | !|Description | ||
+ | |- | ||
+ | ||interactionId | ||
+ | ||string | ||
+ | ||The unique identifier for the interaction. | ||
|} | |} | ||
− | === | + | |
+ | ===isMicrophoneMute=== | ||
+ | |||
{| | {| | ||
− | |||
− | |||
|- | |- | ||
− | ! Description | + | !|Signature |
− | | | + | || isMicrophoneMute() |
+ | |- | ||
+ | !|Description | ||
+ | ||Get the mute state of the microphone of the SIP Endpoint. | ||
|- | |- | ||
− | ! Parameters | + | !|Parameters |
− | | | + | ||None. |
+ | |} | ||
+ | |||
+ | |||
+ | ===muteMicrophone=== | ||
+ | |||
{| | {| | ||
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | !|Signature |
− | | | + | || muteMicrophone() |
− | | | + | |- |
+ | !|Description | ||
+ | ||Mute the microphone of the SIP Endpoint. | ||
+ | |- | ||
+ | !|Parameters | ||
+ | ||None. | ||
|} | |} | ||
+ | |||
+ | |||
+ | ===unmuteMicrophone=== | ||
+ | |||
+ | {| | ||
+ | |- | ||
+ | !|Signature | ||
+ | || unmuteMicrophone()) | ||
+ | |- | ||
+ | !|Description | ||
+ | ||Unmute the microphone of the SIP Endpoint. | ||
+ | |- | ||
+ | !|Parameters | ||
+ | ||None. | ||
|} | |} | ||
− | === | + | |
+ | ===isSpeakerMute=== | ||
+ | |||
{| | {| | ||
− | |||
− | |||
|- | |- | ||
− | ! | + | !|Signature |
− | | | + | || isSpeakerMute() |
|- | |- | ||
− | ! Parameters | + | !|Description |
− | | | + | ||Get the mute state of the speaker of the SIP Endpoint. |
+ | |- | ||
+ | !|Parameters | ||
+ | ||None. | ||
+ | |} | ||
+ | |||
+ | |||
+ | ===muteSpeaker=== | ||
+ | |||
{| | {| | ||
− | |||
− | |||
− | |||
|- | |- | ||
− | | | + | !|Signature |
− | | | + | || muteSpeaker() |
− | | | + | |- |
+ | !|Description | ||
+ | ||Mute the speaker of the SIP Endpoint. | ||
+ | |- | ||
+ | !|Parameters | ||
+ | ||None. | ||
|} | |} | ||
+ | |||
+ | |||
+ | ===unmuteSpeaker=== | ||
+ | |||
+ | {| | ||
+ | |- | ||
+ | !|Signature | ||
+ | || unmuteSpeaker()) | ||
+ | |- | ||
+ | !|Description | ||
+ | ||Unmute the speaker of the SIP Endpoint. | ||
+ | |- | ||
+ | !|Parameters | ||
+ | ||None. | ||
|} | |} | ||
[[Category:V:HTCC:8.5.2]] | [[Category:V:HTCC:8.5.2]] |
Latest revision as of 17:54, February 23, 2018
Voice Namespace
Contents
Methods
The Voice namespace includes the following methods:
- answer
- dial
- hangUp
- hold
- resume
- pauseCallRecording
- resumeCallRecording
- startCallRecording
- stopCallRecording
- isMicrophoneMute
- muteMicrophone
- unmuteMicrophone
- isSpeakerMute
- muteSpeaker
- unmuteSpeaker
answer
Signature | answer('interactionId') | ||||||||
---|---|---|---|---|---|---|---|---|---|
Description | Answers the incoming call. | ||||||||
Parameters |
|
dial
Name | Type | Argument | Description |
---|---|---|---|
destination | string | The call destination number. | |
userData | object | The attached user data key/value object that is updated with each interaction event. |
hangUp
Signature | hangUp('interactionId') | ||||||||
---|---|---|---|---|---|---|---|---|---|
Description | Releases the incoming call. | ||||||||
Parameters |
|
hold
Signature | hold('interactionId') | ||||||||
---|---|---|---|---|---|---|---|---|---|
Description | Holds the incoming call. | ||||||||
Parameters |
|
resume
Signature | resume('interactionId') | ||||||||
---|---|---|---|---|---|---|---|---|---|
Description | Resumes the held call. | ||||||||
Parameters |
|
pauseCallRecording
Name | Type | Description |
---|---|---|
interactionId | string | The unique identifier for the interaction. |
resumeCallRecording
Name | Type | Description |
---|---|---|
interactionId | string | The unique identifier for the interaction. |
startCallRecording
Name | Type | Description |
---|---|---|
interactionId | string | The unique identifier for the interaction. |
stopCallRecording
Name | Type | Description |
---|---|---|
interactionId | string | The unique identifier for the interaction. |
isMicrophoneMute
Signature | isMicrophoneMute() |
---|---|
Description | Get the mute state of the microphone of the SIP Endpoint. |
Parameters | None. |
muteMicrophone
Signature | muteMicrophone() |
---|---|
Description | Mute the microphone of the SIP Endpoint. |
Parameters | None. |
unmuteMicrophone
Signature | unmuteMicrophone()) |
---|---|
Description | Unmute the microphone of the SIP Endpoint. |
Parameters | None. |
isSpeakerMute
Signature | isSpeakerMute() |
---|---|
Description | Get the mute state of the speaker of the SIP Endpoint. |
Parameters | None. |
muteSpeaker
Signature | muteSpeaker() |
---|---|
Description | Mute the speaker of the SIP Endpoint. |
Parameters | None. |
unmuteSpeaker
Signature | unmuteSpeaker()) |
---|---|
Description | Unmute the speaker of the SIP Endpoint. |
Parameters | None. |
This page was last edited on February 23, 2018, at 17:54.
Comments or questions about this documentation? Contact us for support!