twilio-twiml

Pagination is not working in twilio call logs laravel

六月ゝ 毕业季﹏ 提交于 2021-02-11 15:48:07
问题 <?php namespace App\Http\Controllers\Api; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Http\Controllers\ApiController; use App\Model\User; use Illuminate\Support\Facades\Validator; use Auth; use Twilio\Rest\Client; use Twilio\TwiML\VoiceResponse; class TwilioController extends ApiController { public function __construct(){ $sid = env('TWILIO_SID'); $token = env('TWILIO_TOKEN'); $this->twilio = new Client($sid, $token); if (request('lang')) \App::setLocale(request(

Pagination is not working in twilio call logs laravel

旧城冷巷雨未停 提交于 2021-02-11 15:46:38
问题 <?php namespace App\Http\Controllers\Api; use Illuminate\Http\Request; use App\Http\Controllers\Controller; use App\Http\Controllers\ApiController; use App\Model\User; use Illuminate\Support\Facades\Validator; use Auth; use Twilio\Rest\Client; use Twilio\TwiML\VoiceResponse; class TwilioController extends ApiController { public function __construct(){ $sid = env('TWILIO_SID'); $token = env('TWILIO_TOKEN'); $this->twilio = new Client($sid, $token); if (request('lang')) \App::setLocale(request(

How to Receive and Send voicemail from/on Twilio number?

岁酱吖の 提交于 2021-01-29 14:57:04
问题 I am creating a Twilio based application that will receive the Voicemail if the call is not picked up. For now, I had set up the incoming call URL in the console against the phone number. <?php header('content-type: text/xml'); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; error_reporting(E_ALL); ini_set('display_errors', 1); file_put_contents('incoming_call.log', "\n" .json_encode($_REQUEST) . "\n", FILE_APPEND); ?> <Response> <Dial timeout="15" action="/voicemail.php"> </Dial> <

Twilio send a voice message if user doesn't answer, in an outbound call

杀马特。学长 韩版系。学妹 提交于 2021-01-29 05:50:36
问题 I am new to using twilio. I am using twilio to make calls from browser to phone. In the browser side I am using twiml Device to connect to the call. Twilio.Device.connect({ phoneNumber: phoneNumber, userId: id }); In the nodejs server side I am using this code. import twilio from 'twilio'; const VoiceResponse = twilio.twiml.VoiceResponse; let phoneNumber = req.body.phoneNumber; let callerId = user.phoneNumber; let twiml = new VoiceResponse(); let dial = twiml.dial({ callerId: callerId });

Twilio recording and voicemail function

こ雲淡風輕ζ 提交于 2021-01-28 11:26:13
问题 Hello guys im treyng to implement a new call foward ivr system for my twilio number but i been having a problem with one of my function and i hope you guys cam help in some way. So Im trying to record all the calls that i receive and on top of that have a voicemail option. Here is how im going. On twiml i crate an action to go to reddirect to voicemail after time out, Than i use recordingStatusCallback to record the call tha dont go to voicemail and both work perfectly but when i receive the

Is there a way to enter dollars/cents via DTMF?

独自空忆成欢 提交于 2020-07-09 19:48:58
问题 I'm currently working on a pay-by-phone system with this flow: <Gather> customer's account number with us <Gather> amount to pay <Pay> - with the previous 2 <Gather> s passed as variables to Stripe The issue I am having is collecting the amount. Is there a way to convert the amount from a single string to a decimal string? eg. 12300 becomes 123.00 All suggestions welcome as the current working theory is to add a third <Gather> just for the cents but this feels cumbersome from a UX/UI

Is there a way to enter dollars/cents via DTMF?

ⅰ亾dé卋堺 提交于 2020-07-09 19:47:57
问题 I'm currently working on a pay-by-phone system with this flow: <Gather> customer's account number with us <Gather> amount to pay <Pay> - with the previous 2 <Gather> s passed as variables to Stripe The issue I am having is collecting the amount. Is there a way to convert the amount from a single string to a decimal string? eg. 12300 becomes 123.00 All suggestions welcome as the current working theory is to add a third <Gather> just for the cents but this feels cumbersome from a UX/UI

Play music while waiting an answer in TWIML <dial>

时间秒杀一切 提交于 2020-05-12 02:46:06
问题 How to dial numbers and diffuse a music to the caller while waiting a successful connexion ? The code below waits the music to end before doing the <dial> (which is logic) <?xml version="1.0" encoding="UTF-8"?> <Response> <Play>http://com.twilio.music.ambient.s3.amazonaws.com/gurdonark_-_Plains.mp3</Play> <Dial timeout="10" callerId="+1234567890"> <Number url="whisper?id=1">+1122334455</Number> <Number url="whisper?id=2">+1122334466</Number> <Number url="whisper?id=3">+1122334477</Number> <

Play music while waiting an answer in TWIML <dial>

烂漫一生 提交于 2020-05-12 02:45:32
问题 How to dial numbers and diffuse a music to the caller while waiting a successful connexion ? The code below waits the music to end before doing the <dial> (which is logic) <?xml version="1.0" encoding="UTF-8"?> <Response> <Play>http://com.twilio.music.ambient.s3.amazonaws.com/gurdonark_-_Plains.mp3</Play> <Dial timeout="10" callerId="+1234567890"> <Number url="whisper?id=1">+1122334455</Number> <Number url="whisper?id=2">+1122334466</Number> <Number url="whisper?id=3">+1122334477</Number> <