Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device Undefined #29

Open
rochapablo opened this issue Aug 23, 2017 · 0 comments
Open

Device Undefined #29

rochapablo opened this issue Aug 23, 2017 · 0 comments

Comments

@rochapablo
Copy link

Following the example, I'm getting:

_deviceReady params undefined
_deviceDidStartListening params undefined
{ type: 'DEVICE_LISTENING_START', params: undefined }
{ callState:
   {
      callDirection: null,
      callingError: 'Twilio Services Error',
      callFromNumber: null,
      callToNumber: null,
      listening: true
   },
   telephonyState: { deviceReady: true, deviceError: null, clientName: 'jenny' }
}

And this is what I'm trying to

Twilio.init()
Twilio.makeCall(`client:Julia-1`)
const telephonyService = {
  init (client) {
    this.initDeviceListeners()
    return new Promise((resolve, reject) => {
      api.request().then((token) => {
        Twilio.initWithToken(token)
        return resolve(true)
      }).catch((error) => {
        return resolve(error)
      })
    })
  },
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant