 
     return @Lync.stopMeetings callback if _.isEmpty meetingUrl
 
-    @Lync.getState 'hi', (error, state) =>
-      console.log 'getState', error, state
+    @Lync.getState null, (error, state) =>
       return callback error if error?
       return callback() if meetingUrl == _.get(state, 'meetingUrl')
       @Lync.joinMeeting meetingUrl, callback

    return callback()

  onConfig: (device, callback) =>
    desiredState = _.get device, 'desiredState', {}

    @_handleMeetingUrl desiredState, (error) =>


  _handleAudioEnabled: (desiredState, callback) =>
    return callback() unless _.has desiredState, 'audioEnabled'
    @Lync.getState null, (error, state) =>
      console.log 'state', JSON.stringify state
      return callback error if error?
      return callback() if _.isEmpty state.conversationId

      return @Lync.unmute state.conversationId, callback if desiredState.audioEnabled
      return @Lync.mute state.conversationId, callback

  _handleMeetingUrl: (desiredState, callback) =>
    return callback() unless _.has desiredState, 'meetingUrl'
