Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

229
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda