Skip to content

Make a outbound call with twilio media stream apporach #175

@padhur

Description

@padhur

Hi Team,

I took the connect-basic quick start guide and integrated with Dialogflow.
I am able to send sms but when i try to make a outbound call its not working.

Below is the code snippet i am using to make a outbound call

     .create({
        to: number,
        from: called
      })
     .then(call => {
       console.log(call.sid)
       });```

But its not making an outbound call.

With the below twiml param, i can see the call is connecting but i can't hear anything
```client.calls
     .create({
       twiml: '<Response><Connect><Stream url="wss://245a-14-200-112-162.au.ngrok.io/streams"></Stream></Connect></Response>',
        to: number,
        from: called
      })
     .then(call => {
       console.log(call.sid)
       });```
could you please suggest what am doing wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions