(→Request:) |
(HTCC-29871 (info from GIR-18182)) |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
=PauseCallRecording= | =PauseCallRecording= | ||
__NOTOC__ | __NOTOC__ | ||
− | This operation is part of the [[VoiceAPI|Voice API]] section of the [[Welcome| | + | This operation is part of the [[VoiceAPI|Voice API]] section of the [[Welcome|Web Services API]]. |
==Overview== | ==Overview== | ||
− | Temporarily stops recording the specified phone call | + | Temporarily stops recording the specified phone call. |
− | == | + | |
− | ===Request | + | {| class="wikitable" |
− | < | + | |- |
− | POST | + | !|Request URL |
+ | ||/api/v2/me/calls/''{id}'' | ||
+ | |- | ||
+ | !|HTTP method | ||
+ | ||POST | ||
+ | |- | ||
+ | !|Mandaory Header | ||
+ | ||Authorization: Basic xxxxx=Origin: server-url | ||
+ | |- | ||
+ | !|Required features | ||
+ | ||api-voice-recording | ||
+ | |} | ||
+ | |||
+ | |||
+ | ==Parameters== | ||
+ | |||
+ | {| class="wikitable" | ||
+ | |- | ||
+ | !|Parameter | ||
+ | !|Value | ||
+ | |- | ||
+ | ||operationName | ||
+ | ||PauseCallRecording | ||
+ | |} | ||
+ | |||
+ | |||
+ | ==Sample== | ||
+ | ===Request=== | ||
+ | <source lang="text"> | ||
+ | POST /api/v2/me/calls/01RCC3N118B1V0SL8O7GK2LAES00000V | ||
{ | { | ||
"operationName": "PauseCallRecording" | "operationName": "PauseCallRecording" | ||
} | } | ||
− | </ | + | </source> |
− | === | + | ===HTTP response=== |
− | < | + | <source lang="text"> |
{ | { | ||
"statusCode": 0 | "statusCode": 0 | ||
} | } | ||
− | </ | + | </source> |
− | === | + | |
− | < | + | ===CometD notification=== |
− | { | + | <source lang="text"> |
− | + | { | |
− | + | "data":{ | |
− | + | "notificationType":"CallRecordingStateChange", | |
− | + | "call":{ | |
− | + | "id":"01RCC3N118B1V0SL8O7GK2LAES00000V", | |
− | + | "state":"Established", | |
− | + | "callUuid":"01RCC3N118B1V0SL8O7GK2LAES00000V", | |
− | + | "connId":"007102719818001f", | |
− | + | "deviceUri":"http://127.0.0.1:8080/api/v2/devices/631608b3-ceb1-472b-ba05-2ae39555b0d1", | |
− | + | "participants":[ | |
− | + | { | |
− | + | "e164Number":"", | |
− | + | "formattedPhoneNumber":"15001", | |
− | + | "phoneNumber":"15001", | |
− | + | "digits":"15001" | |
− | + | } | |
− | + | ], | |
− | + | "dnis":"15001", | |
− | + | "callType":"Internal", | |
− | + | "capabilities":[ | |
− | + | "UpdateUserData", | |
− | + | "SendDtmf", | |
− | + | "InitiateConference", | |
− | + | "Hold", | |
− | + | "SingleStepTransfer", | |
− | + | "InitiateTransfer", | |
− | + | "AttachUserData", | |
− | + | "DeleteUserDataPair", | |
− | + | "SingleStepConference", | |
− | + | "DeleteUserData", | |
− | + | "Hangup", | |
− | + | "ResumeCallRecording", | |
− | + | "StopCallRecording" | |
− | + | ], | |
− | + | "userData":{ | |
− | + | "GSIP_RECORD":"PAUSED", | |
− | + | "IW_BundleUid":"717f9130-a1d9-4092-f8b9-7804ee2592ea", | |
− | + | "IW_CaseUid":"d7e2c775-edaa-4d1e-b65c-bd48371b43ad", | |
− | + | "GSIP_REC_FN":"01RCC3N118B1V0SL8O7GK2LAES00000V_15000_15000_15001_2015-10-16_14-33-31_hpe-voicevm-70-dot-genesyslab-dot-com__%3Ccont_center_id%3E" | |
− | + | }, | |
− | + | "duration":"498", | |
− | + | "mute":"Off", | |
− | + | "recordingState":"Paused", | |
− | + | "supervisorListeningIn":false, | |
− | + | "monitoredUserMuted":false, | |
− | + | "monitoring":false, | |
− | + | "uri":"http://127.0.0.1:8080/api/v2/me/calls/01RCC3N118B1V0SL8O7GK2LAES00000V", | |
− | + | "path":"/calls/01RCC3N118B1V0SL8O7GK2LAES00000V" | |
− | |||
− | |||
− | |||
− | |||
}, | }, | ||
− | " | + | "phoneNumber":"15000", |
− | " | + | "messageType":"CallStateChangeMessage" |
− | + | }, | |
− | + | "channel":"/v2/me/calls" | |
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | </ | + | </source> |
[[Category:V:HTCC:8.5.2DRAFT]] | [[Category:V:HTCC:8.5.2DRAFT]] |
Latest revision as of 06:58, January 16, 2019
PauseCallRecording
This operation is part of the Voice API section of the Web Services API.
Overview
Temporarily stops recording the specified phone call.
Request URL | /api/v2/me/calls/{id} |
---|---|
HTTP method | POST |
Mandaory Header | Authorization: Basic xxxxx=Origin: server-url |
Required features | api-voice-recording |
Parameters
Parameter | Value |
---|---|
operationName | PauseCallRecording |
Sample
Request
POST /api/v2/me/calls/01RCC3N118B1V0SL8O7GK2LAES00000V
{
"operationName": "PauseCallRecording"
}
HTTP response
{
"statusCode": 0
}
CometD notification
{
"data":{
"notificationType":"CallRecordingStateChange",
"call":{
"id":"01RCC3N118B1V0SL8O7GK2LAES00000V",
"state":"Established",
"callUuid":"01RCC3N118B1V0SL8O7GK2LAES00000V",
"connId":"007102719818001f",
"deviceUri":"http://127.0.0.1:8080/api/v2/devices/631608b3-ceb1-472b-ba05-2ae39555b0d1",
"participants":[
{
"e164Number":"",
"formattedPhoneNumber":"15001",
"phoneNumber":"15001",
"digits":"15001"
}
],
"dnis":"15001",
"callType":"Internal",
"capabilities":[
"UpdateUserData",
"SendDtmf",
"InitiateConference",
"Hold",
"SingleStepTransfer",
"InitiateTransfer",
"AttachUserData",
"DeleteUserDataPair",
"SingleStepConference",
"DeleteUserData",
"Hangup",
"ResumeCallRecording",
"StopCallRecording"
],
"userData":{
"GSIP_RECORD":"PAUSED",
"IW_BundleUid":"717f9130-a1d9-4092-f8b9-7804ee2592ea",
"IW_CaseUid":"d7e2c775-edaa-4d1e-b65c-bd48371b43ad",
"GSIP_REC_FN":"01RCC3N118B1V0SL8O7GK2LAES00000V_15000_15000_15001_2015-10-16_14-33-31_hpe-voicevm-70-dot-genesyslab-dot-com__%3Ccont_center_id%3E"
},
"duration":"498",
"mute":"Off",
"recordingState":"Paused",
"supervisorListeningIn":false,
"monitoredUserMuted":false,
"monitoring":false,
"uri":"http://127.0.0.1:8080/api/v2/me/calls/01RCC3N118B1V0SL8O7GK2LAES00000V",
"path":"/calls/01RCC3N118B1V0SL8O7GK2LAES00000V"
},
"phoneNumber":"15000",
"messageType":"CallStateChangeMessage"
},
"channel":"/v2/me/calls"
}
This page was last edited on January 16, 2019, at 06:58.
Comments or questions about this documentation? Contact us for support!