OpenNTF.org - Skype-enable your databases
My Links (Not logged in)
Code Bin Search
 
Hosted by Prominic.NET
Rate This Code
5 - brilliant stuff
4 - very nice
3 - average
2 - needs work
1 - bad
   OpenNTF Code Bin
Edit Document Code By Date > Code Document
About This Code
Brief Description:
Skype-enable your databases 
Rating:
Rating: 3 , Number of votes: 1 
Contributor:
Andreas Gruen 
Category:
Lotus Formula 
Type:
Notes Client UI 
Notes Version:
R6.x, R8.x, R7.x 
Last Modified:
15 Feb 2008 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
During development of a Sametime-Skype plugin, I found a simple way to integrate Skype-out phone calling into any Notes database.

There are two technical ways: using the skype-url-mechanism or a special skype commandline argument. I prefer the latter one, because it launches Skype in case it is not running.
The Notes fieldname for the phone number as well as the replacements of non numeric characters must be customised. Sykpe expects international number format: "+ countrycode areacode number" without spaces.

So here is the code - put it in an agent, a button an action, whatever you like:

REM {URL-type launch};
REM {===========================};
o := @ReplaceSubstring(OfficePhoneNumber;" ";"");
o := @ReplaceSubstring(o;"-";"");

@Command([Execute];"skype:"+o+"?call")


REM {direct launch};
REM {===========================};

x:= @RegQueryValue("HKEY_LOCAL_MACHINE";"SOFTWARE\\Skype\\Phone";"SkypePath");
o := @ReplaceSubstring(OfficePhoneNumber;" ";"");
o := @ReplaceSubstring(o;"-";"");
@Command([Execute];x;"\"/uri:"+o+"\"")

Usage / Example
 Comments

No documents found

 Add your comment!