twilio / voice-quickstart-server-php

Voice Quickstart Server in PHP
MIT License
8 stars 19 forks source link

Second starts when call connects but it should when call is received #7

Closed hbrawnak closed 4 years ago

hbrawnak commented 4 years ago

When call connects or ringing twilio shows second. Even when ends the call after receiving twilio sends duration in callback from when call connects. But it should when call is received.

bobiechen-twilio commented 4 years ago

Hi @hbrawnak

For app to only receive the "connected" callback when the call has been answered by the callee, please use the answerOnBridge flag in your verb.

Please note that this only applies when there is no or verb before in the TwiML response, otherwise the client will receive the "connected" callback once the connection is established between the caller and Twilio.

Hope this helps. -bobie

hbrawnak commented 4 years ago

Thank you