Open ponappu opened 1 year ago
hi there,
we are getting this error message, when we are trying to start a stream, we are using the 4.1.0-beta1 SDK for nodejs. Below is our code snippet.
client.calls.create( "XXXXXXXXXXX", // from phonenumber, // to "https://s3.amazonaws.com/static.plivo.com/answer.xml", // answer url { answerMethod: "GET", }, ).then(function (response) { console.log(response); // client.calls.startStream client.calls.startStream("wss://XXXXXXXXX, response.requestUuid, { bidirectional: true, audioTrack: "both", streamTimeout: 86400, statusCallbackUrl: "https://.com/events", statusCallbackMethod: "POST", contentType: "audio/x-l16;rate=16000", extra_headers: "Test1=Test2,Test3=Test4" } ).then(function (response) { console.log(response); }, function (err) { console.error(err); }); }, function (err) { console.error(err); });
Thanks
Regards, Appu
hi there,
we are getting this error message, when we are trying to start a stream, we are using the 4.1.0-beta1 SDK for nodejs. Below is our code snippet.
client.calls.create( "XXXXXXXXXXX", // from phonenumber, // to "https://s3.amazonaws.com/static.plivo.com/answer.xml", // answer url { answerMethod: "GET", }, ).then(function (response) { console.log(response); // client.calls.startStream client.calls.startStream("wss://XXXXXXXXX, response.requestUuid, { bidirectional: true, audioTrack: "both", streamTimeout: 86400, statusCallbackUrl: "https://.com/events",
statusCallbackMethod: "POST",
contentType: "audio/x-l16;rate=16000",
extra_headers: "Test1=Test2,Test3=Test4"
}
).then(function (response) {
console.log(response);
}, function (err) {
console.error(err);
});
}, function (err) {
console.error(err);
});
Thanks
Regards, Appu