call from javascript using chrome extension

  • 1
  • Question
  • Updated 3 months ago
The Chrome extension works great, but I need to run a function before dialing the number from my website. Like:

<button type='button' onclick=makecall('".$result->PHONE."')>".$result->PHONE."</button>

function makecall($number){

Is there a function in the chrome extension I can call to send the number to the dialer?
Photo of Tommy Figgs

Tommy Figgs

  • 70 Points
  • frustrated

Posted 2 years ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 9,828 Points 5k badge 2x thumb
RingCentral Chrome Extension is not open source and we don't provide any public API for it. So I am afraid that it doesn't exist.
Photo of Garry Lowther

Garry Lowther

  • 60 Points
I traced the debug of RC's own Chrome extension and this code works:{
          type: 'c2d',
          number: '012231234567890',
          isQuickAccess: true
        }, '*');