- The SDK cannot take consecutive calls. The agent needs to logout and login again in order to take the next call.
Change to the directory containing src/
and run:
npm install
npm run build
The built files (bundle.js
and bundle.js.map
) will be in dist/
.
Import the bundle.js
file in your html or JS file.
You can interact with the SDK from your JS using the following:
actions.commandToWebPhone('initialize', {url: URL, username: USERNAME, password: PASSWORD});
actions.commandToWebPhone('initialize', {url: URL, authToken: TOKEN});
actions.commandToWebPhone('changeStateToReady')
actions.commandToWebPhone('changeStateToAfterCallWork')
actions.commandToWebPhone('changeStateToNotReady', AUX_CODE)
actions.state.auxCodes.available
actions.commandToWebPhone('changeStateToOffline')
actions.commandToWebPhone('endCall')
actions.commandToWebPhone('muteCall')
actions.commandToWebPhone('holdCall')
actions.commandToWebPhone('outboundCall')
actions.commandToWebPhone('consultCall')
actions.commandToWebPhone('mergeCall')
actions.commandToWebPhone('endConsultationCall')
actions.commandToWebPhone('holdConsultationCall')
actions.commandToWebPhone('warmTransfer')
actions.commandToWebPhone('transferCall')
actions.commandToWebPhone('maskCallRecording')