Skip to content

v2.31.1

Latest

Choose a tag to compare

@jashmir jashmir released this 20 Nov 18:23
e28b6c1

Fix a softphone call that could be refused on back-to-back calls, ship the attribution files in
the npm package, correct the API documentation, and make the release build stricter. The bundles
are built with the same Connect SDK packages, 1.0.15.

src/core.js

  • The softphone could refuse an incoming call with "duplicate session detected, refusing to
    setup new connection" when one agent snapshot both removed the previous voice contact and
    offered the next one, which can happen for back-to-back calls when After Contact Work is off.
    Within a single snapshot, removed contacts now fire ENDED and DESTROYED before added contacts
    fire INIT, the same order consumers already see when the two changes arrive in separate
    snapshots.

package.json

  • The npm package includes NOTICE.txt and THIRD_PARTY.txt.
  • Remove nine development dependencies, mocha, nyc, sinon and jshint among them, and the
    mocha test script.
  • npm run release fails on any lint warning, and runs type-aware lint rules over src
    (tsconfig.lint.json).

Documentation.md

  • engagePreviewContact(), getPreviewConfiguration() and isPreviewMode() are documented as they
    behave: they take no argument and return a Promise. engagePreviewContact() resolves to
    { participantId }, getPreviewConfiguration() resolves to { autoDialTimeout,
    canDiscardPreview } and rejects when the contact has no preview configuration, and
    isPreviewMode() resolves to a boolean.
  • Document the email ringtone options of initCCP() and the allowExtendedPersistentConnection
    softphone option.
  • The Global Resiliency link points at Documentation-GR.md, and the unit test command is
    npm run test-jest.

Documentation-GR.md, README.md, cheat-sheet.md

  • Link the subdomain-based instance alias and migration notes to the AWS documentation,
    document the email ringtone options and npm run test-jest in the README, and fix two
    cheat-sheet examples.