Configuring the Widget

You can configure the click-to-call widget using the below parameters, shown in the example index.html file:

Config= ' {
"c2c_config": {
"caller": " widget authentication username",
"password": " widget authentication password",
"callerDN": "caller_display_name",
"call": "destination phone number",
"dtmfKeypadEnabled": true,
},
"c2c_serverConfig": {
"domain": "your-domain.com",
"addresses": [ "wss://webrtc-server.your-domain.com:port" ] }
}

Parameter

Description

caller

Defines the username for digest authentication to identify the widget. This is configured on the SBC (see Configuring Your AudioCodes SBC for WebRTC).

password

Defines the password for digest authentication to identify the widget. This is configured on the SBC (see Configuring Your AudioCodes SBC for WebRTC).

callerDN

Defines the caller ID (display name) shown to the recipient when making calls with the widget.

call

Defines the target (destination) phone number that is routed by the SBC to the destination.

dtmfKeypadEnabled

Enables the use of the widget’s dialpad. By default, this is enabled.

domain

Defines the domain name of your SBC (or Live Platform service).

addresses

Defines the WebSocket URL for the SBC (or Live Platform service), in the following format: as wss://webrtc-server.<domain.com>:<port>