GithubHelp home page GithubHelp logo

twiliodeved / client-quickstart-js-deprecated Goto Github PK

View Code? Open in Web Editor NEW
46.0 46.0 48.0 19 KB

Twilio Client Quickstart for Web/Javascript

License: MIT License

HTML 12.20% JavaScript 61.40% CSS 26.40%

client-quickstart-js-deprecated's People

Contributors

atbaker avatar ayyrickay avatar dprothero avatar jefflinwood avatar joliveros avatar mhuynh5757 avatar micaswyers avatar michaelrkn avatar po5i avatar ryan-rowland avatar sarahcstringer avatar sedenardi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

client-quickstart-js-deprecated's Issues

Failed to make outbound call from Chrome Canary

Twilio voice is failing to make outbound call(s) from current Chrome Canary

Affected browser details :
Version 73.0.3671.0 (Official Build) canary (64-bit)

Part of the error message :

Received an error from MediaStream: {
  disconnect: true,
  info: {
     code: 31003
     message: "ICE negotiation with Twilio failed. Call will terminate."
}}

A subset of sample tests, and result :

Caller Callee Result
Chrome 71.0.3578.98 (Official Build) (64-bit) Chrome 71.0.3578.98 (Official Build) (64-bit) Success
Chrome 71.0.3578.98 (Official Build) (64-bit) Chrome Version 73.0.3671.0 (Official Build) canary (64-bit) Success
Chrome Version 73.0.3671.0 (Official Build) canary (64-bit) Chrome 71.0.3578.98 (Official Build) (64-bit) Failed
Chrome Version 73.0.3671.0 (Official Build) canary (64-bit) Chrome Version 73.0.3671.0 (Official Build) canary (64-bit) Failed

Outgoing call Machine detection

For outgoing calls made from the browser to phone via js SDK as used in this repo, is it possible to do "answering-machine-detection " and leave a voice mail automatically if customer picking up the phone is machine and not human?

Adding a sound to the call via a button click

Hi,
I have added a button onto this quick start.
I want to add a sound to the call when I click the button:

So far I have been unable to get this working:

document.getElementById('button-play').onclick = function () {
var context = new (window.AudioContext || window.webkitAudioContext)();
var destination = context.createMediaStreamDestination();
var oscillator = context.createOscillator();
oscillator.type = 'sine';
oscillator.frequency.value = 440;
oscillator.connect(destination);
var mediaStreamTrack = destination.stream.getAudioTracks()[0];
conn.getLocalStream().addTrack(mediaStreamTrack);
oscillator.start()
};

Any help is appreciated
thanks

Line is connected, but cannot hear any voice on the phone.

Below is the messages from log window:

Requesting Capability Token...
Got a token.
Twilio.Device Ready!
Ringing...
Successfully established call!
Hanging up...
Call ended.

I have setup the capability token in my web server, and hosted the html files into my same domain web server as well. (i.e. https://example.com/xxx/index.html)

However, when I place outgoing call, although the line was established, I cannot hear any audio / voices on both side. There are no error logs in browsers console log.

Can anyone can advise some suggestions to solve this issue? Thanks.

Cannot Answer Inbound Call

In Google Chrome the inbound call only "rings" on occasions... but usually it just Answers automatically! In both Chrome and Edge there is no way to "Answer" the call? Outbound calls work great!

No transport available to send or receive messages

{code: 31009, message: "No transport available to send or receive messages", twilioError: Error
at new TransportError (https://sdk.twilio.com/js/client/v1.12/twilio.js:3401:32)
at Pā€¦}
twilio.js:3958 Uncaught error event suppressed.

i am getting this issue "No transport available to send or receive messages" when i deployed my code in production server which is ubuntu environment,but if i run same code in my localhost it is working great ,in they deployment only it is showing this error,please help me on this

Cross domain error

Access to XMLHttpRequest at 'https://FUNCTION_NAME.io/client-voice' from origin 'http://127.0.0.1:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

"Could not get a token from server!"

Record outbound call

Hi everyone,

Thanks for your help,

I try for hours to record the calls i make from twilio , without luck..

I tried to put in the params i send in the Twilio.Device.connect() method , Record: true , i tried also RecordingStatusCallback with an http method i made but it's not calling it ..

I tried many ways but nothing works..

I'm in angular 5 , i did a link to the js library and worked with your example who is working fine , but i don't succeed to record..

If you can help , would be great .. Thanks for all !

AudioContext was not allowed to start

I tested on 1.6-1.10 still the same issue

twilio.js:2651 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu

[N|Solid]

Cannot make auto outgoing call when the browser lose focus

I am using Firefox browser (v71.0, 32bit) to run the web application.
And I would like to setup and make auto call in 20 seconds later once the application loaded (device setup)

I have implemented the code below:

  console.log("Will make auto call in 20 sec...");
  setTimeout(function(){
    makeCall();
  }, 20 * 1000);

function makeCall(){
    // get the phone number to connect the call to
    var params = {
      To: MY_DEST_NUM
    };

    console.log('Calling ' + params.To + '...');
    if (device) {
      console.log("Calling debug 1");

      var outgoingConnection = device.connect(params);
      console.log(outgoingConnection);

      //cannot run below codes when browser lose focus
      outgoingConnection.on('ringing', function() {
        log('Ringing...');
        console.log("Calling debug 2");
      });
    }
  }

However, Twilio client will not run the outgoingConnection's ringing event.
The browser console log only displayed:
"Will make auto call in 20 sec..."
"Calling XXXXXXXXXX..."
"Calling debug 1"
{outgoingConnection} object

it hadn't run the following line:
"Calling debug 2"

If I focus the browser again, it can display "Calling debug 2" in the console log.
Are there any ways that able to let it make auto call when the browser lose focus? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.