01-09-2024 11:18 PM - last edited on 01-17-2024 01:50 AM by Shahzad_Ismail
Hi,
I want to enable recording during a call.
By updating a call in progress as provided in the documentation.
callIdId is DC8D6F49-0251-4319-9868-8341CC0512D2
Request body is
{"instructions":[{"name":"startRecording","options":{"destinationUrl":"s3://my-buckets/DC8D6F49-0251-4319-9868-8341CC0512D2.mp3","credentials":"xx:xx:us-east-1","notificationEvents":true}}],"action":{"name":"continue"}}
01-10-2024 07:12 PM
Is anyone can help me, thank you.
01-11-2024 11:42 PM
Hi Dylan
I will look at the logs to see if you are starting the recording on the PSTN origination leg or the in-app. leg
01-11-2024 11:52 PM
Hi,
My calls are made from within the app to an external number, via PSTN.
I see that ice callback and ace callback they have the same callid, so it shouldn't matter which leg.
So what is the best practice for turning on recording at any time?
Thank you.
01-11-2024 11:57 PM
Apologies I thought you were doing pstn origination to a conference and conference callout to in-app for the same conference. Let me look at your call-id. 🙂
01-12-2024 12:15 AM
Hi Roland_Ian,
Now I will implement the recording of pstn phone calls first, and I will consider the recording of meetings later.
I tested it recently, the callid is:
260F4D7D-B585-4BA2-81B7-519B0272F32D
curl -i -X PATCH \ -u xx:xx \ 'https://calling-apse1.api.sinch.com/calling/v1/calls/id/{callId}' \ -H 'Content-Type: application/json' \ -d '{
"instructions":[
{
"name":"startRecording",
"options":{
"destinationUrl":"s3://buckets/xx/260F4D7D-B585-4BA2-81B7-519B0272F32D.mp3",
"credentials":"x:x:us-east-1",
"notificationEvents":true
}
}
],
"action":{
"name":"continue"
}
}'
Return:
{"errorCode":40003,"message":"Unsupported SVML instructions 'startRecording'","reference":"fb649061-ac27-4d3e-8c3b-93d94e5ecb14"}