我无法使用 Windows.The 中的 Skype4Py API 拨打电话,应用程序进入等待状态,然后挂断电话。

I can't place a call using Skype4Py API in Windows.The application goes on wait state and then call drops.

我一直在尝试使用 Skype4Py 连接到 Skype API.All 很顺利,直到我尝试呼叫 contact.The 终端显示它正在呼叫指定的用户,但呼叫没有 connect.Is 代码有问题或 MicroSoft 停止了对此类第三方 API 的支持。 Here is what I found on MicroSoft's Support page for third party APIs

相同的代码片段:

Found = False
for F in skype.Friends:
    # print F.Handle
    if F.Handle == CmdLine:
     Found = True
     print 'Calling ' + F.Handle + '..'
     skype.PlaceCall(CmdLine)
     break

if not Found:
 #    print 'Call target not found in contact list'
  sys.exit()

这是我的代码的输出:

正在连接到 Skype..

正在调用 live:ronakshah983..

代码停在此处并且调用不是 connected.I 也曾尝试用用户地址替换用户名,但出现了同样的问题。 我已经尝试了很多研究,但无法弄清楚出了什么问题。 有什么建议吗?

找到解决方案 finally.The 问题是 Skype 已禁用其最新版本(版本 7.x)的所有第三方 API。然后我安装了旧版本(版本 6.x)和在 it.The 中禁用了自动更新功能,相同的代码适用于较旧的 Skype 版本。

注意:寻找旧的可靠版本的 Skype 也很耗时,因为他们已经从其官方网站上删除了所有旧版本。 Found older version on this page