We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: