here is the code
using SKYPE4COMLib;
Skype skype;
try
{
skype = new SKYPE4COMLib.Skype();
if (!skype.Client.IsRunning)
{
skype.Client.Start(true, true);
}
//skype.Attach(8, true);
Call call = skype.PlaceCall(textBox1.Text);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
before run the code follow this step http://synqit.com/skype-refused . hope help.
Error during Skype communication: Connection refused. That error means that that Skype denied access to Synqit. To allow Synqit to access Skype, select Skype menu Tools | Options... | Advanced | Manage other programs' access to Skype | find Syniqt in appeared list and click Change. Connection Refused
Start Synqit import once more and allow Synqit to access Skype.