Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skype API connection refused

Tags:

c#

skype

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

like image 421
Thomas Avatar asked Nov 30 '25 02:11

Thomas


1 Answers

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. enter image description here 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.

like image 109
Mou Avatar answered Dec 02 '25 20:12

Mou



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!