open-cti-demo-adapter icon indicating copy to clipboard operation
open-cti-demo-adapter copied to clipboard

Connecting phones to complete the call.

Open ericstephenszpaper opened this issue 7 years ago • 1 comments

Are there others pursing this in for Force.com classic? I have created a simple TwiML below that bridges to an existing phone or takes a message.

Replace the holdmusic URL with a twiml one. Map<String,String> params = new Map<String,String> { 'To' => toNumber, 'From' => fromNumber, 'Url' => 'https://handler.twilio.com/twiml/EHd---put-yours-here---151c' }; //play some audio with http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient

At the very least I need a way to configure several endpoints so that each user can control what phone is hooked in. How would I get the {!$User.mobile} into Twiml logic below?

<?xml version="1.0" encoding="UTF-8"?> <!-- https://www.twilio.com/docs/api/twiml/dial --> <Response> <Say voice="woman">Z Paper support is calling. Please wait for your call to be connected to our next team member.</Say> <Dial timeout="30" record="record-from-answer">GoogleVoice/Cell</Dial> <Say voice="woman">Unfortunately, no one answered quickly enough on our end. Please leave up to a 60 second recording and you will be called back shortly.</Say> <Record maxLength="60" /> <Say>Have a great day!</Say> <Hangup/> </Response>

ericstephenszpaper avatar May 29 '17 16:05 ericstephenszpaper

did you try to contact Twilio?

dlouvton avatar Jun 12 '17 22:06 dlouvton