Skip to content

Device Undefined #29

Description

@rochapablo

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)
      })
    })
  },
  ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions