twilio-api

Remove and add microphone at beta5 version

两盒软妹~` 提交于 2020-01-05 07:30:32
问题 I use new beta5 version of Twilio to create video chat: https://media.twiliocdn.com/sdk/js/video/releases/1.0.0-beta5/docs/#toc5__anchor When user clicks first time on the button, I need remove his microphone. When user clicks second time on the button, I need restore his microphone. Beta4 version had two methods: addMicrophone() and removeMicrophone() : https://media.twiliocdn.com/sdk/js/video/releases/1.0.0-beta4/docs/LocalMedia.html How can I remove and add microphone at beta5 version ?

Problems with verb Record timeout when calling an IVR

蹲街弑〆低调 提交于 2020-01-04 05:54:22
问题 We're trying to use Twilio to create an automated test framework for those IVRs. We do an outbound call from Twilio to the IVR, use the verb Say/Play to interact with the IVR and we're using Record to capture what the IVR is saying, latter we transcribe it and make the assertions. When I ask Twilio to call a phone number and I pretend to be the IVR, everything works perfectly. But when I ask Twilio to call the real IVR, apparently the Record verb can't recognize the pauses, when the IVR stops

Trigger an incoming VoIP call using CallKit and Twilio-Video API

吃可爱长大的小学妹 提交于 2019-12-31 02:46:27
问题 By using one of the sample video calling app provided by Twilio (VideoCallKitQuickStart), I am trying to trigger an incoming call by sending a VoIP notification to the App. But the App doesn't trigger an incoming call. I also tried keeping the App opened while sending a VoIP notification and the App crashes, by throwing the below exception NSInvalidArgumentException: Attempt to insert non-property list object 'PKPushPayload: 0x16e44af0' for key payload Could someone, please help me or point

Creating a Paginated display of Twillio Sent Messages

南楼画角 提交于 2019-12-25 18:15:08
问题 The Twilio API docs describe retrieving all messages or a particular message in PHP like bellow: <?php // Get the PHP helper library from twilio.com/docs/php/install require_once '/path/to/vendor/autoload.php'; // Loads the library use Twilio\Rest\Client; // Your Account Sid and Auth Token from twilio.com/user/account $sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; $token = "your_auth_token"; $client = new Client($sid, $token); // Loop over the list of messages and echo a property for each one

How to play and record voice at same time in twilio

╄→гoц情女王★ 提交于 2019-12-25 09:30:14
问题 I was working with twilio my case is when user make a call IVR will ask for user mood and then start recording for 10 second, take that recording to server find podcast according to user mood and send back TWIML with podcast mp3 url and play it to user I'm done with this job now i want to implement the feature in which when user user say "Skip" or "I don't like this one please skip"(or something similar which i will handle with Ai) immediately stop playing and goto server and get another

Put caller on hold and retrive back from hold using javascript in twilio

坚强是说给别人听的谎言 提交于 2019-12-25 08:26:03
问题 How can I put a caller on hold using a javascript. And retrive back to caller from the hold. I tried using below stackoverflow link , but it put me on hold not to the caller and cut the call of the caller. CLICK HERE Can anyone help me. 回答1: In a two party call , as soon as one of the party goes off the call , the call ends. Hence you're experience. If you want both the callers to be on the call and whilst they are on call ,have one go to hold and then bring him back - Use conference. . The

Twilio Voice SDK - show FriendlyName on call

狂风中的少年 提交于 2019-12-25 01:34:26
问题 So, I'm now able to create a voice call (voip, no phone numbers) using the Twilio Sever JS SDK, executing the following code: makeCall : function(req, res) { req.checkBody({ 'To' : { notEmpty : true, errorMessage : 'Invalid To' } }); req.getValidationResult().then(function(result) { if (!result.isEmpty()) { res.status(400).json(responseHandler.errorResponse("INVALID_FIELDS", result.mapped())); return; } const twimlRes = new Twiml.VoiceResponse(); const dial = twimlRes.dial() dial.client(req

How to get the status of a Twilio Notification using the sid?

夙愿已清 提交于 2019-12-25 00:04:05
问题 I am using the Notifications APIs (Twilio Java SDK version 7.24.2). I've successfully sent the SMSes using the Notification API like: private String sendMessageThroughNotificationService(String message, PhoneNumber receiverPhoneNumber){ Notification notification = Notification.creator(twilioNotificationSID) .setBody(message) .setToBinding(Promoter.listOfOne("{\"binding_type\":\"sms\", \"address\":\""+receiverPhoneNumber.toString()+"\"}")) .create(); return notification.getSid(); } Now, what

Getting body of a message in a Twilio callback and using it in a response

天大地大妈咪最大 提交于 2019-12-24 21:03:36
问题 From the TwiML Bin I found this reference to {{body}} and {{from}} but they don't work in TwiML as far as callbacks go. I'm having trouble getting the message details in the callback and I haven't been able to find suitable reference documenting it. This is what I have (and this is confirmed working): add_action( 'rest_api_init', 'register_receive_message_route'); /** * Register the receive message route. * */ function register_receive_message_route() { register_rest_route( 'srsms/v1', '

Twilio: Localized SIP URIs

穿精又带淫゛_ 提交于 2019-12-24 20:52:40
问题 I am trying to manually connect our SIP Domain enpoints to the ie1 region which is close to our UK office using: https://www.twilio.com/docs/api/voice/sending-sip#localized-sip-uris Which states as follows: Localized SIP URIs If you wish to manually connect to a specific geographic region that is closest to the location of your communications infrastructure, you may do so by pointing your communications infrastructure to any of the following localized SIP URIs: {example}.sip.us1.twilio.com