twilio

Play audio from CMSampleBuffer

百般思念 提交于 2021-02-18 10:47:29
问题 I have created a video chat app for groups in iOS. I have been searching for some ways to control the audio volume for different participant separately. I found way to mute and unmute using isPlaybackEnabled in RemoteAudioTrack , but not to control volume. I also thought if we can use it in AVAudioPlayer . I found addSink . This is what I tried from here: class Audio: NSObject, AudioSink { var a = 1 func renderSample(_ audioSample: CMSampleBuffer!) { print("audio found", a) a += 1 var

twilio Reject Incoming Calls with a Phone Number Blacklist

和自甴很熟 提交于 2021-02-17 06:53:20
问题 First of all. I'm sorry English is my second language so I apologize for any mistakes. Second. I'm new with Twilio . Thank you in advance for all your help. I have multiple phone numbers with Twilio and I am trying to implement a number blacklist to all my phone numbers. Currently, I use the function bellow individually with all my Twilio numbers. So ideally I would like to create a file with all the phone numbers that I want to be blacklist and I could read this file in the function and don

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 answer incoming call in browser using javascript and php

Deadly 提交于 2021-02-11 14:13:35
问题 connection.on('incoming', function(conn) {}) function not called. I am trying to implement the incoming call in the browser. What I tried is a javascript code var number = $("#number").val(); params = { "PhoneNumber": number, "CallerId": "+13604924000", "AgentName": "Noman Javed", }; Twilio.Device.setup(token); Twilio.Device.ready(function(device) { console.log('Ready'); // --------------------------------------------------- // Explicitly create a new outgoing connection var connection =

Is there a way to send a conversation unique identifier to the Twilio webhook?

谁说胖子不能爱 提交于 2021-02-11 13:55:50
问题 I'm trying to figure out if there is a way to uniquely identify the conversation an SMS is replying to without having to buy a new 'from' phone number each time. I know that one can store whatever you want in cookie or session storage, but those both expire in different ways. What I really want is somehow to pass or use an existing unique id for each separate conversation. So that I can map the messages to the right conversations. I'm not sure but I wonder if its possible to send a expireless

Twilio Video - Connecting muted Programmable Voice calls?

白昼怎懂夜的黑 提交于 2021-02-11 13:55:04
问题 I'm currently working on building an application using Twilio's Programmable Video. I've demonstrated the voice dial-in (Connect -> Room) for users want to dial in without a web browser. We've got a requirement for "listening in" - this is achievable with those users running through a browser (ie: don't send audio/video streams) but we've been unable to find a way to connect a Programmable Voice user through without including their audio. Any ideas? Possible thoughts I've had, but been unable

Not recieving sms using twilio notify service, no debug error in console?

纵然是瞬间 提交于 2021-02-11 12:50:33
问题 I am trying to send bulk SMS using Twilio notify API. I had looked at the documentation, and other StackOverflow resources but did not find the issue yet. What I am doing is: $sid = "AC1e590cbb8eee064c3c71axxxxxxxxxxx"; $token = "94c2dc3e2e407c4ebd28cxxxxxxxxxxx"; $twilio = new Client($sid, $token); $serviceSid = "IS32913ae9b083b809b1c06xxxxxxxxxxx"; $recipients = array(); foreach($phone_nos as $phone_no) { array_push($recipients, $phone_no['phone_no']); } //recipients array print value is /

How to get a recorded wav file using Twilio Java API

牧云@^-^@ 提交于 2021-02-11 10:06:33
问题 Could somebody point me, using Twilio Java API , NOT! REST requests, how can I get the recorded file (.wav) of a concrete call. I have read all the related articles to recording (https://support.twilio.com/hc/en-us/sections/205104748-Recording), but none of them shows how to do that with Java API. I use this code, as an starting point, assuming the CALL_SID is known: import com.twilio.Twilio; import com.twilio.base.ResourceSet; import com.twilio.rest.api.v2010.account.Recording; import com

How to get a recorded wav file using Twilio Java API

删除回忆录丶 提交于 2021-02-11 10:05:05
问题 Could somebody point me, using Twilio Java API , NOT! REST requests, how can I get the recorded file (.wav) of a concrete call. I have read all the related articles to recording (https://support.twilio.com/hc/en-us/sections/205104748-Recording), but none of them shows how to do that with Java API. I use this code, as an starting point, assuming the CALL_SID is known: import com.twilio.Twilio; import com.twilio.base.ResourceSet; import com.twilio.rest.api.v2010.account.Recording; import com