我无法在Windows中使用Skype4Py API拨打电话。应用程序进入等待状态,然后调用drop。

时间:2017-01-26 11:26:10

标签: python skype skype4py

我一直在尝试使用Skype4Py API连接到Skype.All顺利,直到我尝试拨打联系人。终端显示它正在呼叫指定的用户,但呼叫只是没有连接。这是错的代码或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 ..

直播:ronakshah983 ..

代码在此处停止,并且呼叫未连接。我也尝试用用户的地址替换用户名,但同样的问题也出现了。 我已经尝试了很多研究,但无法弄清楚出了什么问题。 有什么提示吗?

1 个答案:

答案 0 :(得分:1)

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

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