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>
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>