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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With