Skip to content
New issue

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

client.calls.startStream is not a function #312

Open
ponappu opened this issue Aug 14, 2023 · 0 comments
Open

client.calls.startStream is not a function #312

ponappu opened this issue Aug 14, 2023 · 0 comments

Comments

@ponappu
Copy link

ponappu commented Aug 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant