Giter VIP home page Giter VIP logo

Comments (10)

jdegger avatar jdegger commented on June 8, 2024

This is also an issue for iOS

from react-native-twilio-programmable-voice.

jdegger avatar jdegger commented on June 8, 2024

We sometimes encounter problems when our app runs behind:

  • Mobile device management
  • Custom APN
  • Firewalled WiFi

I suppose I'm not the only one who has noticed these limits. The IP-ranges for all regions should be whitelisted by the firewall in order to get it to work.

The list of IPs is huge: https://www.twilio.com/docs/voice/client/regions

Forcing the connection through one region, makes the list of IPs which should be whitelisted smaller. This can be done in the TwilioVoice SDK according to the docs here: https://www.twilio.com/docs/voice/voip-sdk/regions

When the new SDK version lands, it might be interesting to consider implementing setRegion().

Let me know what your thoughts are.

from react-native-twilio-programmable-voice.

fmonsalvo avatar fmonsalvo commented on June 8, 2024

@jdegger @fabriziomoscon I believe we could have a set of constants referencing each of the new "edges" and allow users to set them using Voice.setEdge("ashburn-ix"); on android and TwilioVoice.edge = "ashburn-ix"; on iOS.
Something like what we have for connection status.
What do you think?

from react-native-twilio-programmable-voice.

jdegger avatar jdegger commented on June 8, 2024

Maybe just send the string value to setEdge/setRegion instead of adding the edges as contants, otherwise we would have to update our package for every new edge Twilio adds, right?

from react-native-twilio-programmable-voice.

fmonsalvo avatar fmonsalvo commented on June 8, 2024

Yes, that sounds just right. I'll try to send a PR later today with this.

from react-native-twilio-programmable-voice.

fmonsalvo avatar fmonsalvo commented on June 8, 2024

@jdegger sorry for my late reply, I've been using setEdge on iOS for a while locally so I moved on to implement it on android.
There's one catch anyway, since Android SDK uses setRegion till version 5.3.0 and setEdge from there on.
Should we implement the deprecated setRegion method or should we upgrade Android SDK to version 5.6.0 (Latest at the time of writing)?

from react-native-twilio-programmable-voice.

jdegger avatar jdegger commented on June 8, 2024

@fmonsalvo I think we should wait for @fabriziomoscon to finish his PR maybe? I think he chose 5.0.1 because he is updating step by step from the twilio docs.

I will discuss with him also.

from react-native-twilio-programmable-voice.

jdegger avatar jdegger commented on June 8, 2024

ps: thanks for your efforts, highly appreciated!

from react-native-twilio-programmable-voice.

fmonsalvo avatar fmonsalvo commented on June 8, 2024

Yes, let's wait for that PR to be merged and then I'll send mine.
I'll look into the other items in the backlog and see which one I can work on.

from react-native-twilio-programmable-voice.

fabriziomoscon avatar fabriziomoscon commented on June 8, 2024

This is superseded by https://www.twilio.com/docs/voice/voip-sdk/android/3x-changelog#530

from react-native-twilio-programmable-voice.

Related Issues (20)

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.