Doing VoIP Calls
Posted: August 29th, 2007 | Author: nuno | Filed under: Code, Tutorial | 2 Comments »We needed our Flash application to be capable of executing VoIP calls. I remember Skype had a developer API and after some digging I ended up coding a C# application that receives messages from the Flash app via a socket and controls Skype accordingly via the Skype4COM wrapper.
There was already a C# example available at the Skype4COM page that unveiled much of the works involved. I just added a socket server and a configuration XML file for skype dialnumber I wanted and the port the application opens and the Flash app has to connect to.
The attached C# code shows how the application can attach itself to Skype, receive event notifications and control it via the commands provided by the API.
Requirements (and tested with): Skype 3.5.0.202, Skype4COM, release 1.0.27.1
Skype needs to be installed on the machine. For Skype4COM to work don't forget to register the DLL by issuing: regsrv32 skype4com.dll