ZEN
ZEN

Reputation: 93

Skype API call always cancelled

I have small application which calls phone numbers in Skype and allows to record conversations.

But it doesn't work with Skype versions after 7.5. I tried both Skype4COM and direct API:

For Skype4COM call always gets status clsCancelled, FailureReason is cfrMiscError. Below example code:

Skype skype = new SKYPE4COMLib.Skype();

if (!skype.Client.IsRunning)
{
    skype.Client.Start(true, true);
}

skype.Attach(skype.Protocol, true);

Call call = skype.PlaceCall("+17606604690");

For direct API call status is MISSED. I'm using following command to start a call CALL +17606604690. It is possible to start call with somebody from your contact list by starting IM with him and bringing Skype client in focus, but this approach doesn't work for mobile numbers.

I guess Skype API changed after version 7.5, because I see that other applications still able to place calls. I'm also aware about Skype URLs, but they have big delays and won't let you know if call fails.

Upvotes: 9

Views: 1187

Answers (1)

Treer
Treer

Reputation: 433

There is some discussion of this problem here, with a work‐around:

I made a shortcut to only call the skypecall part and surprisingly, if i spam it, it starts in. A triple try-catch cycle does the trick, but to make sure, i just applied force retry until its status becomes "ringing"

Upvotes: 3

Related Questions