vonage-node-sdk icon indicating copy to clipboard operation
vonage-node-sdk copied to clipboard

Voice API length_timer does not limit call duration

Open phil-andrews opened this issue 8 years ago • 3 comments

nexmoClient.calls.create({
    to: [{
      type: 'phone',
      number: toNumber
    }],
    from: {
      type: 'phone',
      number: fromNumber
    },
    answer_url: [answerURL],
    length_timer: 60,

  }, (err, res) => {

    if (err) {
      console.error(err)
    } else {
      console.log(res)
    }

  })

When dialing out using node I have been unable to get length_timer to end a call when set to any duration.

phil-andrews avatar Apr 14 '17 15:04 phil-andrews

Update on this: Via billing console I can say that it does seem to limit the time but the API does not kick back an event when it times out. This requires manually inserting timers into an automated application.

phil-andrews avatar Apr 23 '17 14:04 phil-andrews

@phil-andrews so you don't seem to be getting any webhook call events when the timeout takes place?

You should get a call status update to completed.

leggetter avatar Apr 24 '17 12:04 leggetter

After a couple thousand calls and plenty of time outs I do not believe that I am. It's possible that I'm not waiting long enough for it to come, ~90s. But even before I put that timer on I would have to manually reset a phone instance to handle a call that timed out. And during that period I waited 5-10 minutes a few times just to see if I'd get pinged.

On top of receiving the basic completed request, if it were possible, it would be very helpful to know that a call timed out via a timeout flag in the same request or in a subsequent request.

phil-andrews avatar Apr 24 '17 16:04 phil-andrews

Close due to inactivity

manchuck avatar Nov 09 '22 22:11 manchuck