Click to Call directly from IBM Connections
Recently we changed our telephony infrastructure to a cloud-based voip offering using softphones on our PC/Mac clients.
IBM Connections is our internal address book and my goal was to integrate a click to call functionality into Connections so that whenever I see a phone number in Connections (profiles, business card) I just can click to dial.
The solution for this was to add a small javascript and some html to the profile configuration which creates a sip url for the phone numbers:
<attribute showLabel=”true” prependHtml=”<a id="bria3a" href="#" onclick="javascript: var n=document.getElementById(‘bria3a’); n=n.textContent?n.textContent:n.innerText; n=n.split(‘ ‘).join(”); var v=window.open(‘sip:’+n);v.close();return false;" ><strong>” appendHtml=”</strong></a>” hideIfEmpty=”true”>telephoneNumber</attribute>
Now I can simply click on a number to call it and our users really like it:
Special thanks goes to Urs Meli for helping me with the javascript.