Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

237
Vistas
How can i get the call-sid from response of callback in twilios AddOn's "IBM Watson"

We enable the Twilios AddOn "IBM Watson Speech to Text" for recording transcribe.and we set our server webhook while enabling the addon. Now twilio calling webhook once call is completely done. after completing call twilio give response in that webhook In Nodejs.For handling that call response we need "Call Sid".In webhook response we cannot get "callSid".So how we can identify that response is for this particular call...?

anyone help me to how can find call-sid in response?

Callback response is

{
    "status": "successful",
    "message": null,
    "code": null,
    "results": {
        "ibm_watson_speechtotext": {
            "request_sid": "**************",
            "status": "successful",
            "message": null,
            "code": null,
            "payload": [{
                "content_type": "application/json",
                "url": "*************/Data"
            }],
            "links": {
                "add_on_result": "***********/Accounts/********/Recordings/**********/AddOnResults/******",
                "payloads": "https://api.twilio.com/2010-04-01/Accounts/******/Recordings/*******/AddOnResults/******/Payloads",
                "recording": "https://api.twilio.com/2010-04-01/Accounts/******/Recordings/*******"
            }
        }
    }
}

Thank you for help

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

When you get the Add-on result it comes as part of the Twilio voice webhook, with all the normal request parameters as well as an extra AddOns parameter which contains the JSON that you have shared above.

Webhook requests from Twilio are in the format application/x-www-form-urlencoded and then within the AddOns parameter the data is a JSON string. In a (Ruby-like) pseudo code, you can access the call sid and the add on data like this:

post "/webhook" do
  call_sid = params["CallSid"]
  add_on_json = params["AddOns"]
  add_on_data = JSON.parse(add_on_json)
 
  # return TwiML
end
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda