Skip to content

client.calls.startStream is not a function #312

@ponappu

Description

@ponappu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions