Ringing audio in Genesys PureCloud WebRTC

Is there a way to get the WebRTC softphone to play a sound on an incoming call (ringing)?

You will need to implement your own ring tone, but you can use the sdk.on('pendingSession', ...) event to trigger your ringer. There are several reasons why we don't implement the ringer.

  • People/Organizations prefer different ringers
  • There may be custom cases where you don't want to ring despite receiving a pending session event.

There are a lot of libraries out there that can play or repeat simple sounds with very little work. https://www.npmjs.com/package/howler is a popular package that can accomplish what you are looking for.

One gotcha here is persistent connections don't generate sessions after the initial connection so you won't be able to use pendingSession when using persistent connections. We have an item on our board to emit pendingSessions and be able to answer persistent connection calls via the sdk, but that work is not completed yet.

This topic was automatically closed after 30 days. New replies are no longer allowed.