open-cti-demo-adapter
open-cti-demo-adapter copied to clipboard
Get Inbound Calls from Twilio
I have managed to integrate the package and get it to run successfully for outbound calls, and also simulating incoming calls.
Although I am facing issues getting inbound calls from Twilio. Can you please guide me in the right direction so that I can get inbound calls with OPENCTI.
First you will need a Twiml app -- https://www.twilio.com/docs/voice/client/javascript/quickstart here is a quick example: https://gist.github.com/dlouvton/bf2c901a54174ffb9c4f2c48d1caffa1 (Use your newly created app) https://gist.github.com/dlouvton/1ddb80732f7c7ff63b2492d0c4d8f021 (create a Inbound Handling method) https://gist.github.com/dlouvton/7a792dc117248ae371d8db5474c44886
hope this helps!
Hi David, Thanks for the help.
But I am facing issues in getting incoming calls in salesforce. The incoming function in the demoAdapterPage just does not get executed.
Any help will be much appreciated.
Make sure that your twiml app (the node endpoint) routes the incoming call to the client. Then the incoming callback will be executed.
https://www.twilio.com/docs/voice/client/tutorials/incoming-calls
Hi @dlouvton , could you please be a little bit more specific on what info the TwiML (xml file) needs to have? I guess we need a class and a vf page thart renders as xml? will be amazing to see an example of this, this will be a good starting point
Did you reserve a number with twilio? If so, you associate this number with your twiml app in Twilio's Number Management. Your twiml app needs to return a dial verb with the number, and then when calling this number, it will ring. There are many tutorials about how to create twiml apps that return dial verbs.
Make sure that your twiml app (the node endpoint) routes the incoming call to the client. Then the incoming callback will be executed.
Hi @dlouvton ,
I am assuming that i need to paste Node app link deployed on Ngrok in Twilio voice request url for inbound call.
Please clear my following query
- How would the connection be generated b/w salesforce and node app as i am unable to figure it out?
I have idea about TWIML instructuctions but can you please provide more detail as it would be highly appreciated.
HI @manzanofab ,
Have you found the solution for this problem?
Hi @malikzain
No pretty stuck, unfortunately it is such a shame the lack of documentation and support!
Still not able to get inbound call @dlouvton
Any solution for this? I am stuck with inbound calls too. When an inbound call lands on twilio, I can route the call to an agent however how do I show a popup on the agent's salesforce login about the inbound call and caller details?