cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Start recording failed

Dylan
Contributor

Hi,

 

I want to enable recording during a call.

https://developers.sinch.com/docs/voice/api-reference/voice/tag/Calls/#tag/Calls/operation/Calling_U...

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"}}

 

The result returned is
{"errorCode":40003,"message":"Unsupported SVML instructions 'startRecording'","reference":"106eea51-5dce-4dd8-9896-8f76b4c53253"}
 
I don't understand why there is an error, which step is wrong please?
 
Regards.

 

 

5 REPLIES 5

Dylan
Contributor

Is anyone can help me, thank you.

Roland_Ian
Employee
Employee

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

 

Roland-Ian Clothier, Developer Support Engineer

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.

 

 

 

Roland_Ian
Employee
Employee

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. 🙂 

Roland-Ian Clothier, Developer Support Engineer

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"}