Browser Phone » API
The Browser Phone API allows you to easily make new calls or manage with a few easy to use JavaScript methods.
Pass To and From to this function and the dialer will initiate the call process and pop out on the screen.
| Name | Type | Description |
|---|---|---|
| to | string | The phone number of the person you're trying to call |
| from | string | The phone number to use as the Caller ID for the call. This must be a number you are allowed to use as a Caller ID with the Twilio API (i.e. a Twilio number of a validated caller ID). |
void — returns no data
OpenVBX.clientDial({
'to': '+17203089773',
'callerid': '+14158774003'
}
Disconnects the phone call and closes the dialer pad
| Name | Type | Description |
|---|---|---|
| No Arguments | ||
Void — returns no data
OpenVBX.clientHangup();
Mute the active call
| Name | Type | Description |
|---|---|---|
| No Arguments | ||
Void — returns no data
OpenVBX.clientMute();
Unmute the active call
| Name | Type | Description |
|---|---|---|
| No Arguments | ||
Void — returns no data
OpenVBX.clientUnMute();
Check that the Client has connected with Twilio and is ready to make a call
| Name | Type | Description |
|---|---|---|
| No Arguments | ||
boolean
OpenVBX.clientIsReady();