I am trying to make a call programmatically through Skype. Skype is installed in my PC but when I try to make the call through Skype API with C# then every time I get an exception:
Connection refused
I am not able to fix it. I am trying since a long time to make a call but every time I get the same error.
Here is code snippet by which I am using to make call:
Skype skype;
skype = new SKYPE4COMLib.Skype();
string SkypeID = "+447851359661";
Call call = skype.PlaceCall(SkypeID);
do
{
System.Threading.Thread.Sleep(1);
} while (call.Status != TCallStatus.clsInProgress);
I guess I am definitely missing something in the code. Please guide me. Thanks