Menu

Why do I receive an answered event when I start an outbound call?

Question

 

Why do I receive an answered status when I start an outbound in-App Voice call?

Why do I receive the 'member:joined', 'rtc:answered', 'leg:status:update answered' events when I start a call?

 

Answer

In order for an app user to send and receive audio, the user must be joined as a member to a conversation. When you start an outbound call, the SDK automatically joins the user as a member to the conversation and negotiates media with the Vonage platform. It is necessary to join the user at this stage of the call to ensure any audio is relayed to the app user appropriately. For example, if you are performing an outbound call with the following NCCO:

 

[

  {

    "action": "connect",

    "from": "VONAGE_LVN",

    "endpoint": [

      {

        "type": "phone",

        "number": "PHONE_NUMBER"

      }

    ]

  }

]

 

The app user would expect to experience ringing tone or any network-generated messages by the far end operator. The same logic applies if you have a talk/stream action before connecting to a phone endpoint.

Was this article helpful?
0 out of 0 found this helpful
Follow
Have more questions? Submit a request