Webphone: When I call to a directory number, I should be able to send the key signal. How can we do that with Web Phone API?

  • 1
  • Question
  • Updated 2 years ago
Suppose the user calls to a directory number, i.e., the one that prompts the user to press more keys to continue. The question is how we can do that with RingCentral Web Phone API.
Photo of Janielle

Janielle

  • 530 Points 500 badge 2x thumb
  • unsure

Posted 2 years ago

  • 1
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
Our current WebRTC implementation (Web Phone) for voice, has been developed for outbound calling use cases.

If you mean you wish to send directory number services (such as information directory number, 411) the key signals (DTMF tones), the agent/operator of the call can use the dial pad interface of your implementation to send these tones.

Is this the use case you are describing?
Photo of Janielle

Janielle

  • 530 Points 500 badge 2x thumb
I'm sorry. As I am not a field expert, I'm not sure whether any technical terms would mean what I want to say. So, let me get started with an example.

Suppose I call 1-234-567-8901 via web phone. Once the call is connected, I was prompted to press 123 to continue. (I may be prompted to press more keys to continue during the course of call duration.)

Here are the questions.
  1. How can we use the web phone API to allow the user to press 123 to continue in this case?
  2. If we can do that, could you please tell us how to do that?
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
For outbound calls, this can be done by providing a dialpad UI to your agent for use.

As stated before, WebPhone is not in a state currently to support inbound calling (since the end-user is unable to authenticate and obtain a registration).
Photo of Janielle

Janielle

  • 530 Points 500 badge 2x thumb
Hi Benjamin,

Is it possible to use DTMF tones via the web phone? If so, where can I find an example of this?

Thanks
Photo of Janielle

Janielle

  • 530 Points 500 badge 2x thumb
Hi Benjamin,

I found the documentation now. Thank you for your help. :D

For the record,
http://sipjs.com/guides/send-dtmf/
https://github.com/ringcentral/ringcentral-web-phone#dtmf
Photo of Benjamin Dean

Benjamin Dean

  • 8,602 Points 5k badge 2x thumb
Good job locating the docs. While you were finding those docs, I created this DTMF dialpad demo branch (of my slightly outdated fork of Vyshakh Babji's 3-Legged OAuth version of WebPhone) here: https://github.com/bdeanindy/ringcentral-web-phone/tree/dialpadWithDTMF

It is simple in its construction, and it just outputs the DTMF event to the browser's console, but should suffice as an example for you to use.