Giter VIP home page Giter VIP logo

Comments (8)

Erchil66 avatar Erchil66 commented on July 29, 2024

We do have same also i get my access token own our own server and token for fcm for the device but still no luck same as the error you give. And we don's use TWIML just on putting in phone servers.

from twilio_voice.

diegogarciar avatar diegogarciar commented on July 29, 2024

Please review your Twilio logs to ensure you don't have any errors/call fails from Flutter.

from twilio_voice.

cybex-dev avatar cybex-dev commented on July 29, 2024

@preprincipletech see #56, could be useful

from twilio_voice.

agent515 avatar agent515 commented on July 29, 2024

Hi @cybex-dev .

I'm seeing similar logs despite call getting connected. From and To are also not available on the caller side as you confirmed here. How to resolve this as the steps in #56 are unclear to me.

Platform: Android

Client code:

  bool? result = await _instance.call.place(
    from: "client:Alice",
    to: "Bob",
    extraOptions: null,
  );

makeCall is the name of the function registered as callback for TwilioML app. The function receives following request body.

{
  AccountSid: <ACCOUNT_SID>,
  ApiVersion: '2010-04-01',
  ApplicationSid: <ACCOUNT_SID>,
  CallSid: <CALL_SID>,
  CallStatus: 'ringing',
  Called: '',
  Caller: 'client:Alice',
  Direction: 'inbound',
  From: 'client:Alice',
  To: 'Bob'
}

Dialing call inside function.

 const dial = voiceResponse.dial({
        callerId: request.body.From,
        answerOnBridge: true,
      });

VoiceResponse in XML

<?xml version="1.0" encoding="UTF-8"?><Response><Dial callerId="client:Alice" answerOnBridge="true"><Client>Bob</Client></Dial></Response>

from twilio_voice.

cybex-dev avatar cybex-dev commented on July 29, 2024

@agent515

Did you resolve this problem? 31603 does ring a bell, but I do not recall the exact cause though I'm reminded of a client not being registered/active or something thereabout.

from twilio_voice.

agent515 avatar agent515 commented on July 29, 2024

Hi @cybex-dev. I am able to receive correct values for From and To on callee side. But CallDirection is still CallDirection.outgoing. But not sure how I resolved this because I noticed this working just now (only on the callee side). Maybe it started working after taking latest pull from the master.

Caller:
Ringing - From: null, To: null, Direction: CallDirection.outgoing

Callee:
Ringing - From: Alice, To: Bob, Direction: CallDirection.outgoing

from twilio_voice.

cybex-dev avatar cybex-dev commented on July 29, 2024

Hmm - all is well that ends well. I'll close the issue for now.

from twilio_voice.

agent515 avatar agent515 commented on July 29, 2024

@cybex-dev CallDirection should have been CallDirection.incoming at Callee side. So should we create a separate issue for it?

from twilio_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.