DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
Users manual¶
There are to method to use this extension, using frontend plugin or typoscript.
Frontend Plugin¶
To use the click to dial plugin, go to page and add a content element, choose Click to dial plugin.
On the plugin setting, input the phone number for the click to dial button.
Click save and it will show phone icon on the website page like the picture below.
Using Typoscript¶
The click to dial plugin can be called from typoscript to make it easier to put and integrate on the website.
The following codes are an example to show the dial button on every page before main content:
includeLibs.tx_webrtcphone = EXT:webrtc_phone/class.tx_webrtcphone.php
temp.link = USER
temp.link {
userFunc = tx_webrtcphone->htmlLink
userFunc.extnum = *60
}
temp.maincol = COA
temp.maincol {
10 = CONTENT
9 < temp.link
10 < styles.content.get
}
page.10.subparts.maincol < temp.maincol
The typoscript only need .extnum parameter which define the phone number to be called.
Script behaviour¶
The call icon will be in green color if registration to the SIP server is sucessfull, if not it is in grey color. If browser is not supported, the call icon will be hidden.